/* TeichRechner — "Wasser & Sand": deep teal + sand, wave motifs, organic rounded shapes. */
:root {
  --teal: #0d5152; --teal-deep: #073c3c; --teal-soft: #e3efec;
  --aqua: #4fb3a1; --aqua-deep: #2e8577;
  --sand: #f4ecda; --sand-deep: #e2d2ae; --paper: #fffdf7;
  --ink: #20383a; --mut: #5c7473; --line: #d9cfb6;
  --radius: 26px;
  --serif: Georgia, "Times New Roman", "Nimbus Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 6px 22px rgba(7,60,60,.10); --lift: 0 16px 40px rgba(7,60,60,.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--sand); color: var(--ink); line-height: 1.75; -webkit-font-smoothing: antialiased; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 26px; }
h1, h2, h3 { font-family: var(--serif); color: var(--teal-deep); line-height: 1.25; font-weight: 700; }
/* wave divider */
.wave { display: block; width: 100%; height: 46px; margin: -1px 0; }
.wave path { fill: var(--teal-deep); }
.wave.sand path { fill: var(--sand); }
.wave.paper path { fill: var(--paper); }
.wave.aqua path { fill: var(--teal-soft); }
/* header */
header.site { background: var(--teal-deep); 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: 13px 0; }
.brand { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: #fff; text-decoration: none; display: inline-flex; align-items: center; letter-spacing: .01em; }
.brand .drop { width: 40px; height: 40px; background: radial-gradient(circle at 35% 30%, var(--aqua), var(--teal)); margin-right: 11px; display: inline-flex; align-items: center; justify-content: center; border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%; }
.brand .drop svg { width: 20px; height: 20px; fill: #fff; }
.brand em { font-style: normal; color: var(--aqua); }
nav.main a { color: #cfe3de; text-decoration: none; margin-left: 22px; font-size: .92rem; font-weight: 600; }
nav.main a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* hero */
.hero { position: relative; padding: 110px 0 130px; background: url('../images/hero.webp') center/cover; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(7,60,60,.90), rgba(7,60,60,.45)); }
.hero .container { position: relative; z-index: 1; }
.hero .tag { display: inline-block; background: rgba(79,179,161,.22); border: 1px solid rgba(79,179,161,.7); color: #cdeee7; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 9px 20px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: 3rem; max-width: 680px; margin-bottom: 16px; font-style: italic; }
.hero h1 .aq { color: var(--aqua); }
.hero p.lead { color: #e6f2ef; font-size: 1.12rem; max-width: 640px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-teal { display: inline-block; background: linear-gradient(135deg, var(--aqua), var(--aqua-deep)); color: #fff; text-decoration: none; padding: 16px 38px; border-radius: 999px; font-weight: 800; box-shadow: 0 10px 26px rgba(46,133,119,.45); transition: transform .15s; }
.btn-teal:hover { transform: translateY(-3px); }
.btn-ghost { display: inline-block; border: 2px solid rgba(255,255,255,.55); color: #fff; text-decoration: none; padding: 14px 34px; border-radius: 999px; font-weight: 700; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
section.block { padding: 70px 0; }
section.block.tint { background: var(--paper); }
section.block.aquatint { background: var(--teal-soft); }
.sec-pre { color: var(--aqua-deep); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sec-title { font-size: 2.3rem; margin: 10px 0 12px; font-style: italic; }
.sec-sub { color: var(--mut); max-width: 720px; margin-bottom: 38px; font-size: 1.02rem; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 24px; }
.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(-7px); box-shadow: var(--lift); }
.tcard .ph { height: 140px; background-size: cover; background-position: center; border-radius: 0 0 50% 50% / 0 0 26px 26px; }
.tcard .tx { padding: 22px 26px 26px; flex: 1; }
.tcard .no { font-size: .72rem; color: var(--aqua-deep); letter-spacing: .1em; font-weight: 800; text-transform: uppercase; }
.tcard .tx h3 { font-size: 1.35rem; margin: 8px 0 8px; }
.tcard .tx p { font-size: .93rem; color: var(--mut); margin-bottom: 14px; }
.tcard .go { font-weight: 800; color: var(--teal-deep); font-size: .92rem; }
.tcard .go span { color: var(--aqua-deep); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin: 56px 0; }
.split.flip > div:first-child { order: 2; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--lift); display: block; }
.split h3 { font-size: 1.7rem; margin-bottom: 12px; font-style: italic; }
.split p { color: var(--mut); margin-bottom: 12px; }
.split .more { font-weight: 800; color: var(--aqua-deep); text-decoration: none; border-bottom: 2px solid var(--aqua); }
table.ref { width: 100%; border-collapse: collapse; margin: 14px 0 26px; font-size: .93rem; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
table.ref th { background: var(--teal-deep); color: #fff; padding: 13px 15px; text-align: left; font-family: var(--serif); font-size: .95rem; font-weight: 700; }
table.ref td { padding: 11px 15px; border-bottom: 1px solid var(--line); }
table.ref tr:last-child td { border-bottom: none; }
table.ref tr:nth-child(even) td { background: #f8f3e6; }
.crumbs { font-size: .85rem; color: var(--mut); margin: 24px 0 10px; }
.crumbs a { color: var(--aqua-deep); text-decoration: none; font-weight: 700; }
.pagehead { max-width: 800px; }
.pagehead h1 { font-size: 2.5rem; margin-bottom: 10px; font-style: italic; }
.pagehead h1 .aq { color: var(--aqua-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: var(--radius); box-shadow: var(--lift); }
.calc { background: var(--paper); border-radius: var(--radius); padding: 38px; margin: 32px 0; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 740px; }
.calc .kicker { display: inline-block; background: var(--teal-soft); color: var(--teal-deep); font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: .95rem; color: var(--teal-deep); font-family: var(--serif); font-size: 1.02rem; }
.field input, .field select { width: 100%; padding: 14px 18px; border: 2px solid var(--line); border-radius: 999px; font-size: 1rem; background: #fdfbf4; color: var(--ink); }
.field select { border-radius: 16px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--aqua); background: #fff; }
.field input.invalid { border-color: #c0392b; background: #fdf2f0; }
.field .hint { font-size: .84rem; color: var(--mut); margin-top: 6px; }
.field .error { font-size: .84rem; color: #c0392b; margin-top: 6px; display: none; font-weight: 600; }
.btn-row { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
button.calc-btn { background: linear-gradient(135deg, var(--aqua), var(--aqua-deep)); color: #fff; border: none; padding: 16px 32px; font-size: 1rem; font-weight: 800; cursor: pointer; flex: 1; border-radius: 999px; box-shadow: 0 8px 22px rgba(46,133,119,.35); transition: transform .15s; min-width: 200px; }
button.calc-btn:hover { transform: translateY(-2px); }
button.reset-btn { background: transparent; color: var(--mut); border: 2px solid var(--line); padding: 16px 28px; cursor: pointer; font-weight: 700; border-radius: 999px; }
button.reset-btn:hover { border-color: var(--mut); }
.result { display: none; margin-top: 28px; background: linear-gradient(135deg, var(--teal-deep), var(--teal)); border-radius: 20px; padding: 30px; color: #fff; }
.result.show { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
.result .big { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: #fff; }
.result .rrow { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.16); font-size: .95rem; }
.result .rrow:last-child { border-bottom: none; }
.result .rrow span:first-child { color: #bcd9d4; }
.result .note { font-size: .86rem; color: #bcd9d4; margin-top: 12px; }
article.prose { margin: 38px 0; max-width: 820px; }
article.prose h2 { font-size: 1.6rem; margin: 36px 0 12px; font-style: italic; }
article.prose h3 { font-size: 1.15rem; margin: 26px 0 8px; }
article.prose p { margin-bottom: 14px; }
article.prose ul, article.prose ol { margin: 10px 0 18px 26px; }
article.prose li { margin-bottom: 8px; }
.example { background: var(--teal-soft); border-radius: 16px; padding: 20px 24px; margin: 16px 0 26px; border-left: 6px solid var(--aqua); }
.warnbox { background: #fbf3df; border: 1px solid var(--sand-deep); border-radius: 16px; padding: 20px 24px; margin: 26px 0; }
.warnbox strong { color: var(--teal-deep); }
details.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; margin-bottom: 14px; padding: 6px 22px; box-shadow: var(--shadow); }
details.faq summary { cursor: pointer; font-family: var(--serif); font-size: 1.08rem; font-weight: 700; color: var(--teal-deep); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--aqua-deep); flex-shrink: 0; }
details.faq[open] summary::after { content: "–"; }
details.faq p { color: var(--mut); padding-bottom: 16px; }
footer.site { background: var(--teal-deep); color: #cfe3de; margin-top: 0; }
footer.site .fgrid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 56px 0 30px; }
footer.site h4 { font-family: var(--serif); color: #fff; font-size: 1.05rem; margin-bottom: 12px; font-style: italic; }
footer.site a { color: #cfe3de; text-decoration: none; display: block; margin-bottom: 8px; font-size: .93rem; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site .bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0; font-size: .85rem; color: #9dc0b9; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } footer.site .fgrid { grid-template-columns: 1fr 1fr; } .hero h1 { font-size: 2.2rem; } .calc { padding: 26px 20px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
