/* Gewerbepark Werkstraße – CK Immobilien GmbH */
:root {
  --ink: #1E2F28; --ink2: #24382f; --line-d: #3d5348;
  --green: #4DB543; --green-d: #2f8a2a;
  --bg-d: #1E2F28; --bg-d-rgb: 30,47,40; --foot: #17251f; --on-d: #dfe3e1; --on-d-strong: #ffffff; --on-d-soft: #b9c0bc; --acc-d: var(--green); --rule-d: rgba(255,255,255,.22); --ghost-b: rgba(255,255,255,.55);
  --paper: #F6F5F1; --white: #ffffff; --text: #262b29; --muted: #66706b; --line: #dcdcd6;
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Avenir Next", "Avenir", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--sans); color: var(--text); background: var(--paper); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-d); }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--ink); }
h2 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 22px; }
.kicker { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--green-d); font-weight: 600; }
.dark .kicker, .hero .kicker { color: var(--acc-d) !important; }
.rule { width: 72px; height: 2px; background: var(--green); margin: 20px 0; }
.lead { font-size: 19px; color: #3d4441; max-width: 62ch; }
section { padding: 84px 0; }
.dark { background: var(--bg-d); color: var(--on-d); }
.dark h2, .dark h3 { color: var(--on-d-strong); }

/* Kopf */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(var(--bg-d-rgb),.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-d); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.top .brand img { height: 52px; width: auto; }
.top .brand .logo-hell { display: none; }
.nav { display: flex; gap: 30px; align-items: center; }
.nav a { color: var(--on-d); text-decoration: none; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.nav a:hover, .nav a:focus-visible { color: var(--green); }
.btn { display: inline-block; background: var(--green); color: #10201a !important; font-weight: 600; padding: 13px 26px; text-decoration: none; letter-spacing: .08em; font-size: 14px; text-transform: uppercase; border: 1px solid var(--green); transition: background .2s, color .2s; }
.btn:hover, .btn:focus-visible { background: transparent; color: var(--green) !important; }
.btn.ghost { background: transparent; color: var(--on-d-strong) !important; border-color: var(--ghost-b); }
.btn.ghost:hover { border-color: var(--green); color: var(--green) !important; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-d); color: var(--on-d-strong); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; padding: 9px 14px; cursor: pointer; }

/* Start */
.hero { padding: 72px 0 0; background: var(--bg-d); color: var(--on-d-strong); }
.hero .photo { position: relative; height: clamp(300px, 58vh, 620px); overflow: hidden; }
.hero .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 68%; }
.hero .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--bg-d-rgb),0) 72%, rgba(var(--bg-d-rgb),1) 100%); }
.hero .wrap { padding: 26px 0 60px; }
.hero h1 { color: var(--on-d-strong); font-size: clamp(36px, 5.6vw, 68px); margin: 12px 0 0; }
.hero p { font-size: clamp(17px, 2vw, 20px); color: var(--on-d); max-width: 62ch; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 46px; border-top: 1px solid var(--rule-d); }
.facts div { padding: 20px 20px 0 0; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 3vw, 36px); color: var(--on-d-strong); line-height: 1.15; }
.facts span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--on-d-soft); }

