/* Valmora Holding, Website-Stil (Fassung 2: Weiß, Falke immer blau).
   Farben und Schriften laut ~/valmora-holding/marke/MARKENREGELN.md.
   Handy zuerst: Grundregeln ab 320 px, größere Bildschirme per min-width. */

@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blau: #15365a;
  --nacht: #0b2038;
  --netz: #2f6fb0;
  --weiss: #ffffff;
  --nebel: #f4f6f9;
  --linie: #e2e7ed;
  --tinte: #1b1f24;
  --schiefer: #4b5560;
  --grau: #8e98a2;
  --titel: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rand: clamp(20px, 5.5vw, 72px);
  --breite: 1180px;
  --abschnitt: clamp(80px, 12vw, 160px);
  --kante: max(var(--rand), calc((100% - var(--breite)) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font: 400 1.0625rem/1.7 var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--netz); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--blau); color: #fff; }

.sprungmarke {
  position: absolute; left: -9999px; top: 12px; z-index: 20;
  background: var(--blau); color: #fff; padding: 10px 16px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.sprungmarke:focus { left: 12px; }

h1, h2, h3 { font-family: var(--titel); font-weight: 300; margin: 0; letter-spacing: -0.01em; }

/* Kopf */
.kopf {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--kante);
  color: var(--blau);
}
.kopf--linie { position: relative; border-bottom: 1px solid var(--linie); background: var(--weiss); }
.kopf-logo { display: block; flex: 0 1 auto; min-width: 0; }
.kopf-logo img { width: clamp(136px, 38vw, 196px); }
.sprache { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; font: 600 0.75rem/1 var(--text); letter-spacing: 0.18em; }
.sprache a { display: inline-block; padding: 14px 6px; text-decoration: none; opacity: 0.55; transition: opacity 0.2s ease; }
.sprache a:hover, .sprache a[aria-current="true"] { opacity: 1; }
.sprache a[aria-current="true"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.sprache span { opacity: 0.35; }

.kicker {
  margin: 0 0 24px;
  font: 600 0.72rem/1.5 var(--text); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--schiefer);
}

/* Held mit Weltkugel */
.held {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 112px var(--kante) 40px;
  display: grid; gap: 8px; align-items: center;
}
.held::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 140vw; height: 140vw; max-width: 1400px; max-height: 1400px;
  right: -55vw; top: 26%;
  background: radial-gradient(closest-side, rgba(47, 111, 176, 0.09), rgba(47, 111, 176, 0) 70%);
}
.held h1 {
  font-size: clamp(2.5rem, 10.5vw, 5.4rem); line-height: 1.04; color: var(--tinte);
  max-width: 12ch;
}
.held h1 .zeile { display: block; }
.held h1 .zeile + .zeile { color: var(--blau); font-weight: 400; }
.held-text { max-width: 34rem; margin: 26px 0 0; font-size: clamp(1.02rem, 2.7vw, 1.16rem); line-height: 1.7; color: var(--schiefer); }
.globus { position: relative; width: min(100%, 560px); aspect-ratio: 1; margin: 6px auto 0; }
.globus canvas { width: 100%; height: 100%; }
.held-fuss { grid-column: 1 / -1; margin-top: 18px; }
.held-fuss .strich { display: block; height: 1px; background: var(--linie); position: relative; overflow: hidden; }
.held-fuss .strich::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -22%; width: 22%;
  background: linear-gradient(90deg, rgba(47, 111, 176, 0), var(--netz), rgba(47, 111, 176, 0));
  animation: strich 5.5s cubic-bezier(0.45, 0, 0.25, 1) 1.2s infinite;
}
@keyframes strich { 0% { left: -22%; } 70%, 100% { left: 100%; } }

