/* FensterdekoPlaner — "Atelier": warm linen, soft taupe, deep olive. Curtain-fold motifs. */
:root {
  --linen: #f3ecdd; --paper: #faf6ec; --paper2: #fbf8f0;
  --taupe: #8f7d64; --taupe-deep: #6f6049;
  --olive: #5c6643; --olive-deep: #3c432c; --olive-pale: #e8e6d2;
  --ink: #2e2a23; --mut: #7d7060; --line: #e2d6bf;
  --radius: 10px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;
  --shadow: 0 3px 14px rgba(111,96,73,.10); --shadow-lift: 0 14px 34px rgba(111,96,73,.16);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--linen); color: var(--ink); line-height: 1.7; -webkit-font-smoothing: antialiased; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
/* curtain-fold divider: vertical drapery stripes */
.folds { height: 26px;
  background: repeating-linear-gradient(90deg, rgba(92,102,67,.16) 0 14px, rgba(92,102,67,.04) 14px 26px, transparent 26px 40px);
  opacity: .8; }
/* scalloped hem edge */
.hemedge { height: 20px;
  background-image: radial-gradient(circle 10px at 10px 0, var(--linen) 98%, transparent);
  background-size: 40px 20px; background-repeat: repeat-x; }
header.site { background: var(--paper); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(111,96,73,.08); }
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: var(--olive-deep); text-decoration: none; display: inline-flex; align-items: center; letter-spacing: .01em; }
.brand .fold { width: 36px; height: 44px; margin-right: 12px;
  background: linear-gradient(180deg, var(--olive) 0 22%, var(--olive-deep) 22% 30%, var(--olive) 30% 100%);
  background-size: 100% 100%; clip-path: polygon(0 0, 100% 0, 92% 100%, 75% 88%, 58% 100%, 42% 88%, 25% 100%, 8% 88%, 0 100%);
  display: inline-flex; align-items: center; justify-content: center; }
