/* lemens.de – Stil „Clean fluid“ (Superdesign). Schriften lokal (SIL OFL 1.1, fonts/OFL-*.txt). */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400 900; font-display: swap; src: url("fonts/playfair-display-latin-wght-italic.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("fonts/inter-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }

:root {
  /* Farben aus den Tools: Neutraltöne = gemeinsame Tokens von VFRplan und Gegenanflug (--zinc-50, --ink, --text,
     --muted, --rule), Akzent = VFRplan --brand, Dunkelfläche = AlpiCheck --navy, Kartentöne je Tool. */
  --creme: #fafafa;          /* VFRplan/Gegenanflug --zinc-50 */
  --kohle: #0a0a0a;          /* --ink */
  --nacht: #1b2838;          /* AlpiCheck --navy */
  --indigo: #0b5fa5;         /* VFRplan --brand (Name bleibt, Wert ist Blau) */
  --linie: #e4e4e7;          /* --rule */
  --text-2: #3f3f46;         /* --text */
  --text-3: #62626c;         /* --muted */
  --ga: #27479f;             /* Gegenanflug --brand */
  --orange: #f5a623;         /* AlpiCheck --orange */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rand: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--creme); color: var(--kohle); font: 400 1rem/1.5 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--kohle); color: #fff; padding: 12px 16px; }
.skip:focus { left: 16px; top: 16px; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------------------------------------------------------------- Kopfzeile */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--rand); color: var(--kohle);
  background: rgba(250, 250, 250, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(228, 228, 231, 0.7);
}
.kopf a { text-decoration: none; }
.logo { font-family: var(--serif); font-style: italic; font-size: 20px; white-space: nowrap; }
.kopf nav { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); }
.kopf .mono { font-size: 11px; }
.unterstrich { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; padding-bottom: 4px; transition: background-size 0.5s var(--ease); }
.unterstrich:hover, .unterstrich:focus-visible { background-size: 100% 1px; }
.pille-kopf { border: 1px solid currentColor; border-radius: 999px; padding: 8px 16px; font: 500 13px/1 var(--sans); white-space: nowrap; }