.held h1 .zeile:nth-child(1) { animation: auftauchen 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
.held h1 .zeile:nth-child(2) { animation: auftauchen 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.45s both; }
.held-text { animation: auftauchen 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.65s both; }
.globus { animation: einblenden 1.6s ease 0.3s both; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes einblenden { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }

/* Aufdecken beim Scrollen (nur mit JavaScript, sonst sofort sichtbar) */
.js .aufdecken { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .aufdecken.sichtbar { opacity: 1; transform: none; }

/* Manifest auf dem Stadtbild */
.manifest { position: relative; isolation: isolate; overflow: hidden; color: #fff; padding: clamp(96px, 16vw, 200px) var(--kante); background: var(--nacht); }
.manifest-bild { position: absolute; inset: 0; z-index: -2; }
.manifest-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform: scale(1.06); transition: transform 2.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.manifest.sichtbar .manifest-bild img, html:not(.js) .manifest-bild img { transform: none; }
.manifest::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(6, 21, 38, 0.74);
}
.manifest .kicker { color: rgba(255, 255, 255, 0.72); }
.manifest-text {
  margin: 0; max-width: 24ch;
  font-family: var(--titel); font-weight: 300;
  font-size: clamp(1.75rem, 6.2vw, 3.5rem); line-height: 1.22; letter-spacing: -0.005em;
}
.manifest-text.woerter .wort { opacity: 0.25; transition: opacity 0.35s ease; }
.manifest-text.woerter .wort.an { opacity: 1; }
.manifest-schluss { margin: 40px 0 0; font: 500 0.95rem/1.5 var(--text); letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.85); display: flex; align-items: center; gap: 14px; }
.manifest-schluss::before { content: ""; width: 40px; height: 1px; background: rgba(255, 255, 255, 0.6); }

/* Abschnitte */
.abschnitt { padding: var(--abschnitt) var(--kante); }
.marke {
  display: flex; align-items: center; gap: 14px; margin: 0 0 28px;
  font: 600 0.72rem/1.4 var(--text); letter-spacing: 0.22em; text-transform: uppercase; color: var(--schiefer);
}
.marke::before { content: ""; width: 28px; height: 1px; background: var(--blau); }
h2 { font-size: clamp(2.1rem, 7.2vw, 3.8rem); line-height: 1.08; color: var(--tinte); max-width: 16ch; }
h2 + .fliess { margin-top: 26px; }
.fliess p { margin: 0 0 1.1em; max-width: 38rem; color: var(--schiefer); }
.fliess p:last-child { margin-bottom: 0; }
.fliess .gross { font-size: clamp(1.12rem, 2.6vw, 1.3rem); line-height: 1.6; color: var(--tinte); }
.fliess .hinweis { margin: 40px 0 0; padding: 2px 0 2px 20px; max-width: 36rem; border-left: 2px solid var(--blau); font-size: 0.95rem; line-height: 1.65; color: var(--schiefer); }
.fliess .hinweis strong { color: var(--tinte); font-weight: 600; }
.profil-raster { display: grid; gap: 48px; }
.turm { position: relative; margin: 0; overflow: hidden; border-radius: 4px; aspect-ratio: 3 / 4; background: var(--nacht); }
.turm img { width: 100%; height: 100%; object-fit: cover; }
.turm figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 18px;
  font: 600 0.66rem/1.5 var(--text); letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85);
}

.grundsaetze { background: var(--nebel); }
.saetze { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 0; }
.saetze li { padding: 30px 0 34px; border-top: 1px solid var(--linie); display: grid; grid-template-columns: 3.4rem 1fr; gap: 6px 14px; }
.saetze li:last-child { border-bottom: 1px solid var(--linie); }
.saetze .nr { grid-row: span 2; font: 300 1.9rem/1 var(--titel); color: var(--blau); }
.saetze h3 { font-size: clamp(1.5rem, 4.6vw, 1.9rem); line-height: 1.15; font-weight: 400; color: var(--blau); }
.saetze p { margin: 0; max-width: 30rem; color: var(--schiefer); }

.zeichen { text-align: center; }
.zeichen img { width: clamp(120px, 26vw, 190px); margin: 0 auto 40px; }
.zeichen blockquote { margin: 0 auto; max-width: 30ch; font: 300 clamp(1.45rem, 5vw, 2.45rem)/1.3 var(--titel); color: var(--tinte); }
.zeichen blockquote span { display: block; text-wrap: balance; }
.zeichen blockquote span + span { margin-top: 0.45em; }
.zeichen p { margin: 26px 0 0; font: 600 0.72rem/1.5 var(--text); letter-spacing: 0.22em; text-transform: uppercase; color: var(--grau); }

/* Fuß */
.fuss { border-top: 1px solid var(--linie); padding: 44px var(--kante) 36px; font-size: 0.88rem; color: var(--schiefer); }
.fuss-oben { display: grid; gap: 22px; align-items: start; }
.fuss-marke { display: flex; align-items: center; gap: 14px; color: var(--tinte); }
.fuss-marke img { width: 44px; }
.fuss-marke strong { display: block; font: 500 1rem/1.3 var(--titel); letter-spacing: 0.02em; }
.fuss address { font-style: normal; line-height: 1.75; }
.fuss a { text-decoration: none; display: inline-block; padding: 6px 0; }
.fuss a:hover { color: var(--blau); text-decoration: underline; text-underline-offset: 4px; }
.fuss-unten { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--linie); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 0 22px; }

