/* CampingRechner — "Outdoor" design: forest green + earthy tones, rugged, pine/compass motifs. Distinct from all previous sites. */
:root {
  --forest: #1e3d2b;
  --pine: #2d5a3f;
  --moss: #5a8a5a;
  --cream: #f7f3ea;
  --paper: #fffefb;
  --ink: #243024;
  --bark: #6b4a2f;
  --bark-dark: #4e3421;
  --amber: #e8a13a;
  --amber-pale: #fdf0dc;
  --line: #dcd2bd;
  --radius: 12px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 4px 18px rgba(30,61,43,.1);
  --shadow-lift: 0 16px 38px rgba(30,61,43,.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--cream); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.container { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; color: var(--forest); }
h1, h2 { font-family: var(--serif); }

/* pine divider */
.pinediv { height: 24px; background: repeating-linear-gradient(90deg, var(--pine) 0 2px, transparent 2px 26px); opacity: .3; position: relative; }
.pinediv::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-90deg, var(--pine) 0 2px, transparent 2px 34px); opacity: .6; }

header.site { background: var(--forest); position: sticky; top: 0; z-index: 50; }
header.site .bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 14px 0; }
.brand { font-family: var(--serif); font-size: 1.4rem; font-weight: 800; color: #fff; text-decoration: none; display: inline-flex; align-items: center; }
.brand .compass { width: 38px; height: 38px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--amber), #c47f22); margin-right: 10px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px rgba(232,161,58,.3); }
.brand .compass svg { width: 22px; height: 22px; fill: #fff; }
.brand em { font-style: normal; color: var(--amber); }
nav.main a { color: #cfe0c8; text-decoration: none; margin-left: 20px; font-size: .93rem; font-weight: 700; }
nav.main a:hover { color: var(--amber); }

.hero { position: relative; padding: 96px 0 90px; background: url('../images/hero.jpg') center/cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,35,25,.85), rgba(20,35,25,.35)); }
.hero .container { position: relative; z-index: 1; }
.hero .trail { display: inline-block; background: rgba(232,161,58,.2); border: 1px solid rgba(232,161,58,.6); color: #ffe4b8; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 8px 18px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { color: #fff; font-size: 2.9rem; max-width: 660px; margin-bottom: 16px; }
.hero h1 .am { color: var(--amber); }
.hero p.lead { color: #d8e6d0; font-size: 1.12rem; max-width: 620px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-trail { display: inline-block; background: var(--amber); color: #3d2400; text-decoration: none; padding: 15px 36px; border-radius: 999px; font-weight: 800; box-shadow: 0 10px 26px rgba(232,161,58,.4); transition: transform .15s; }
.btn-trail:hover { transform: translateY(-3px); }
.btn-wood { display: inline-block; border: 2px solid rgba(255,255,255,.5); color: #fff; text-decoration: none; padding: 13px 34px; border-radius: 999px; font-weight: 700; }
.btn-wood:hover { background: rgba(255,255,255,.1); }

section.block { padding: 66px 0; }
.sec-pre { color: var(--bark); font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.sec-title { font-size: 2.2rem; margin: 8px 0 12px; }
.sec-sub { color: #5a6a58; max-width: 700px; margin-bottom: 36px; font-size: 1.02rem; }

/* Trail cards */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; }
.tcard { background: var(--paper); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .16s, box-shadow .16s; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.tcard:hover { transform: translateY(-6px) rotate(.4deg); box-shadow: var(--shadow-lift); }
.tcard .ph { height: 132px; background-size: cover; background-position: center; border-bottom: 4px solid var(--pine); }
.tcard .tx { padding: 20px 24px 24px; flex: 1; }
.tcard .km { font-family: var(--mono); font-size: .72rem; color: var(--bark); letter-spacing: .06em; }
.tcard .tx h3 { font-family: var(--serif); font-size: 1.25rem; margin: 6px 0 8px; }
.tcard .tx p { font-size: .92rem; color: #5a6a58; margin-bottom: 12px; }
.tcard .go { font-weight: 800; color: var(--forest); font-size: .9rem; }
.tcard .go span { color: var(--bark); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; margin: 50px 0; }
.split.flip > div:first-child { order: 2; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lift); display: block; border: 6px solid #fff; }
.split h3 { font-size: 1.7rem; margin-bottom: 12px; }
.split p { color: #5a6a58; margin-bottom: 12px; }
.split .more { font-weight: 800; color: var(--bark); text-decoration: none; border-bottom: 3px solid var(--amber); }

table.ref { width: 100%; border-collapse: collapse; margin: 12px 0 24px; font-size: .93rem; background: var(--paper); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
table.ref th { background: var(--forest); color: var(--amber); padding: 12px 14px; text-align: left; font-size: .84rem; }
table.ref td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
table.ref tr:last-child td { border-bottom: none; }
table.ref tr:nth-child(even) td { background: #f6f2e6; }

.crumbs { font-size: .85rem; color: #5a6a58; margin: 22px 0 8px; }
.crumbs a { color: var(--bark); text-decoration: none; font-weight: 700; }
.pagehead { max-width: 780px; }
.pagehead h1 { font-size: 2.4rem; margin-bottom: 10px; }
.pagehead h1 .am { color: var(--bark); }
.pagehead p { color: #5a6a58; }
.pagehead .pimg { margin: 24px 0 0; max-width: 640px; }
.pagehead .pimg img { width: 100%; max-height: 300px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lift); border: 6px solid #fff; }

.calc { background: var(--paper); border-radius: 18px; padding: 36px; margin: 30px 0; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 720px; border-left: 8px solid var(--pine); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 7px; font-size: .94rem; }
.field input, .field select { width: 100%; padding: 13px 16px; border: 2px solid var(--line); border-radius: 10px; font-size: 1rem; font-family: var(--mono); background: #faf8f2; }
.field input:focus, .field select:focus { outline: none; border-color: var(--pine); background: #fff; }
.field input.invalid { border-color: #c0392b; background: #fdf2f0; }
.field .hint { font-size: .83rem; color: #5a6a58; margin-top: 5px; }
.field .error { font-size: .83rem; color: #c0392b; margin-top: 5px; display: none; font-weight: 600; }
.btn-row { display: flex; gap: 12px; margin-top: 8px; }
button.calc-btn { background: var(--pine); color: #fff; border: none; padding: 15px 30px; border-radius: 999px; font-size: 1.02rem; font-weight: 800; cursor: pointer; flex: 1; box-shadow: 0 8px 22px rgba(45,90,63,.35); transition: transform .15s; }
button.calc-btn:hover { transform: translateY(-2px); background: var(--forest); }
button.reset-btn { background: transparent; color: #5a6a58; border: 2px solid var(--line); padding: 15px 26px; border-radius: 999px; cursor: pointer; font-weight: 700; }
button.reset-btn:hover { border-color: #5a6a58; }
.result { display: none; margin-top: 26px; background: linear-gradient(135deg, var(--forest), var(--pine)); border-radius: 14px; padding: 28px; color: #fff; }
.result.show { display: block; animation: campIn .35s ease; }
.result .big { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--amber); }
.result .rrow { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: .95rem; font-family: var(--mono); }
.result .rrow:last-child { border-bottom: none; }
.result .rrow span:first-child { color: #bcd4b2; }
.result .note { font-size: .85rem; color: #bcd4b2; margin-top: 10px; }

article.prose { margin: 36px 0; max-width: 800px; }
article.prose h2 { font-size: 1.6rem; margin: 34px 0 12px; }
article.prose h3 { font-size: 1.16rem; margin: 24px 0 8px; }
article.prose p, article.prose li { margin-bottom: 10px; color: #3d4a3a; }
article.prose ul, article.prose ol { padding-left: 22px; }
.warnbox { background: var(--amber-pale); border: 2px solid var(--bark); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; font-size: .92rem; color: #6b4a1f; }
.warnbox strong { text-transform: uppercase; letter-spacing: .04em; }
.tipbox { background: #eef4e8; border: 2px solid var(--moss); border-radius: var(--radius); padding: 18px 22px; margin: 24px 0; font-size: .92rem; color: #33502f; }
.example { background: var(--paper); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; box-shadow: var(--shadow); border-left: 6px solid var(--amber); font-size: .93rem; }
.faq details { background: var(--paper); border-radius: var(--radius); margin-bottom: 10px; padding: 16px 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.faq summary { font-weight: 800; cursor: pointer; font-family: var(--serif); }
.faq p { margin-top: 8px; color: #5a6a58; font-size: .94rem; }

.cta-band { background: linear-gradient(120deg, var(--forest), var(--pine)); border-radius: 18px; padding: 54px 36px; text-align: center; color: #d8e6d0; margin: 60px 0; }
.cta-band h2 { color: #fff; font-size: 2.1rem; margin-bottom: 10px; }
.cta-band h2 .am { color: var(--amber); }
.cta-band p { margin-bottom: 26px; }

footer.site { background: var(--forest); color: #bcd4b2; padding: 54px 0 28px; margin-top: 64px; font-size: .9rem; }
footer.site .fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 28px; }
footer.site h4 { color: var(--amber); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
footer.site a { color: #d8e6d0; text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: var(--amber); }
footer.site .brand { color: #fff; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; color: #8aa884; font-size: .82rem; font-family: var(--mono); }

@keyframes campIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 760px) {
  .hero { padding: 64px 0; } .hero h1 { font-size: 2rem; }
  .split { grid-template-columns: 1fr; gap: 26px; } .split.flip > div:first-child { order: 0; }
  .calc { padding: 26px 22px; } .btn-row { flex-direction: column; }
  nav.main a { margin-left: 14px; } footer.site .fgrid { grid-template-columns: 1fr 1fr; }
  .pagehead h1 { font-size: 1.85rem; }
}
