/* ============================================================
   FOCUSSTONE — Luxus-Immobilien Griechenland · MVP/Mockup
   Design-Sprache: klassisch-editorial, an große Luxusmakler
   angelehnt (viel Weißraum, Serifen-Display, schmaler Navy-Ton,
   Bronze-Akzent) – aber eigenständige Marke "Focusstone".
   ============================================================ */

:root {
  --ink: #14232e;          /* tiefes Petrol-Navy */
  --ink-soft: #2b3d4a;
  --paper: #f7f5f0;        /* warmes Off-White */
  --paper-2: #efeadf;
  --white: #ffffff;
  --accent: #a08450;       /* Bronze/Champagner */
  --accent-soft: #c8b48a;
  --line: rgba(20, 35, 46, .14);
  --muted: rgba(20, 35, 46, .62);
  --ok: #2f7d5b;
  --bad: #b0473d;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --radius: 2px;
  --shadow: 0 18px 50px -18px rgba(20, 35, 46, .28);
  --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--accent); color: #fff; }

/* ---------- Typografie ---------- */
h1, h2, h3, .display { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: .01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
.eyebrow {
  font-size: .72rem; letter-spacing: .32em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 1rem;
}
.lead { font-size: 1.08rem; color: var(--muted); max-width: 56ch; }

/* ---------- Layout-Helfer ---------- */
.wrap { width: min(1240px, 92vw); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight { padding: clamp(2.2rem, 5vw, 3.5rem) 0; }
.section--alt { background: var(--white); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: 2.6rem; flex-wrap: wrap; }
.grid { display: grid; gap: 1.6rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  display: flex; align-items: center;
  background: linear-gradient(rgba(15, 25, 33, .55), rgba(15, 25, 33, 0));
  color: #fff; transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header.is-solid {
  background: var(--paper); color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
/* ---------- Marken-Logo (Focusstone) ---------- */
.brand { display: flex; align-items: center; gap: .7rem; line-height: 1; }
.brand .brand__icon { width: 34px; height: 34px; flex-shrink: 0; transition: filter .3s ease; }
.brand .brand__word { height: 26px; width: auto; transition: filter .3s ease; }
/* Transparenter Header über dunklem Hero: Logo in Weiß */
.site-header:not(.is-solid) .brand .brand__icon,
.site-header:not(.is-solid) .brand .brand__word { filter: brightness(0) invert(1); }
@media (max-width: 640px) { .brand .brand__word { display: none; } .brand .brand__icon { width: 38px; height: 38px; } }
.main-nav { display: flex; gap: 2rem; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; }
.main-nav a { position: relative; padding: .4rem 0; opacity: .85; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s ease;
}
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.main-nav a.is-active { opacity: 1; }
.header-right { display: flex; align-items: center; gap: 1.2rem; }
.lang-switch { display: flex; gap: .15rem; font-size: .72rem; letter-spacing: .08em; }
.lang-switch button {
  background: none; border: 0; color: inherit; padding: .3rem .5rem; opacity: .55; font-weight: 600;
}
.lang-switch button.is-active { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.burger { display: none; background: none; border: 0; color: inherit; width: 42px; height: 42px; }
.burger svg { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .burger { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); color: var(--ink); padding: 1rem 4vw 1.6rem;
    border-bottom: 1px solid var(--line);
    /* Panel komplett über die eigene Höhe + Headerhöhe aus dem sichtbaren Bereich schieben,
       damit keine Kante (weißer/paper-farbener Balken) über dem Header hängen bleibt */
    transform: translateY(calc(-100% - var(--header-h) - 2px));
    visibility: hidden; pointer-events: none;
    transition: transform .4s ease, visibility 0s linear .4s;
  }
  .main-nav.is-open {
    transform: translateY(0); visibility: visible; pointer-events: auto;
    transition: transform .4s ease, visibility 0s linear 0s;
  }
  .main-nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: .95rem 2rem; border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  background: var(--ink); color: var(--paper); transition: all .3s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn--accent { background: var(--accent); border-color: var(--accent); }
.btn--accent:hover { background: transparent; color: var(--accent); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--paper); }
.link-more { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; border-bottom: 1px solid var(--accent); padding-bottom: .25rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: #fff; padding: calc(var(--header-h) + 3rem) 0 5rem; isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: var(--hero-img, linear-gradient(160deg, #22394a, #14232e)) center/cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,25,33,.35) 0%, rgba(15,25,33,.15) 40%, rgba(15,25,33,.72) 100%);
}
.hero h1 { max-width: 14ch; }
.hero .lead { color: rgba(255,255,255,.85); margin: 1.4rem 0 2.6rem; }
.hero-scroll { position: absolute; right: 4vw; bottom: 2rem; font-size: .65rem; letter-spacing: .3em; text-transform: uppercase; writing-mode: vertical-rl; opacity: .7; }

/* Hero-Suchleiste */
.search-bar {
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 1px;
  background: rgba(255,255,255,.25); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.35); max-width: 980px;
}
.search-bar .field { background: rgba(15,25,33,.55); padding: 1rem 1.2rem; }
.search-bar label { display: block; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-bottom: .3rem; }
.search-bar select, .search-bar input {
  width: 100%; background: none; border: 0; color: #fff; font-family: var(--serif); font-size: 1.15rem; outline: none;
}
.search-bar select option { color: var(--ink); }
.search-bar .btn { border: 0; border-radius: 0; height: 100%; }
@media (max-width: 900px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .btn { grid-column: 1 / -1; justify-content: center; padding: 1.1rem; }
}

/* ---------- Stats-Band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stat { background: var(--paper); padding: 2.2rem 1.5rem; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; }
.stat span { font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Immobilien-Karte (Listing) ---------- */
.prop-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .4s ease, box-shadow .4s ease;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.prop-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.prop-card:hover .prop-card__media img { transform: scale(1.06); }
.prop-card__tag {
  position: absolute; top: 1rem; left: 1rem; background: rgba(15,25,33,.8); color: #fff;
  font-size: .6rem; letter-spacing: .24em; text-transform: uppercase; padding: .45rem .8rem; backdrop-filter: blur(4px);
}
.prop-card__fav {
  position: absolute; top: .8rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center; transition: transform .2s ease;
}
.prop-card__fav:hover { transform: scale(1.12); }
.prop-card__fav.is-fav { background: var(--accent); color: #fff; }
.prop-card__body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.prop-card__loc { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.prop-card__title { font-size: 1.35rem; }
.prop-card__specs { display: flex; gap: 1.2rem; font-size: .8rem; color: var(--muted); margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.prop-card__price { font-family: var(--serif); font-size: 1.4rem; margin-top: .4rem; }

/* ---------- View-Toggle (Liste / Entdecken / Karte) ---------- */
.view-toggle {
  display: inline-flex; border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden;
}
.view-toggle button {
  background: none; border: 0; padding: .75rem 1.4rem; font-size: .72rem;
  letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: .5rem;
}
.view-toggle button + button { border-left: 1px solid var(--ink); }
.view-toggle button.is-active { background: var(--ink); color: var(--paper); }

/* ---------- Filter-Leiste ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-end;
  padding: 1.6rem 0; border-block: 1px solid var(--line); margin-bottom: 2.4rem;
}
.filter-bar .f { display: flex; flex-direction: column; gap: .4rem; min-width: 150px; }
.filter-bar label { font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.filter-bar select, .filter-bar input[type="text"] {
  border: 0; border-bottom: 1px solid var(--ink); background: none; padding: .4rem 0;
  font-family: var(--serif); font-size: 1.05rem; color: var(--ink); outline: none; border-radius: 0;
}
.filter-bar input[type="range"] { accent-color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 100px;
  padding: .45rem 1rem; font-size: .75rem; letter-spacing: .04em; transition: all .25s ease;
}
.chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.results-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.6rem; color: var(--muted); font-size: .85rem; gap: 1rem; flex-wrap: wrap; }

/* ---------- Swipe / Entdecken ---------- */
.swipe-stage { position: relative; max-width: 520px; margin-inline: auto; }
.swipe-hint { text-align: center; color: var(--muted); font-size: .82rem; margin-bottom: 1.4rem; }
.swipe-deck { position: relative; height: 620px; }
.swipe-card {
  position: absolute; inset: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 6px; overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; touch-action: none; user-select: none;
  transition: transform .45s cubic-bezier(.2,.8,.3,1), opacity .45s ease;
  cursor: grab;
}
.swipe-card.is-dragging { transition: none; cursor: grabbing; }
/* Karte fliegt nach einer Entscheidung aus dem Stack */
.swipe-card.is-exiting { pointer-events: none; }
/* Kandidatenwechsel durch den Lern-Algorithmus: alte Karte blendet aus, neue ein */
.swipe-card.is-fading-out { opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.swipe-card.is-entering { opacity: 0; transform: translateY(28px) scale(.92) !important; transition: none; }
.swipe-card[data-pos]:not(.is-dragging):not(.is-exiting):not(.is-fading-out):not(.is-entering) { will-change: transform; }
.swipe-card__img { position: relative; flex: 1; min-height: 0; }
.swipe-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swipe-card__stamp {
  position: absolute; top: 1.4rem; font-family: var(--serif); font-size: 1.6rem; letter-spacing: .2em;
  text-transform: uppercase; padding: .4rem 1rem; border: 2px solid currentColor; border-radius: 4px;
  opacity: 0; transform: rotate(-10deg) scale(1.2); transition: opacity .15s ease; z-index: 3;
}
.swipe-card__stamp--like { left: 1.4rem; color: var(--ok); }
.swipe-card__stamp--nope { right: 1.4rem; color: var(--bad); transform: rotate(10deg) scale(1.2); }
.swipe-card__body { padding: 1.3rem 1.5rem 1.5rem; background: var(--white); }
.swipe-card__body h3 { font-size: 1.5rem; }
.swipe-card__meta { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.swipe-card__price { font-family: var(--serif); font-size: 1.35rem; color: var(--accent); }
.swipe-card__specs { display: flex; gap: 1.1rem; font-size: .8rem; color: var(--muted); margin-top: .5rem; }
.swipe-card__why { margin-top: .7rem; font-size: .76rem; color: var(--accent); letter-spacing: .03em; }
.swipe-actions { display: flex; justify-content: center; gap: 1.4rem; margin-top: 1.6rem; }
.swipe-actions button {
  width: 68px; height: 68px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--white); display: grid; place-items: center; transition: all .25s ease;
  box-shadow: 0 8px 24px -10px rgba(20,35,46,.25);
}
.swipe-actions button:hover { transform: translateY(-4px) scale(1.05); }
.swipe-actions .act-nope { color: var(--bad); } .swipe-actions .act-nope:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.swipe-actions .act-like { color: var(--ok); width: 80px; height: 80px; } .swipe-actions .act-like:hover { background: var(--ok); color: #fff; border-color: var(--ok); }
.swipe-actions .act-info { color: var(--ink); } .swipe-actions .act-info:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.swipe-actions svg { width: 26px; height: 26px; }

/* Lern-Profil */
.learn-panel {
  max-width: 520px; margin: 2.2rem auto 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.6rem;
}
.learn-panel h4 { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; display: flex; align-items: center; gap: .6rem; }
.learn-panel h4 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(160,132,80,.5);} 60% { box-shadow: 0 0 0 9px rgba(160,132,80,0);} }
.learn-bars { display: grid; gap: .55rem; margin-top: 1rem; }
.learn-bar { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: .8rem; font-size: .76rem; }
.learn-bar .track { height: 5px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.learn-bar .fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width .6s ease; }
.learn-bar .val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.learn-empty { color: var(--muted); font-size: .82rem; margin-top: .8rem; }
.swipe-done { text-align: center; padding: 4rem 1rem; }
.merken-list { max-width: 720px; margin: 3rem auto 0; }
.merken-item {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 1.2rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); padding: .8rem; margin-bottom: .8rem;
}
.merken-item img { width: 110px; height: 74px; object-fit: cover; }
.merken-item h5 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.merken-item small { color: var(--muted); }
.merken-item .btn { padding: .6rem 1.1rem; font-size: .65rem; }

/* ---------- Kartenansicht ---------- */
.map-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.6rem; height: calc(100vh - var(--header-h) - 140px); min-height: 560px; }
.map-list { overflow-y: auto; display: flex; flex-direction: column; gap: 1rem; padding-right: .4rem; }
.map-list .prop-card { flex-direction: row; }
.map-list .prop-card__media { width: 190px; aspect-ratio: auto; flex-shrink: 0; }
.map-list .prop-card__body { padding: 1rem 1.2rem; }
.map-list .prop-card__title { font-size: 1.1rem; }
#map { border-radius: var(--radius); border: 1px solid var(--line); z-index: 1; }
.map-popup { font-family: var(--sans); min-width: 220px; }
.map-popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 2px; margin-bottom: .5rem; }
.map-popup b { font-family: var(--serif); font-size: 1.05rem; }
.map-popup .mp-price { color: var(--accent); font-weight: 600; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; height: auto; } #map { height: 60vh; } }

/* ---------- Detailseite ---------- */
.detail-hero { position: relative; height: 72vh; min-height: 480px; overflow: hidden; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,25,33,.25), rgba(15,25,33,.05) 45%, rgba(15,25,33,.65)); }
.detail-hero__cap { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; padding-bottom: 2.6rem; z-index: 2; }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; gap: .6rem; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: filter .3s ease; }
.gallery-grid img:hover { filter: brightness(1.08); }
.gallery-grid img:first-child { grid-row: span 2; }
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } }
.detail-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; }
.spec-table th, .spec-table td { text-align: left; padding: .8rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.spec-table th { font-weight: 500; color: var(--muted); width: 45%; }
.feature-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.feature-tags span { border: 1px solid var(--line); padding: .4rem .9rem; font-size: .78rem; border-radius: 100px; background: var(--white); }
.sidebar-card { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--white); border: 1px solid var(--line); padding: 2rem; }
.sidebar-card .price { font-family: var(--serif); font-size: 2.2rem; }
.sidebar-card .ref { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.agent-mini { display: flex; gap: 1rem; align-items: center; margin: 1.6rem 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.agent-mini img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; }
.tour-embed { position: relative; aspect-ratio: 16/9; background: var(--ink); border-radius: var(--radius); overflow: hidden; }
.tour-embed iframe, .tour-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour-placeholder {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.8);
  background: repeating-linear-gradient(45deg, #1b2f3e, #1b2f3e 14px, #203543 14px, #203543 28px);
  text-align: center; padding: 2rem;
}
.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.6rem; flex-wrap: wrap; }
.tabs button {
  background: none; border: 0; padding: .9rem 1.2rem; font-size: .75rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Modal / Formulare ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200; background: rgba(15,25,33,.6); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 1.2rem; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--paper); max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto;
  padding: 2.6rem; position: relative; transform: translateY(24px); transition: transform .35s ease;
}
.modal-backdrop.is-open .modal { transform: translateY(0); }
.modal__close { position: absolute; top: 1rem; right: 1rem; background: none; border: 0; width: 40px; height: 40px; font-size: 1.3rem; color: var(--muted); }
.form-grid { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.form-grid label { font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: block; margin-bottom: .35rem; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; border: 1px solid var(--line); background: var(--white); padding: .85rem 1rem;
  font-family: inherit; font-size: .95rem; color: var(--ink); border-radius: var(--radius); outline: none;
}
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--accent); }
.form-note { font-size: .74rem; color: var(--muted); }
.form-success { text-align: center; padding: 2rem 0; }
.form-success .tick {
  width: 64px; height: 64px; margin: 0 auto 1.2rem; border-radius: 50%; border: 2px solid var(--ok);
  color: var(--ok); display: grid; place-items: center; font-size: 1.6rem;
}
.recaptcha-mock { border: 1px dashed var(--line); padding: .8rem 1rem; font-size: .74rem; color: var(--muted); display: flex; align-items: center; gap: .7rem; background: var(--white); }
.recaptcha-mock input { width: auto; }