/* ---------------------------------------------------------------- Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px var(--rand) 28vh; text-align: center; isolation: isolate;
}
.netz { position: absolute; inset: -20%; z-index: -1; pointer-events: none; filter: blur(80px); animation: treiben 30s linear infinite; }
.netz span { position: absolute; border-radius: 50%; }
.netz span:nth-child(1) { width: 55vw; height: 55vw; left: 8%; top: 12%; background: rgba(11, 95, 165, 0.16); }
.netz span:nth-child(2) { width: 45vw; height: 45vw; right: 6%; top: 4%; background: rgba(27, 40, 56, 0.12); }
.netz span:nth-child(3) { width: 40vw; height: 40vw; left: 32%; top: 38%; background: rgba(245, 166, 35, 0.12); }
@keyframes treiben {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  100% { transform: rotate(360deg) scale(1); }
}
.hero .mono { color: var(--indigo); margin: 0 0 28px; }
.hero h1 { margin: 0; font: 400 clamp(64px, 12vw, 200px)/0.85 var(--serif); letter-spacing: -0.02em; }
.hero h1 em { display: block; font-style: italic; }
.unterzeile { max-width: 34rem; margin: 32px auto 0; font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); }

.welle { position: absolute; left: 0; right: 0; bottom: 0; height: 25vh; overflow: hidden; pointer-events: none; }
.welle::before { content: ""; position: absolute; left: -10%; width: 120%; height: 200%; top: 20%; background: var(--creme); border-radius: 50% 50% 0 0; }
.welle-knopf { position: absolute; left: 50%; bottom: 14vh; transform: translateX(-50%); pointer-events: auto; z-index: 1; }
.pille {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 14px 26px; white-space: nowrap;
  background: var(--indigo); color: #fff; text-decoration: none; font: 500 15px/1 var(--sans);
  box-shadow: 0 0 20px rgba(11, 95, 165, 0.25); animation: puls 3s var(--ease) infinite;
}
@keyframes puls { 50% { transform: scale(1.02); box-shadow: 0 0 28px rgba(11, 95, 165, 0.35); } }

/* Auftauchen beim Laden (ohne JS) */
.auf { animation: auf 1s var(--ease) both; }
.auf-2 { animation-delay: 0.12s; }
.auf-3 { animation-delay: 0.24s; }
.auf-4 { animation-delay: 0.36s; }
@keyframes auf { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- Abschnitte */
.abschnitt { max-width: 1240px; margin: 0 auto; padding: clamp(64px, 10vw, 128px) var(--rand); }
.kennung { color: var(--text-3); margin: 0 0 16px; }
.abschnitt h2 { margin: 0 0 clamp(40px, 6vw, 72px); font: 400 clamp(36px, 5vw, 64px)/1.05 var(--serif); letter-spacing: -0.01em; }

/* Projektkarten: zweispaltig, rechte Spalte versetzt */
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px) clamp(24px, 4vw, 56px); list-style: none; margin: 0; padding: 0; }
.raster > li:nth-child(even) { margin-top: clamp(48px, 8vw, 128px); }
.karte { position: relative; }
.flaeche {
  position: relative; aspect-ratio: 4 / 3; border-radius: 1rem; overflow: hidden;
  background: var(--ton, #f4f4f5); transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
}
.flaeche::before {
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 10%; border-radius: 50%;
  background: var(--kugel, #d4d4d8); filter: blur(60px); opacity: 0.35; transition: transform 0.9s var(--ease);
}
.flaeche picture, .flaeche > img { position: absolute; }
.bild-quer { left: 9%; top: 14%; width: 100%; }
.bild-quer img { width: 100%; border-radius: 10px; box-shadow: 0 24px 60px -24px rgba(23, 23, 23, 0.35); border: 1px solid rgba(23, 23, 23, 0.06); }
.bild-hoch { left: 50%; top: 12%; width: 42%; transform: translateX(-50%); }
.bild-hoch img { width: 100%; border-radius: 22px 22px 0 0; box-shadow: 0 24px 60px -24px rgba(23, 23, 23, 0.4); border: 1px solid rgba(23, 23, 23, 0.08); }
.ansehen {
  position: absolute; right: 16px; bottom: 16px; z-index: 2; background: #fff; color: var(--kohle);
  border-radius: 999px; padding: 10px 16px; font: 700 11px/1 var(--mono); letter-spacing: 0.2em; text-transform: uppercase;
  opacity: 0; transform: translateY(1rem); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.karte-link:hover .flaeche, .karte-link:focus-within .flaeche { transform: translateY(-16px) scale(1.02); box-shadow: 0 30px 60px -20px rgba(10, 30, 60, 0.18); }
.karte-link:hover .flaeche::before { transform: scale(1.1); }
.karte-link:hover .ansehen, .karte-link:focus-within .ansehen { opacity: 1; transform: none; }

.karte h3 { margin: 24px 0 8px; font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--serif); }
.karte h3 a { text-decoration: none; }
/* Ganze Karte klickbar über den Titel-Link; Zusatzlinks liegen darüber */
.karte-link h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 1rem; }
.karte p { margin: 0 0 16px; color: var(--text-2); }
.meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--linie); color: var(--text-3); font-size: 11px; }
.meta a { position: relative; z-index: 2; color: var(--kohle); text-underline-offset: 4px; }

