/* Fürstenwerk – gemeinsames Stylesheet (auch für holz.* und apps.* nutzbar) */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-600.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --bg: #15110e;
  --bg-2: #1d1814;
  --line: #2c241d;
  --line-2: #5a4b3d;
  --text: #efe6d8;
  --text-2: #c8bba7;
  --text-3: #a89a86;
  --gold: #c9a45c;
  --green-bg: #0f2a23;
  --green-card: #173d33;
  --green: #6cc4a4;
  --green-text: #b8dccd;
  --green-head: #f1fbf6;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: #e9dcc6; text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; letter-spacing: -0.01em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.eyebrow { margin: 0 0 14px; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.lead { color: var(--text-2); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 12px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn-light { background: var(--text); color: var(--bg); }
.btn-light:hover { background: #fff; color: var(--bg); }
.btn-green { background: var(--green); color: #0b1f19; }
.btn-green:hover { background: #82d3b5; color: #0b1f19; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-2); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21,17,14,0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 44px; height: 46px; object-fit: contain; }
.brand span { font-family: var(--serif); font-size: 22px; letter-spacing: 0.18em; font-weight: 600; color: var(--text); }
.main-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; font-weight: 500; }
.main-nav a { padding: 6px 0; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 40px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 88px); line-height: 1.04; max-width: 980px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { margin: 28px 0 0; max-width: 620px; font-size: 19px; }

/* Türen */
.doors { display: flex; flex-wrap: wrap; gap: 24px; padding-top: 16px; padding-bottom: 96px; }
.door { flex: 1 1 420px; min-width: 0; position: relative; height: 560px; border-radius: 22px; overflow: hidden; }
.door-holz { background: #2a211a; }
.door-holz > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.door-holz:hover > img { transform: scale(1.03); }
.door-holz .door-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 120px 36px 34px; background: linear-gradient(to top, rgba(12,9,7,0.92), rgba(12,9,7,0)); }
.door .eyebrow { margin-bottom: 6px; letter-spacing: 0.2em; }
.door h2 { font-size: 44px; line-height: 1.1; color: #fbf5ea; }
.door p { margin: 10px 0 18px; color: #dacdb8; max-width: 440px; }
.door-apps { background: var(--green-bg); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; }
.door-apps h2 { color: var(--green-head); }
.door-apps p { color: var(--green-text); }
.mini-apps { display: flex; flex-direction: column; gap: 14px; align-items: flex-end; padding-top: 8px; }
.mini-app { width: 300px; max-width: 90%; padding: 16px 18px; border-radius: 16px; background: var(--green-card); display: flex; gap: 14px; align-items: center; }
.mini-app:nth-child(2) { margin-right: 48px; }
.mini-app strong { display: block; font-size: 15px; color: var(--green-head); }
.mini-app small { font-size: 13px; color: #a9d6c4; }
.icon { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--green-bg); flex: none; }
.icon svg { width: 22px; height: 22px; }
.icon-green { background: var(--green); }
.icon-gold { background: var(--gold); }
.icon-cream { background: #e9dcc6; }

/* Werkstatt */
.werkstatt { background: var(--bg-2); padding: 96px 0; }
.split { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.split img { width: 100%; height: 440px; object-fit: cover; border-radius: 22px; }
.section-title { font-size: 46px; line-height: 1.12; }
.werkstatt p.lead { margin: 22px 0 0; }
.werkstatt p.lead + p.lead { margin-top: 16px; }
.signatur { margin: 26px 0 0; font-family: var(--serif); font-size: 22px; }

/* Galerie */
.holz { padding-top: 104px; padding-bottom: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.gallery { display: flex; flex-wrap: wrap; gap: 20px; }
.gallery figure { margin: 0; min-width: 0; flex: 1 1 300px; }
.gallery figure.g-wide { flex: 2 1 520px; }
.gallery figure.g-mid { flex: 1 1 420px; }
.gallery img { width: 100%; height: 360px; object-fit: cover; border-radius: 18px; }
.gallery .g-wide img, .gallery .g-mid img { height: 520px; }
.gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--text-2); }
.gallery figcaption strong { color: var(--text); font-weight: 600; }

/* Ablauf */
.ablauf { padding-top: 64px; padding-bottom: 104px; }
.ablauf h2 { font-size: 34px; margin-bottom: 36px; }
.steps { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.steps li { flex: 1 1 240px; min-width: 0; padding: 28px; border-radius: 18px; background: var(--bg-2); }
.steps .num { font-family: var(--serif); font-size: 34px; color: var(--gold); }
.steps h3 { margin: 10px 0 6px; font-family: var(--sans); font-size: 19px; letter-spacing: 0; }
.steps p { margin: 0; color: var(--text-2); font-size: 16px; }

/* Apps */
.apps { background: var(--green-bg); padding: 104px 0; }
.apps .section-title { color: var(--green-head); }
.apps .intro { margin: 18px 0 44px; max-width: 620px; color: var(--green-text); }
.app-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.app-card { flex: 1 1 320px; min-width: 0; padding: 32px; border-radius: 20px; background: var(--green-card); display: flex; flex-direction: column; gap: 14px; }
.app-card .top { display: flex; justify-content: space-between; align-items: center; }
.app-card .icon { width: 52px; height: 52px; border-radius: 14px; }
.app-card .icon svg { width: 26px; height: 26px; }
.badge { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--green-bg); color: #e2c88f; }
.badge-live { color: var(--green); }
.app-card h3 { margin-top: 6px; font-size: 30px; color: var(--green-head); }
.app-card p { margin: 0; color: var(--green-text); flex-grow: 1; }
.app-card a { font-weight: 600; color: var(--green); }
.app-card a:hover { color: #9fe3c9; }

/* Kontakt */
.kontakt { padding-top: 104px; padding-bottom: 104px; }
.kontakt-box { display: flex; flex-wrap: wrap; gap: 48px; padding: 56px; border-radius: 26px; background: var(--bg-2); }
.kontakt-box > div { flex: 1 1 400px; min-width: 0; }
.kontakt-box h2 { font-size: 44px; line-height: 1.12; }
.kontakt-box p.lead { margin: 18px 0 0; max-width: 520px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form .row { display: flex; flex-wrap: wrap; gap: 16px; }
.form .row > label { flex: 1 1 200px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; min-height: 46px; width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--green); }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; accent-color: var(--green); }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; font-size: 15px; margin: 18px 0 0; }
.notice-ok { background: #173d33; color: #d5f2e6; }
.notice-err { background: #4a2320; color: #f6d9d5; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; font-size: 14px; color: var(--text-3); }
.site-footer .wrap > div { display: flex; align-items: center; gap: 12px; }
.site-footer img { width: 28px; height: 30px; object-fit: contain; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.site-footer nav a { color: var(--text-2); }

/* Rechtstexte */
.legal { max-width: 820px; padding-top: 56px; padding-bottom: 96px; }
.legal h1 { font-size: 48px; margin-bottom: 32px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal h3 { font-size: 20px; margin: 28px 0 10px; }
.legal h4 { font-family: var(--sans); font-size: 16px; font-weight: 600; margin: 20px 0 6px; letter-spacing: 0; }
.legal p, .legal li { color: var(--text-2); overflow-wrap: anywhere; }
.platzhalter { background: #3a2f22; color: #f3d9a4; padding: 2px 6px; border-radius: 4px; }

/* Mobil */
@media (max-width: 720px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .brand span { font-size: 18px; }
  .main-nav { gap: 6px 18px; font-size: 14px; }
  .door { height: 480px; }
  .door-apps { padding: 26px; }
  .mini-app:nth-child(2) { margin-right: 0; }
  .door h2, .section-title, .kontakt-box h2 { font-size: 34px; }
  .split img { height: 300px; }
  .gallery img, .gallery .g-wide img, .gallery .g-mid img { height: 320px; }
  .kontakt-box { padding: 28px; }
  .werkstatt, .apps { padding: 72px 0; }
  .holz, .kontakt { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .door-holz > img { transition: none; }
}

/* ===== holz.fuerstenwerk.de: Galerie, Filter, Großansicht ===== */
.holz-hero { padding-top: 48px; padding-bottom: 72px; }
.holz-hero .split img { height: 460px; }
.holz-hero h1 { font-size: clamp(40px, 5.6vw, 72px); line-height: 1.05; }
.holz-hero p.lead { margin: 22px 0 28px; font-size: 19px; }
.holz-hero .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.filter button { font: inherit; font-size: 15px; font-weight: 500; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; }
.filter button:hover { color: var(--text); border-color: var(--text-2); }
.filter button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.masonry { columns: 3 300px; column-gap: 20px; }
.masonry figure { break-inside: avoid; margin: 0 0 20px; }
.masonry figure[hidden] { display: none; }
.masonry button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 16px; overflow: hidden; }
.masonry img { width: 100%; height: auto; border-radius: 16px; transition: transform .4s ease, opacity .2s; }
.masonry button:hover img { transform: scale(1.03); }
.masonry figcaption { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.masonry figcaption strong { color: var(--text); font-weight: 600; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: var(--text); }
.lightbox::backdrop { background: rgba(8,6,5,0.92); }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 12px; margin: 0 auto; }
.lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.lightbox .lb-cap { font-size: 15px; color: var(--text-2); }
.lightbox .lb-cap strong { color: var(--text); }
.lightbox .lb-nav { display: flex; gap: 8px; }
.lightbox .lb-nav button { width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-nav button:hover { border-color: var(--text-2); }
.lightbox .lb-nav svg { width: 20px; height: 20px; }
.hinweis { font-size: 14px; color: var(--text-3); margin: 0; }
@media (max-width: 720px) {
  .holz-hero .split img { height: 300px; }
  .masonry { columns: 2 150px; column-gap: 12px; }
  .masonry figure { margin-bottom: 14px; }
  .masonry figcaption { font-size: 13px; }
}