/* ---------- Journal ---------- */
.journal-card { display: flex; flex-direction: column; gap: .8rem; }
.journal-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.journal-card time { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.journal-card h3 a:hover { color: var(--accent); }

/* ---------- Team ---------- */
.team-card { text-align: left; }
.team-card img { aspect-ratio: 4/5; object-fit: cover; width: 100%; filter: grayscale(35%); transition: filter .4s ease; }
.team-card:hover img { filter: grayscale(0%); }
.team-card h3 { margin-top: 1rem; }
.team-card .role { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.team-card p { font-size: .88rem; color: var(--muted); margin-top: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.82); padding: 4.5rem 0 2rem; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.14); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h5 { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 1.1rem; }
.site-footer a { display: block; padding: .28rem 0; font-size: .9rem; opacity: .8; }
.site-footer a:hover { opacity: 1; color: #fff; }
.site-footer .legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .76rem; opacity: .6; }
.footer-brand .footer-logo { width: 150px; height: auto; display: block; }
/* Footer ist dunkel: Logo in Weiß zeichnen */
.footer-brand .footer-logo path { fill: #fff !important; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; }
.cta-band .eyebrow { color: var(--accent-soft); }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .btn { margin-top: 2.2rem; }

/* ---------- Reveal-Animationen ---------- */
/* Reveal nur verstecken, wenn JS aktiv ist (html.js wird sofort von main.js gesetzt).
   Ohne JS / bei JS-Fehlern bleibt der gesamte Inhalt sichtbar. */
html.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(10,17,23,.92); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; top: 1.4rem; right: 1.6rem; background: none; border: 0; color: #fff; font-size: 2rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translate(-50%, 140%); z-index: 400;
  background: var(--ink); color: var(--paper); padding: .9rem 1.6rem; font-size: .85rem;
  border-radius: 100px; transition: transform .4s cubic-bezier(.2,.9,.3,1.2); box-shadow: var(--shadow);
}
.toast.is-show { transform: translate(-50%, 0); }

/* Page-Hero (Unterseiten) */
.page-hero { padding: calc(var(--header-h) + 5rem) 0 4rem; background: var(--white); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