/* Homemesh: Teaser, angedeutet */
.karte-bald .flaeche { background: #f4f4f5; border: 1px dashed #a1a1aa; }
.karte-bald .flaeche::before { background: #d4d4d8; opacity: 0.6; }
.karte-bald .bild-quer img { opacity: 0.6; }   /* Unschärfe ist in die Bilddatei eingerechnet */
.marke { display: inline-block; padding: 6px 10px; border-radius: 999px; background: var(--kohle); color: #fff; font-size: 11px; letter-spacing: 0.25em; }
.karte-bald .marke { position: absolute; left: 16px; top: 16px; z-index: 2; }

/* Nebenbei: zweispaltig, links klebender Titel */
.nebenbei { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); border-top: 1px solid var(--linie); }
.nebenbei-kopf { position: sticky; top: 112px; align-self: start; }
.nebenbei-kopf h2 { margin-bottom: 16px; }
.nebenbei-kopf p { margin: 0; color: var(--text-2); max-width: 26rem; }
.liste { list-style: none; margin: 0; padding: 0; }
.liste li { padding: 28px 0; border-bottom: 1px solid var(--linie); }
.liste li:first-child { padding-top: 0; }
.liste h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 8px; font: 400 clamp(28px, 3.4vw, 44px)/1.1 var(--serif); color: #8a8a8a; transition: color 0.5s var(--ease); }
.liste li:hover h3 { color: var(--kohle); }
.liste h3 .mono { font-size: 11px; color: var(--text-3); letter-spacing: 0.2em; }
.liste p { margin: 0; color: var(--text-2); }

/* ---------------------------------------------------------------- Fußzeile */
.fuss {
  position: relative; overflow: hidden; margin-top: clamp(32px, 6vw, 64px);
  background: var(--nacht); color: #fff; border-radius: 5rem 5rem 0 0;
  padding: clamp(72px, 10vw, 128px) var(--rand) 40px;
}
.fuss::before { content: ""; position: absolute; left: 50%; top: -40%; width: 80%; aspect-ratio: 1; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(11, 95, 165, 0.45), transparent); pointer-events: none; }
.fuss-innen { position: relative; max-width: 1240px; margin: 0 auto; }
.fuss blockquote { margin: 0 0 clamp(56px, 8vw, 96px); font: 400 clamp(34px, 5vw, 68px)/1.08 var(--serif); max-width: 18ch; }
.fuss blockquote em { font-style: italic; }
.spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.spalten h2 { margin: 0 0 16px; color: #a1a1aa; font-weight: 400; }
.spalten ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.spalten a { text-decoration: none; font-family: var(--serif); font-size: 20px; }
.spalten a:hover, .spalten a:focus-visible { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.spalten p { margin: 0; color: #d4d4d8; }
.fuss-leiste { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: clamp(56px, 8vw, 96px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #a1a1aa; font-size: 11px; }

/* ---------------------------------------------------------------- Rechtstexte und 404 */
.text-seite { max-width: 720px; margin: 0 auto; padding: 128px var(--rand) 96px; }
.text-seite h1 { margin: 0 0 12px; font: 400 clamp(40px, 6vw, 64px)/1.05 var(--serif); }
.text-seite h2 { margin: 48px 0 12px; font: 400 26px/1.2 var(--serif); }
.text-seite p, .text-seite li { color: var(--text-2); }
.text-seite a { color: var(--indigo); text-underline-offset: 3px; }
.text-seite .stand { color: var(--text-3); margin-bottom: 40px; }
.leer { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }

/* ---------------------------------------------------------------- Schmal */
@media (max-width: 760px) {
  .kopf { height: 64px; }
  .kopf .nav-text { display: none; }
  .logo { font-size: 18px; }
  .raster { grid-template-columns: 1fr; }
  .raster > li:nth-child(even) { margin-top: 0; }
  .nebenbei { grid-template-columns: 1fr; }
  .nebenbei-kopf { position: static; }
  .spalten { grid-template-columns: 1fr; }
  .fuss { border-radius: 3rem 3rem 0 0; }
  .ansehen { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ton-alpi { --ton: #fdf3e3; --kugel: #f5a623; }   /* AlpiCheck --orange, aufgehellt */
.ton-gegen { --ton: #e9edf6; --kugel: #27479f; }  /* Gegenanflug --brand */
.ton-vfr { --ton: #e7eff7; --kugel: #0b5fa5; }    /* VFRplan --brand */