/* Unterseiten: Rechtstexte, Kontakt, Dank */
.recht { padding: clamp(44px, 9vw, 96px) var(--kante) var(--abschnitt); }
.recht .innen { max-width: 46rem; }
.recht h1 { margin: 0 0 0.5em; color: var(--tinte); font-size: clamp(2.3rem, 9vw, 3.9rem); line-height: 1.05; }
.recht h2 { max-width: none; margin: 2.2em 0 0.55em; font-size: clamp(1.35rem, 4.4vw, 1.75rem); line-height: 1.2; font-weight: 400; color: var(--blau); }
.recht p, .recht li { color: var(--schiefer); }
.recht p { margin: 0 0 1em; }
.recht ul { padding-left: 1.2em; margin: 0 0 1em; }
.recht li { margin-bottom: 0.35em; }
.recht a { color: var(--blau); text-underline-offset: 3px; overflow-wrap: anywhere; }
.recht address { font-style: normal; color: var(--tinte); line-height: 1.75; margin: 0 0 1em; }
.recht .vorspann { font-size: 1.1rem; color: var(--tinte); }
.recht .stand { margin-top: 3em; font-size: 0.85rem; color: var(--grau); }
.recht .zurueck { display: inline-block; margin-top: 2em; font-weight: 600; color: var(--blau); text-decoration: none; padding: 8px 0; }
.recht .zurueck:hover { text-decoration: underline; }
.kontakt-raster { display: grid; gap: 40px; }

.formular { background: var(--nebel); border: 1px solid var(--linie); border-radius: 14px; padding: clamp(20px, 5vw, 34px); }
.feld { display: grid; gap: 8px; margin: 0 0 18px; }
.feld label { font: 600 0.68rem/1.4 var(--text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--schiefer); }
.feld input, .feld textarea {
  width: 100%; margin: 0; font: 400 1.0625rem/1.5 var(--text); color: var(--tinte);
  background: #fff; border: 1px solid #cfd7e0; border-radius: 10px; padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(21, 54, 90, 0.12); }
.formular-hinweis { margin: 2px 0 22px; font-size: 0.84rem; line-height: 1.55; color: var(--schiefer); }
.knopf {
  appearance: none; -webkit-appearance: none; cursor: pointer; width: 100%; border: 0; border-radius: 999px;
  background: var(--blau); color: #fff; font: 600 0.98rem/1 var(--text); padding: 17px 28px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.knopf:hover { background: var(--nacht); }
.knopf:active { transform: translateY(1px); }
.knopf[disabled] { opacity: 0.6; cursor: progress; }
.formular-status { margin: 16px 0 0; min-height: 1.5em; font-size: 0.95rem; line-height: 1.5; }
.formular-status[data-art="ok"] { color: var(--blau); }
.formular-status[data-art="fehler"] { color: #a12c22; }
.nicht-ausfuellen { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Größere Bildschirme */
@media (min-width: 560px) {
  .knopf { width: auto; }
  .fuss-oben { grid-template-columns: auto 1fr; gap: 40px; }
  .fuss address { justify-self: end; text-align: right; }
}
@media (min-width: 900px) {
  .kopf { padding-top: 28px; }
  .held { min-height: 100vh; min-height: 100svh; grid-template-columns: 1.05fr 1fr; gap: 24px; padding-top: 130px; padding-bottom: 36px; }
  .held::before { right: -18vw; top: 4%; width: 80vw; height: 80vw; }
  .held h1 { font-size: clamp(3.2rem, 5.4vw, 5.4rem); }
  .globus { width: min(100%, 640px); margin: 0 -40px 0 0; justify-self: end; }
  .held-fuss { margin-top: 8px; }
  h2 { max-width: 18ch; }
  .profil-raster { grid-template-columns: 1.15fr 0.85fr; gap: 88px; align-items: start; }
  .turm { position: sticky; top: 40px; }
  .saetze { grid-template-columns: repeat(3, 1fr); gap: 44px; }
  .saetze li { display: block; padding: 28px 0 0; border-top: 1px solid var(--blau); }
  .saetze li:last-child { border-bottom: 0; }
  .saetze .nr { display: block; margin-bottom: 28px; }
  .saetze h3 { margin-bottom: 12px; }
  .kontakt-raster { grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: start; }
  .manifest::after { background: linear-gradient(90deg, rgba(6, 21, 38, 0.9) 0%, rgba(6, 21, 38, 0.66) 55%, rgba(6, 21, 38, 0.4) 100%); }
}

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