.brand .fold svg { width: 18px; height: 18px; stroke: #f6f1e2; fill: none; stroke-width: 2; }
.brand em { font-style: normal; color: var(--taupe-deep); }
nav.main a { color: var(--olive-deep); text-decoration: none; margin-left: 22px; font-size: .93rem; font-weight: 600; }
nav.main a:hover { color: var(--taupe-deep); }
/* hero: editorial, image right / text left */
.hero { position: relative; padding: 0; background: var(--paper2); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; align-items: stretch; }
.hero .txt { padding: 84px 56px 84px 0; max-width: 560px; justify-self: end; }
.hero .kicker { display: inline-block; font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--olive); border-bottom: 2px solid var(--olive); padding-bottom: 6px; margin-bottom: 20px; }
.hero h1 { font-family: var(--serif); font-size: 3rem; line-height: 1.08; color: var(--olive-deep); margin-bottom: 18px; font-weight: 700; }
.hero h1 .go { color: var(--taupe-deep); font-style: italic; }
.hero p.lead { color: var(--mut); font-size: 1.1rem; margin-bottom: 32px; }
.hero .img { min-height: 420px; background: url('../images/hero.webp') center/cover; position: relative; }
.hero .img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--paper2) 0%, transparent 18%); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-olive { display: inline-block; background: var(--olive); color: #fbf7ec; text-decoration: none; padding: 15px 34px; border-radius: 3px; font-weight: 700; letter-spacing: .02em; box-shadow: var(--shadow); transition: transform .15s, background .15s; }
.btn-olive:hover { background: var(--olive-deep); transform: translateY(-2px); }
.btn-line { display: inline-block; border: 1.5px solid var(--taupe); color: var(--taupe-deep); text-decoration: none; padding: 13px 32px; border-radius: 3px; font-weight: 700; transition: border-color .15s; }
.btn-line:hover { border-color: var(--olive); color: var(--olive-deep); }
section.block { padding: 70px 0; }
.sec-pre { font-family: var(--mono); color: var(--taupe-deep); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sec-title { font-family: var(--serif); font-size: 2.4rem; margin: 10px 0 14px; color: var(--olive-deep); font-weight: 700; }
.sec-sub { color: var(--mut); max-width: 720px; margin-bottom: 38px; font-size: 1.03rem; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 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-top: 4px solid var(--olive); }
.tcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.tcard .ph { height: 150px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.tcard .tx { padding: 22px 24px 24px; flex: 1; }
.tcard .no { font-family: var(--mono); font-size: .72rem; color: var(--taupe-deep); letter-spacing: .08em; }
.tcard .tx h3 { font-family: var(--serif); font-size: 1.4rem; margin: 6px 0 8px; color: var(--olive-deep); display: flex; align-items: center; gap: 10px; }
.tcard .tx h3 svg { width: 26px; height: 26px; stroke: var(--olive); fill: none; stroke-width: 1.8; flex-shrink: 0; }
.tcard .tx p { font-size: .92rem; color: var(--mut); margin-bottom: 12px; }
.tcard .go { font-weight: 700; color: var(--olive); font-size: .92rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin: 52px 0; }
.split.flip > div:first-child { order: 2; }
.split img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lift); display: block; }
.split h3 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 12px; color: var(--olive-deep); }
.split p { color: var(--mut); margin-bottom: 12px; }
.split .more { font-weight: 700; color: var(--olive); text-decoration: none; border-bottom: 2px solid var(--olive-pale); }
table.ref { width: 100%; border-collapse: collapse; margin: 12px 0 26px; font-size: .93rem; background: var(--paper); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
table.ref th { background: var(--olive); color: #f6f1e2; padding: 12px 14px; text-align: left; font-size: .85rem; font-weight: 700; }
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: #f5efe0; }
.crumbs { font-size: .85rem; color: var(--mut); margin: 24px 0 8px; }
.crumbs a { color: var(--olive); text-decoration: none; font-weight: 700; }
.pagehead { max-width: 800px; }
.pagehead h1 { font-family: var(--serif); font-size: 2.6rem; margin-bottom: 10px; color: var(--olive-deep); font-weight: 700; }
.pagehead h1 .go { color: var(--taupe-deep); font-style: italic; }
.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(--shadow-lift); }
.calc { background: var(--paper); border-radius: 12px; padding: 38px; margin: 32px 0; box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 740px; position: relative; }
.calc::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 12px 12px 0 0;
  background: repeating-linear-gradient(90deg, var(--olive) 0 22px, var(--taupe) 22px 44px); }
