/* GarnRechner — "Minimal Craft": soft sage + charcoal, airy whitespace, thin yarn-ball line motifs. */
:root {
  --sage: #8aa88f; --sage-deep: #5c7a62; --sage-pale: #edf3ec; --sage-mist: #f6f9f5;
  --char: #2e332f; --mut: #68706a; --line: #dfe5dc; --bg: #fbfbfa; --card: #ffffff;
  --radius: 14px; --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --shadow: 0 2px 10px rgba(46,51,47,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--char); line-height: 1.8; -webkit-font-smoothing: antialiased; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.25; color: var(--char); letter-spacing: .005em; }
header.site { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
header.site .bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 16px 0; }
.brand { font-family: var(--serif); font-size: 1.5rem; color: var(--char); text-decoration: none; display: inline-flex; align-items: center; }
.brand .ball { width: 42px; height: 42px; margin-right: 12px; flex: none; }
.brand .ball svg { width: 42px; height: 42px; stroke: var(--sage-deep); fill: none; stroke-width: 1.6; }
.brand em { font-style: italic; color: var(--sage-deep); }
nav.main a { color: var(--mut); text-decoration: none; margin-left: 24px; font-size: .92rem; letter-spacing: .02em; }
nav.main a:hover { color: var(--sage-deep); }
.hero { padding: 80px 0 70px; background: linear-gradient(180deg, var(--sage-pale), var(--bg)); overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--sage-deep); font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.hero .kicker svg { width: 26px; height: 26px; stroke: var(--sage-deep); fill: none; stroke-width: 1.6; }
.hero h1 { font-size: 3rem; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero p.lead { color: var(--mut); font-size: 1.1rem; max-width: 560px; margin-bottom: 32px; }
.hero .imgcard { border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(92,122,98,.18); border: 1px solid var(--line); }
.hero .imgcard img { width: 100%; display: block; aspect-ratio: 4/3; object-fit: cover; }
.btn-row-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-pill { display: inline-block; background: var(--char); color: #fff; text-decoration: none; padding: 15px 34px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background .18s, transform .18s; }
.btn-pill:hover { background: var(--sage-deep); transform: translateY(-2px); }
.btn-line { display: inline-block; border: 1.5px solid var(--sage-deep); color: var(--sage-deep); text-decoration: none; padding: 13px 32px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.btn-line:hover { background: var(--sage-pale); }
section.block { padding: 72px 0; }
.sec-kicker { color: var(--sage-deep); font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; }
.sec-title { font-size: 2.3rem; margin: 10px 0 12px; }
.sec-sub { color: var(--mut); max-width: 700px; margin-bottom: 40px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ccard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; text-decoration: none; color: var(--char); box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s; display: flex; flex-direction: column; }
.ccard:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgba(92,122,98,.14); border-color: var(--sage); }
.ccard .art { width: 58px; height: 58px; border-radius: 50%; background: var(--sage-pale); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.ccard .art svg { width: 32px; height: 32px; stroke: var(--sage-deep); fill: none; stroke-width: 1.6; }
.ccard .num { font-family: var(--mono); font-size: .72rem; color: var(--sage-deep); letter-spacing: .14em; }
.ccard h3 { font-size: 1.35rem; margin: 6px 0 10px; }
.ccard p { font-size: .93rem; color: var(--mut); margin-bottom: 14px; flex: 1; }
.ccard .go { font-weight: 600; color: var(--sage-deep); font-size: .9rem; letter-spacing: .03em; }
.thread { height: 1px; background: linear-gradient(90deg, transparent, var(--sage), transparent); margin: 0 auto; max-width: 720px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin: 56px 0; }
.split.flip > div:first-child { order: 2; }
.split img { width: 100%; border-radius: 18px; box-shadow: 0 18px 44px rgba(46,51,47,.12); display: block; aspect-ratio: 4/3; object-fit: cover; }
.split h3 { font-size: 1.7rem; margin-bottom: 14px; }
.split p { color: var(--mut); margin-bottom: 14px; }
.split .more { font-weight: 600; color: var(--sage-deep); text-decoration: none; border-bottom: 1.5px solid var(--sage); }
table.ref { width: 100%; border-collapse: collapse; margin: 14px 0 26px; font-size: .93rem; background: var(--card); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
table.ref th { background: var(--sage-pale); color: var(--sage-deep); padding: 13px 16px; text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
table.ref td { padding: 12px 16px; border-top: 1px solid var(--line); }
.crumbs { font-size: .84rem; color: var(--mut); margin: 26px 0 10px; }
.crumbs a { color: var(--sage-deep); text-decoration: none; font-weight: 600; }
.pagehead { max-width: 800px; }
.pagehead h1 { font-size: 2.6rem; margin-bottom: 12px; }
.pagehead h1 em { font-style: italic; color: var(--sage-deep); }
.pagehead p { color: var(--mut); }
.pagehead .pimg { margin: 26px 0 0; max-width: 660px; }
.pagehead .pimg img { width: 100%; max-height: 320px; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 44px rgba(46,51,47,.12); }
.calc { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 40px; margin: 34px 0; box-shadow: var(--shadow); max-width: 760px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92rem; color: var(--char); }
.field input, .field select { width: 100%; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 1rem; font-family: var(--sans); background: var(--sage-mist); color: var(--char); }
.field input:focus, .field select:focus { outline: none; border-color: var(--sage-deep); background: #fff; }
.field input.invalid { border-color: #b3554d; background: #fdf3f2; }
.field .hint { font-size: .84rem; color: var(--mut); margin-top: 6px; }
.field .error { font-size: .84rem; color: #b3554d; margin-top: 6px; display: none; font-weight: 600; }
.fgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
fieldset.annahmen { border: 1.5px dashed var(--sage); border-radius: 14px; padding: 22px 24px; margin: 10px 0 22px; }
fieldset.annahmen legend { font-weight: 600; font-size: .86rem; letter-spacing: .06em; color: var(--sage-deep); padding: 0 12px; text-transform: uppercase; }
.btn-row { display: flex; gap: 12px; margin-top: 10px; }
button.calc-btn { background: var(--char); color: #fff; border: none; padding: 16px 30px; font-size: .98rem; font-weight: 600; cursor: pointer; flex: 1; border-radius: 999px; transition: background .18s, transform .18s; }
button.calc-btn:hover { background: var(--sage-deep); transform: translateY(-2px); }
button.reset-btn { background: transparent; color: var(--mut); border: 1.5px solid var(--line); padding: 16px 28px; cursor: pointer; font-weight: 600; border-radius: 999px; font-size: .9rem; }
button.reset-btn:hover { border-color: var(--mut); }
.result { display: none; margin-top: 28px; background: var(--sage-pale); border: 1px solid var(--sage); border-radius: 16px; padding: 30px; }
.result.show { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result .big { font-family: var(--serif); font-size: 2.2rem; color: var(--sage-deep); }
.result .big small { font-size: 1rem; color: var(--mut); font-family: var(--sans); }
.result .rrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.result .rrow:last-child { border-bottom: none; }
.result .rrow span:first-child { color: var(--mut); }
.result .note { font-size: .85rem; color: var(--mut); margin-top: 12px; }
article.prose { margin: 38px 0; max-width: 800px; }
article.prose h2 { font-size: 1.65rem; margin: 36px 0 14px; }
article.prose h3 { font-size: 1.2rem; margin: 26px 0 10px; }
article.prose p, article.prose li { margin-bottom: 11px; color: #454c46; }
article.prose ul, article.prose ol { padding-left: 24px; }
.warnbox { background: #faf6ec; border: 1.5px solid #d9c08a; border-radius: 14px; padding: 20px 24px; margin: 26px 0; font-size: .93rem; color: #6d5a33; }
.tipbox { background: var(--sage-pale); border: 1.5px solid var(--sage); border-radius: 14px; padding: 20px 24px; margin: 26px 0; font-size: .93rem; color: var(--sage-deep); }
.example { background: var(--card); border-radius: 14px; padding: 22px 26px; margin: 24px 0; border: 1px solid var(--line); border-left: 4px solid var(--sage-deep); font-size: .94rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 18px 24px; }
.faq summary { font-family: var(--serif); font-size: 1.08rem; cursor: pointer; }
.faq p { margin-top: 10px; color: var(--mut); font-size: .94rem; }
.cta-band { background: var(--char); border-radius: 22px; padding: 60px 40px; text-align: center; color: #c9d2c9; margin: 64px 0; }
.cta-band h2 { color: #fff; font-size: 2.1rem; margin-bottom: 12px; }
.cta-band h2 em { font-style: italic; color: var(--sage); }
.cta-band p { margin-bottom: 28px; }
.cta-band .btn-pill { background: var(--sage); color: var(--char); }
.cta-band .btn-pill:hover { background: #fff; }
footer.site { background: var(--char); color: #9aa39c; padding: 60px 0 30px; margin-top: 70px; font-size: .9rem; }
footer.site .fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
footer.site h4 { color: var(--sage); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; font-family: var(--sans); font-weight: 700; }
footer.site a { color: #c9d2c9; text-decoration: none; display: block; margin-bottom: 9px; }
footer.site a:hover { color: var(--sage); }
footer.site .brand { color: #fff; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; color: #6b726b; font-size: .82rem; font-family: var(--mono); }
@media (max-width: 820px) {
  .hero .grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 2.2rem; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.flip > div:first-child { order: 0; }
  .fgrid2 { grid-template-columns: 1fr; }
  footer.site .fgrid { grid-template-columns: 1fr 1fr; }
  .calc { padding: 26px; }
  nav.main a { margin-left: 14px; font-size: .84rem; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
