/* IRL Studio — eigenes CSS, keine externen Quellen (Fonts lokal/System) */
:root {
  --primary: #9a5b22; --primary-dark: #6f3f14; --primary-deep: #2a1a0e;
  --ink: #241c14; --muted: #6f6154; --line: #eee3d6;
  --bg: #faf6f1; --card: #ffffff; --accent: #2f7d4f; --accent-dark: #256540;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(30,27,46,.05), 0 8px 24px -12px rgba(76,34,133,.18);
  --shadow-lg: 0 2px 4px rgba(30,27,46,.06), 0 18px 44px -16px rgba(76,34,133,.28);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -.02em; margin: .2em 0 .4em; }
h2 { font-size: 1.35rem; letter-spacing: -.01em; margin-top: 2.2rem; }
h3 { font-size: 1.08rem; margin: 0 0 .4rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { background: rgba(32,21,12,.97); position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 4px 20px rgba(24,14,6,.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 20px; gap: 8px; }
.logo { color: #fff; text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.logo strong { background: linear-gradient(90deg, #f0b27a, #d98a3d); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.nav a { color: #ecdcc8; text-decoration: none; margin-left: 22px; font-weight: 600; font-size: .95rem;
  padding: 6px 2px; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav a:hover { color: #fff; border-bottom-color: var(--primary); }

main { padding: 28px 20px 64px; min-height: 60vh; }
.lead { color: var(--muted); max-width: 720px; font-size: 1.06rem; }
.note { color: var(--muted); font-size: .85rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 22px; margin: 6px 0 34px;
  background: radial-gradient(1200px 500px at 85% -10%, #b3712955, transparent 60%),
              radial-gradient(800px 400px at -10% 110%, #2f7d4f33, transparent 60%),
              linear-gradient(135deg, #20150c 0%, #4a2f17 60%, #38230f 100%);
  color: #fff; padding: clamp(28px, 6vw, 64px); box-shadow: var(--shadow-lg); }
.hero h1 { color: #fff; max-width: 640px; }
.hero .lead { color: #e5d5c0; max-width: 640px; }
.hero .lead strong { color: #fff; }
.hero .lead a { color: #f0b27a; }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-wave { position: absolute; right: -20px; bottom: -8px; width: min(42%, 420px); opacity: .5;
  pointer-events: none; }
.hero-deco { position: absolute; right: 8px; bottom: -14px; width: min(36%, 330px); opacity: .5;
  pointer-events: none; }
@media (max-width: 720px) { .hero-wave, .hero-deco { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: linear-gradient(180deg, #b06c2a, #9a5b22); color: #fff;
  border: 0; border-radius: 12px; padding: 12px 22px; font-size: .98rem; font-weight: 700;
  text-decoration: none; cursor: pointer; box-shadow: 0 2px 6px rgba(154,91,34,.35);
  transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(154,91,34,.4); }
.btn-sec { background: #fff; color: var(--primary-dark); box-shadow: inset 0 0 0 1.5px var(--line), 0 1px 3px rgba(30,27,46,.08); }
.btn-sec:hover { box-shadow: inset 0 0 0 1.5px var(--primary), 0 4px 12px rgba(154,91,34,.18); filter: none; }
.btn-ghost { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-shop { background: linear-gradient(180deg, #379059, #2f7d4f); box-shadow: 0 2px 6px rgba(47,125,79,.35); }
.btn-shop:hover { box-shadow: 0 6px 16px rgba(47,125,79,.4); }

/* ---------- Feature-Karten (Startseite) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 28px 0 8px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature .f-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #f8e9d4, #fdf4e6); margin-bottom: 14px; }
.feature .f-icon svg { width: 26px; height: 26px; stroke: var(--primary); }
.feature h2 { margin: 0 0 8px; font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0 0 14px; }
.feature a.more { font-weight: 700; text-decoration: none; }
.feature a.more:hover { text-decoration: underline; }

/* ---------- Karten allgemein ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 18px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a:hover { color: var(--primary); }
.card p { color: var(--muted); font-size: .92rem; }

.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; margin: 26px 0; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* ---------- Konfigurator ---------- */
.konfig-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 16px 0;
  padding: 16px 18px; background: var(--card); box-shadow: var(--shadow); }
.konfig-form legend { font-weight: 800; padding: 0 8px; font-size: .95rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; flex-direction: column; gap: 2px; border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 18px; cursor: pointer; font-weight: 700; background: #fff;
  transition: border-color .12s, background .12s, transform .12s; }
.choice:hover { border-color: #dcb98a; transform: translateY(-1px); }
.choice input { position: absolute; opacity: 0; }
.choice.active, .choice:has(input:checked) { border-color: var(--primary);
  background: linear-gradient(180deg, #fbeeda, #f5e2c6); color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(154,91,34,.18); }
.choice-hint { font-size: .75rem; font-weight: 500; color: var(--muted); }

.setup-result { margin-top: 30px; }
.setup-item { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius); padding: 18px 20px; margin: 14px 0; box-shadow: var(--shadow); }
.setup-item-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.setup-item-head h3 { margin: 0; font-size: 1.12rem; }
.cat-tag { background: #f5e2c6; color: var(--primary-dark); border-radius: 999px; font-size: .72rem;
  font-weight: 800; padding: 4px 12px; text-transform: uppercase; letter-spacing: .6px; }
.price-range { margin-left: auto; font-weight: 800; color: var(--accent-dark); font-size: 1.05rem; }
.why { color: var(--muted); font-size: .93rem; margin: 10px 0 12px; }
.offer-buttons-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.offer-buttons-row .btn { padding: 9px 16px; font-size: .87rem; }
.result-count { color: var(--muted); font-size: 1rem; }
.result-count, .setup-result > h2 { margin-bottom: 4px; }

/* ---------- Tabellen ---------- */
.data-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; font-size: .93rem; box-shadow: var(--shadow); }
.data-table th, .data-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.data-table thead th { background: #f7efe3; }
.total-row td, .total-row th { background: #e9f5ee; font-weight: 800; }
.table-scroll { overflow-x: auto; }

.ad-label { display: inline-block; background: #fff3d6; color: #7a5a00; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .6px; border-radius: 5px; padding: 3px 8px; vertical-align: middle; }

/* ---------- Akustik-Rechner ---------- */
.akustik-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 14px; }
@media (max-width: 820px) { .akustik-grid { grid-template-columns: 1fr; } }
.akustik-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px;
  padding: 14px 18px; background: var(--card); box-shadow: var(--shadow); }
.akustik-form legend { font-weight: 800; padding: 0 8px; font-size: .95rem; }
.akustik-form label { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 10px 0; font-size: .93rem; color: var(--muted); }
.akustik-form input, .akustik-form select { padding: 8px 10px; border: 1.5px solid var(--line);
  border-radius: 9px; max-width: 230px; font-size: .93rem; background: #fff; }
.akustik-form input:focus, .akustik-form select:focus { outline: none; border-color: var(--primary); }
.akustik-form input[type=number] { width: 96px; }
.akustik-result { background: linear-gradient(180deg, #ffffff, #fdf8f1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-lg); align-self: start; }
.akustik-result h2 { margin-top: 0; }
.akustik-result .data-table { box-shadow: none; }

/* ---------- Ratgeber ---------- */
.cat-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 22px; }
.cat-nav a { padding: 8px 18px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none;
  font-size: .9rem; font-weight: 600; background: #fff; transition: border-color .12s, background .12s; }
.cat-nav a:hover { border-color: #dcb98a; }
.cat-nav a.current { background: var(--primary); color: #fff; border-color: var(--primary); }
.article-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.article-list { padding-left: 18px; }
.article-list li { margin: 9px 0; }
.article-list a { text-decoration: none; font-weight: 600; }
.article-list a:hover { text-decoration: underline; }
.article-meta { color: var(--muted); font-size: .85rem; }
.article-body { max-width: 740px; font-size: 1.02rem; }
.article-body h2 { border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .93rem;
  background: var(--card); border-radius: 10px; overflow: hidden; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.article-body th { background: #f7efe3; }
.more-articles { max-width: 740px; margin-top: 30px; padding-top: 10px; border-top: 1px solid var(--line); }

/* ---------- Kontakt & Alerts ---------- */
.contact-form { max-width: 560px; display: flex; flex-direction: column; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 5px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.contact-form input, .contact-form textarea { padding: 11px 13px; border: 1.5px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary); }
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.alert { border-radius: 12px; padding: 14px 18px; margin: 14px 0; max-width: 560px; box-shadow: var(--shadow); }
.alert-ok { background: #eafaf2; border: 1px solid #b8e6cf; color: #0a5c3c; }
.alert-err { background: #fdeeee; border: 1px solid #f2c4c4; color: #8f1f1f; }

/* ---------- Info-Boxen ---------- */
.strombox { background: linear-gradient(135deg, #fbf1e2, #eaf5ee); border: 1px solid #ecdcc4;
  border-radius: var(--radius); padding: 22px 24px; margin: 30px 0; box-shadow: var(--shadow); }
.strombox h2 { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #171021; color: #b5abc9; padding: 34px 0 42px; font-size: .87rem; margin-top: 30px; }
.site-footer a { color: #d9cbf2; }
.foot-links { margin: 0 0 12px; font-weight: 600; }
.foot-note { max-width: 780px; margin: 7px 0; line-height: 1.6; }

/* ---------- Tool-Layout (Rechner) ---------- */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 14px; }
@media (max-width: 860px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px;
  padding: 14px 18px; background: var(--card); box-shadow: var(--shadow); }
.tool-form legend { font-weight: 800; padding: 0 8px; font-size: .95rem; }
.tool-form label { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 10px 0; font-size: .93rem; color: var(--muted); }
.tool-form input, .tool-form select { padding: 8px 10px; border: 1.5px solid var(--line);
  border-radius: 9px; max-width: 230px; font-size: .93rem; background: #fff; }
.tool-form input:focus, .tool-form select:focus { outline: none; border-color: var(--primary); }
.tool-form input[type=number] { width: 96px; }
.tool-result { align-self: start; }
#kosten-tabelle input.anschaffung { width: 74px; padding: 5px 7px; border: 1.5px solid var(--line); border-radius: 7px; }
#kosten-tabelle .beste td, #kosten-tabelle .beste th { background: #e9f5ee; }
.beans-table td { vertical-align: middle; }

/* Koffein-Balken */
.ko-balken-wrap { position: relative; height: 18px; background: #f0e7da; border-radius: 999px;
  margin: 14px 0 6px; overflow: hidden; }
.ko-balken { height: 100%; width: 0; background: linear-gradient(90deg, #2f7d4f, #d9a13d 70%, #c94a28 100%);
  border-radius: 999px; transition: width .25s; }
.ko-marke { position: absolute; left: 80%; top: -3px; bottom: -3px; width: 2px; background: #6f3f14; }