.calc .ctag { display: inline-block; background: var(--olive-pale); color: var(--olive-deep); font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 3px; margin-bottom: 22px; border: 1px solid var(--olive); }
.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: 1.5px solid var(--line); border-radius: 6px; font-size: 1rem; font-family: var(--mono); background: #fffdf7; color: var(--ink); }
.field input:focus, .field select:focus { outline: none; border-color: var(--olive); background: #fff; }
.field input.invalid { border-color: #a94442; background: #faf0ec; }
.field .hint { font-size: .83rem; color: var(--mut); margin-top: 5px; }
.field .error { font-size: .83rem; color: #a94442; margin-top: 5px; display: none; font-weight: 600; }
.btn-row { display: flex; gap: 12px; margin-top: 8px; }
button.calc-btn { background: var(--olive); color: #fbf7ec; border: none; padding: 15px 30px; border-radius: 3px; font-size: 1.02rem; font-weight: 700; cursor: pointer; flex: 1; box-shadow: var(--shadow); transition: background .15s, transform .15s; }
button.calc-btn:hover { background: var(--olive-deep); transform: translateY(-2px); }
button.reset-btn { background: transparent; color: var(--mut); border: 1.5px solid var(--line); padding: 15px 26px; border-radius: 3px; cursor: pointer; font-weight: 700; }
button.reset-btn:hover { border-color: var(--taupe); color: var(--taupe-deep); }
.result { display: none; margin-top: 26px; background: var(--olive-deep); border-radius: 8px; padding: 28px; color: #f3edda; }
.result.show { display: block; animation: foldIn .35s ease; }
.result .big { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: #fff; }
.result .rrow { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid rgba(246,241,226,.22); font-size: .95rem; font-family: var(--mono); }
.result .rrow:last-child { border-bottom: none; }
.result .rrow span:first-child { color: #d8cfae; }
.result .note { font-size: .85rem; color: #d8cfae; margin-top: 10px; }
article.prose { margin: 38px 0; max-width: 820px; }
article.prose h2 { font-family: var(--serif); font-size: 1.8rem; margin: 36px 0 12px; color: var(--olive-deep); }
article.prose h3 { font-size: 1.16rem; margin: 24px 0 8px; color: var(--taupe-deep); }
article.prose p, article.prose li { margin-bottom: 10px; color: #463f33; }
article.prose ul, article.prose ol { padding-left: 22px; }
article.prose a { color: var(--olive); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--olive-pale); }
.warnbox { background: #f7eedd; border-left: 6px solid var(--taupe); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 24px 0; font-size: .92rem; color: #5d5040; }
.warnbox strong { text-transform: uppercase; letter-spacing: .04em; }
.tipbox { background: #eef0e2; border-left: 6px solid var(--olive); border-radius: 0 8px 8px 0; padding: 18px 22px; margin: 24px 0; font-size: .92rem; color: #424a2e; }
.example { background: var(--paper); border-radius: var(--radius); padding: 20px 24px; margin: 22px 0; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 4px solid var(--taupe); 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: 700; cursor: pointer; font-family: var(--serif); font-size: 1.05rem; color: var(--olive-deep); }
.faq p { margin-top: 8px; color: var(--mut); font-size: .94rem; }
.cta-band { background: linear-gradient(120deg, var(--olive-deep), #4e5738); border-radius: 12px; padding: 56px 38px; text-align: center; color: #e9e2cc; margin: 64px 0; }
.cta-band h2 { font-family: var(--serif); color: #fff; font-size: 2.2rem; margin-bottom: 10px; font-weight: 700; }
.cta-band h2 .go { color: #dcd4b4; font-style: italic; }
.cta-band p { margin-bottom: 26px; }
footer.site { background: var(--olive-deep); color: #cfc7ae; padding: 56px 0 30px; margin-top: 70px; font-size: .9rem; }
footer.site .folds { background: repeating-linear-gradient(90deg, rgba(246,241,226,.14) 0 14px, rgba(246,241,226,.03) 14px 26px, transparent 26px 40px); margin-bottom: 30px; }
footer.site .fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 30px; }
footer.site h4 { color: #f0e9d4; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
footer.site a { color: #e2d9bd; text-decoration: none; display: block; margin-bottom: 8px; }
footer.site a:hover { color: #fff; }
footer.site .brand { color: #f6f1e2; }
footer.site .bottom { border-top: 1px solid rgba(246,241,226,.18); padding-top: 20px; color: #a89e7e; font-size: .82rem; font-family: var(--mono); }
@keyframes foldIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* print worksheet */
@media print {
  header.site, .calc .btn-row, .no-print, footer.site, .pagehead .pimg { display: none !important; }
  body { background: #fff; } .calc { box-shadow: none; border: 1px solid #999; max-width: 100%; }
  .printsheet { display: block !important; }
  table.printgrid { width: 100%; border-collapse: collapse; font-size: .9rem; }
  table.printgrid th, table.printgrid td { border: 1px solid #333; padding: 10px; text-align: left; height: 42px; }
  .printsheet h1 { font-family: var(--serif); color: #000; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; } .hero .txt { padding: 56px 24px; max-width: none; }
  .hero .img { min-height: 260px; order: -1; } .hero .img::after { background: linear-gradient(180deg, var(--paper2) 0%, transparent 25%); }
  .hero h1 { font-size: 2.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: 2rem; }
}