/* Flächen */
.filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 30px; }
.filter button { font: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; padding: 10px 18px; background: transparent; border: 1px solid #b9bfbb; color: var(--text); cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; }
.unit { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.unit .pics { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3px; background: var(--white); position: relative; }
.unit .pics.one { grid-template-columns: 1fr; }
.unit .pics img { width: 100%; height: 250px; object-fit: cover; }
.badge { position: absolute; left: 16px; top: 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; padding: 7px 13px; }
.badge.frei { background: var(--green); color: #0c110f; }
.badge.bald { background: #fff; color: var(--ink); border: 2px solid var(--green); padding: 5px 11px; }
.badge.verm { background: var(--ink); color: #cfd4d1; }
.unit .body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.unit h3 { font-size: 30px; }
.unit .tag { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-d); font-weight: 600; margin: 4px 0 12px; }
.unit p { color: #474d4a; font-size: 16px; }
.spec { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; margin: 16px 0 0; font-size: 15px; }
.spec li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.spec li span { color: var(--muted); } .spec li b { font-weight: 600; color: var(--ink); text-align: right; }
.price { margin-top: auto; padding-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.price .eur b { font-family: var(--serif); font-weight: 400; font-size: 34px; color: var(--ink); line-height: 1; }
.price .eur small { display: block; font-size: 13px; color: var(--muted); margin-top: 5px; }
.price a { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--green); padding-bottom: 3px; color: var(--ink); }
.unit.is-verm .price .eur b { font-size: 22px; color: var(--muted); }
.unit[hidden] { display: none; }
.note { font-size: 14px; color: var(--muted); margin-top: 26px; max-width: 80ch; }

/* Übersichtstabelle */
.tablewrap { overflow-x: auto; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; font-size: 16px; font-variant-numeric: tabular-nums; min-width: 640px; }
th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; text-align: right; border-bottom: 2px solid var(--ink); padding: 12px 14px; }
td { text-align: right; padding: 14px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
td a { color: var(--ink); text-decoration: none; font-weight: 600; }
tr.v td, tr.v td a { color: var(--muted); font-weight: 400; }
.tablewrap { background: var(--white); border: 1px solid var(--line); padding: 8px 18px 4px; }
.light { background: #EFEDE6; }
th:first-child, td:first-child, th.l, td.l { text-align: left; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 9px; background: var(--green); }
.dot.v { background: transparent; border: 1.5px solid #8f9793; }
.dot.b { background: #fff; border: 2px solid var(--green); }

/* Zweispalter */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.split img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.plan { background: #fff; border: 1px solid var(--line); padding: 14px; }
.plan img { height: auto; max-height: none; object-fit: contain; }
.list { list-style: none; margin-top: 18px; }
.list li { padding: 11px 0 11px 26px; border-bottom: 1px solid var(--line); position: relative; }
.list li::before { content: ""; position: absolute; left: 0; top: 23px; width: 12px; height: 2px; background: var(--green); }
.dark .list li { border-color: var(--line-d); }
.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 30px; }
.gal img { width: 100%; height: 210px; object-fit: cover; }
.gal .w2 { grid-column: span 2; }

/* Kontakt */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.contact .card { border: 1px solid var(--line-d); padding: 34px; }
.contact .card p { margin-bottom: 14px; }
.contact a.mail { color: var(--acc-d); font-size: 22px; text-decoration: none; font-family: var(--serif); word-break: break-word; }
footer { background: var(--foot); color: var(--on-d-soft); padding: 34px 0; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--on-d); text-decoration: none; margin-left: 22px; }
footer a:hover { color: var(--green); }

/* Rechtstexte */
.legal { padding: 140px 0 80px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 26px; }
.legal h2 { font-size: 26px; margin: 34px 0 10px; }
.legal p, .legal li { max-width: 74ch; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }

@media (max-width: 900px) {
  section { padding: 60px 0; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg-d); flex-direction: column; align-items: flex-start; padding: 20px 24px 26px; gap: 18px; border-bottom: 1px solid var(--line-d); }
  .nav.open { display: flex; }
  .menu-btn { display: block; }
  .units, .split, .contact { grid-template-columns: 1fr; gap: 30px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .gal { grid-template-columns: repeat(2, 1fr); }
  .unit .pics img { height: 200px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .spec { grid-template-columns: 1fr; }
  .unit .body { padding: 22px 20px 24px; }
  .unit .pics { grid-template-columns: 1fr; }
  .unit .pics img + img { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Farbvarianten (Vorschau): A Tannengrün ist der Standard */
html[data-farbe="d"] { --ink: #1B2A3D; --ink2: #22344a; --line-d: #34475e; --bg-d: #1B2A3D; --bg-d-rgb: 27,42,61; --foot: #141f2e; }
html[data-farbe="e"] { --bg-d: #ECE8DD; --bg-d-rgb: 236,232,221; --line-d: #cfcabb; --foot: #E2DDD0; --on-d: #3d4441; --on-d-strong: #1E2F28; --on-d-soft: #66706b; --acc-d: #2f8a2a; --rule-d: #cfcabb; --ghost-b: #8f9793; }
html[data-farbe="e"] .top .brand .logo-dunkelgrund { display: none; }
html[data-farbe="e"] .top .brand .logo-hell { display: block; }
.farbwahl { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #c9cdc9; padding: 9px 14px; box-shadow: 0 6px 22px rgba(0,0,0,.18); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #454b48; }
.farbwahl button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; outline: 1px solid #b9bfbb; cursor: pointer; padding: 0; }
.farbwahl button[aria-pressed="true"] { outline: 2px solid #2f8a2a; outline-offset: 2px; }
.farbwahl button:focus-visible { outline: 2px solid #1E2F28; outline-offset: 3px; }
@media print { .farbwahl { display: none; } }
.farbwahl { transition: opacity .25s ease, transform .25s ease, visibility .25s; }
.farbwahl.weg { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(10px); }
@media (prefers-reduced-motion: reduce) { .farbwahl { transition: none; } }
