/* aeverno.de · Hülle aller Unterseiten (FS192, 11-10-2026): Schrift, Farben, Knöpfe, Kopfleiste mit Kennung und
   Pfadzeile, Fuß. Die Regeln sind aus der Vorschau der App-Seite übernommen
   (docs/legal/site_aeverno_stile/skizze_linie/stil.css, Fassung Skizze 1, Knopf „Glanz“), ohne das Schalterfeld
   und ohne die data-Merkmale am <html>. Wer Kopf oder Fuß der App-Seite ändert, zieht es hier nach.
   Seiteninhalte (Startseite, Funktionen, Textseiten, Formular, 404) stehen in unterseiten.css. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/outfit-var.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --papier: #FBF8F2;
  --blau: #EEF2F8;
  --sand: #F5EFE4;
  --tinte: #0B1220;
  --tinte-2: #26324A;
  --neben: #566076;
  --akzent: #2E5AA8;
  --ocker: #7D4F1F;
  --flaeche: #FFFDF9;
  --hell: #E3EAF5;
  --akzent-linie: #B7C6E2;
  --linie: rgba(11, 18, 32, .12);
  --schrift: "Outfit", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --rand: 28px;
  --grund-2: #F4EEE3;
  --ziffer-grund: #EADFCB;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
/* Tipp-Markierung des Browsers aus (das hellblaue Rechteck beim Antippen am Handy, Chrome und Samsung Internet): Knöpfe, Verweise
   und Umschalter zeigen ihre eigene Rückmeldung. Gilt über die Vererbung für alle Seiten. Entscheid des Nutzers 12-10-2026. */
html { -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 16px/1.65 var(--schrift);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
body > main { flex: 1 0 auto; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }
::selection { background: #CFDCF2; color: var(--tinte); }

.sprung { position: absolute; left: 20px; top: -100px; z-index: 100; padding: 12px 20px; border-radius: 20px; background: var(--flaeche); color: var(--tinte); }
.sprung:focus { top: 20px; }
.rahmen { width: 100%; max-width: 1296px; margin-inline: auto; padding-inline: var(--rand); }
.nur-vorlesen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Schrift ---------- */
.h1 { font-weight: 600; font-size: clamp(2.5rem, 5.556vw, 5.05rem); line-height: 1.02; letter-spacing: -.052em; }
.h2 { font-weight: 600; font-size: clamp(2.35rem, 4.25vw, 3.8rem); line-height: 1.08; letter-spacing: -.045em; }
.h1 > span, .h2 > span { display: block; }
.akz { color: var(--akzent); }
.absatz { color: var(--neben); font-size: 18px; line-height: 1.7; max-width: 500px; margin-top: 25px; }
.absatz--19 { font-size: 19px; line-height: 1.65; margin-top: 24px; }
.verweis { display: inline-flex; align-items: center; gap: 11px; color: var(--akzent); font-weight: 500; font-size: 16px; line-height: 1.65; text-underline-offset: 5px; }
.verweis svg, .knopf svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.verweis:hover { text-decoration: underline; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; line-height: 26.4px; white-space: nowrap;
  transition: transform .2s ease, background-color .2s ease;
}
.knopf svg { width: 19px; height: 19px; }
.knopf:hover { transform: translateY(-2px); }
.knopf--glas { background: rgba(255, 253, 249, .88); border-color: var(--linie); color: var(--tinte-2); }
.knopf--glas:hover { background: var(--flaeche); }
.abzeichen { display: inline-block; border-radius: 10px; transition: transform .2s ease; }
.abzeichen img { width: 196px; height: auto; margin-block: -9px; }
.abzeichen:hover { transform: translateY(-2px); }

/* Hauptknopf mit Glanz (Vorschau Runde 5): tiefer Tinten-Grund, ein schmaler Lichtbogen in unserem Blau läuft in
   9 Sekunden einmal um den Rand. Ohne @property steht das Licht still. Bei „weniger Bewegung“ steht es ebenfalls. */
@property --glanz-winkel { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --glanz-weite { syntax: "<percentage>"; initial-value: 74%; inherits: false; }
@property --glanz-kraft { syntax: "<number>"; initial-value: .94; inherits: false; }
.knopf--voll {
  position: relative; isolation: isolate; overflow: hidden; border: 1.5px solid transparent; color: #FFFDF9;
  font-weight: 600; letter-spacing: .004em;
  background:
    linear-gradient(180deg, #152036 0%, #0B1220 52%, #070C17 100%) padding-box,
    conic-gradient(from var(--glanz-winkel), transparent 0, transparent var(--glanz-weite),
      rgba(46, 90, 168, calc(var(--glanz-kraft) * .55)) calc(var(--glanz-weite) + (100% - var(--glanz-weite)) * .35),
      rgba(129, 171, 243, var(--glanz-kraft)) calc(var(--glanz-weite) + (100% - var(--glanz-weite)) * .78),
      rgba(234, 242, 255, var(--glanz-kraft)) calc(100% - 2.2%), rgba(129, 171, 243, calc(var(--glanz-kraft) * .7)) calc(100% - .7%), transparent 100%) border-box,
    linear-gradient(180deg, #2C3A57, #1A2439) border-box;
  box-shadow: inset 0 1px 0 rgba(205, 223, 253, .13), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 1px 1px rgba(11, 18, 32, .28), 0 12px 26px -16px rgba(11, 18, 32, .8);
  animation: glanz-lauf 9s linear infinite;
  transition: transform .2s ease, box-shadow .35s ease, --glanz-weite .55s ease, --glanz-kraft .35s ease;
}
.knopf--voll::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120% 90% at 50% -30%, rgba(129, 171, 243, .2) 0%, rgba(129, 171, 243, .05) 46%, transparent 70%);
}
.knopf--voll::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(112deg, transparent 40%, rgba(205, 223, 253, .1) 50%, transparent 60%) no-repeat;
  background-size: 280% 100%; background-position: 135% 0;
  animation: glanz-zug 9s ease-in-out infinite;
}
.knopf--voll:hover, .knopf--voll:focus-visible {
  --glanz-weite: 58%; --glanz-kraft: 1;
  box-shadow: inset 0 1px 0 rgba(205, 223, 253, .2), inset 0 -1px 0 rgba(0, 0, 0, .35), 0 0 0 1px rgba(129, 171, 243, .16), 0 14px 30px -16px rgba(46, 90, 168, .85);
}
.knopf--voll:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 999px; }
@keyframes glanz-lauf { to { --glanz-winkel: 360deg; } }
@keyframes glanz-zug { 0%, 34% { background-position: 135% 0; } 72%, 100% { background-position: -35% 0; } }

/* ---------- Kopfleiste ---------- */
.kopf { position: fixed; z-index: 50; top: 20px; left: 28px; right: 28px; max-width: 1400px; margin-inline: auto; }
/* Kopfleiste am Handy: mit data-kopfhandy="steht" am html-Element bleibt sie am Seitenanfang und rollt mit der Seite weg (FS192) */
@media (max-width: 700px) { html[data-kopfhandy="steht"] .kopf { position: absolute; } }
/* App-Seite am Handy: Die Leiste unten bleibt bis zum Seitenende stehen; der Fuß bekommt dafür Luft, damit sie seine letzte Zeile nicht verdeckt */
@media (max-width: 700px) { html[data-leiste]:not([data-leiste="aus"]) .fuss__schluss { padding-bottom: 104px; } }
.kopf__leiste {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 84px; padding: 13px 24px 13px 20px; border-radius: 999px;
  background: #FFFDF9; border: 1px solid var(--linie);
  box-shadow: 0 8px 40px -32px rgba(22, 40, 82, .33);
}
.marke { display: inline-flex; align-items: center; font-weight: 650; font-size: 31px; line-height: 1; letter-spacing: -.065em; color: var(--tinte); }
.marke__zeichen { width: 44px; height: 44px; border-radius: 23%; box-shadow: 0 6px 14px -8px rgba(11, 18, 32, .5); }
.kopf__nav { display: flex; align-items: center; gap: 30px; }
.kopf__nav a { color: var(--neben); font-size: 15px; line-height: 1.65; transition: color .2s ease; }
.kopf__nav a:hover { color: var(--akzent); }
.kopf__nav a[aria-current="page"], .menue__tafel a[aria-current="page"]:not(.knopf) { color: var(--tinte); font-weight: 600; }
.mit-zeichen { display: inline-flex; align-items: center; gap: 8px; }
.mit-zeichen img { width: 20px; height: 20px; border-radius: 23%; }
.menue { display: none; }
.menue:not([open]) .menue__tafel { display: none; }

/* Kennung: Zeichen, darüber die Pfadzeile (Aeverno › Produkte › ImmoFW), darunter der Schriftzug */
.kennung { display: flex; align-items: center; gap: 12px; }
.kennung__bild { flex: none; }
.kennung__text { display: flex; flex-direction: column; gap: 3px; }
.pfad ol { display: flex; align-items: center; gap: 0; color: var(--neben); font-size: 12px; line-height: 1.2; letter-spacing: .01em; white-space: nowrap; }
.pfad li:not(.nur-vorlesen)::after { content: "›"; margin-inline: 6px; color: #8A93A6; }
.pfad a { text-underline-offset: 3px; transition: color .2s ease; }
.pfad a:hover { color: var(--akzent); text-decoration: underline; }
.kennung .marke { font-size: 27px; }
.kennung--allein .marke { font-size: 29px; }

/* ---------- Fuß ---------- */
.fuss { flex: none; border-top: 1px solid var(--linie); background: var(--papier); color: var(--neben); font-size: 14px; line-height: 1.65; }
.fuss__raster { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.fuss__marke p { margin-top: 20px; max-width: 240px; }
.fuss__titel { color: var(--tinte); font-weight: 600; font-size: 14px; line-height: 1.65; }
.fuss__raster ul { margin-top: 20px; display: grid; gap: 5px; }
.fuss__raster li a { display: inline-block; padding-block: 3px; }
.fuss__raster a:not(.marke):hover { color: var(--akzent); }
.fuss__raster a[aria-current="page"] { color: var(--tinte); }
.fuss__hinweis { padding-bottom: 40px; font-size: 13px; line-height: 1.65; }
.fuss__hinweis p { max-width: 780px; }
.fuss__hinweis p + p { margin-top: 10px; }
.fuss__schluss { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 89px; padding-block: 22px; border-top: 1px solid var(--linie); font-size: 13px; line-height: 1.65; }

/* ============ ab 1100 abwärts ============ */
@media (max-width: 1100px) {
  .kopf__nav { gap: 22px; }
}
@media (max-width: 900px) {
  .fuss__raster { grid-template-columns: 1fr 1fr 1fr; }
  .fuss__marke { grid-column: 1 / -1; }
}
/* Zwischen 701 und 860 wird es in der Leiste eng: Knopf kleiner, Lücken enger */
@media (min-width: 701px) and (max-width: 860px) {
  .kopf__leiste { gap: 14px; padding-right: 14px; }
  .kopf__nav { gap: 16px; }
  .kopf__leiste > .knopf { min-height: 48px; padding: 10px 18px; font-size: 15px; }
}

/* ============ ab 700 abwärts: Menüknopf ============ */
@media (max-width: 700px) {
  :root { --rand: 22px; }
  html { scroll-padding-top: 96px; }
  .h1 { font-size: clamp(2rem, 11.3vw, 4.3rem); line-height: 1.04; letter-spacing: -.065em; }

  .kopf { top: 12px; left: 14px; right: 14px; }
  .kopf__leiste { height: 68px; padding: 11px 14px 11px 14px; gap: 10px; }
  .marke { font-size: 28px; gap: 10px; }
  .marke__zeichen { width: 40px; height: 40px; }
  .kopf__nav, .kopf__leiste > .knopf { display: none; }
  .menue { display: block; }
  .menue summary {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--flaeche); border: 1px solid var(--linie); color: var(--neben); cursor: pointer; list-style: none;
    transition: background-color .2s ease;
  }
  .menue summary::-webkit-details-marker { display: none; }
  .menue summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .menue summary .zu, .menue[open] summary .auf { display: none; }
  .menue[open] summary .zu { display: block; }
  .menue[open] summary { background: var(--hell); color: var(--tinte); }
  .menue__tafel {
    position: absolute; left: -1px; right: -1px; top: calc(100% + 12px);
    padding: 16px; border-radius: 28px; background: var(--flaeche); border: 1px solid var(--linie);
    box-shadow: 0 24px 50px -30px rgba(22, 40, 82, .45);
  }
  .menue__tafel a:not(.knopf) { display: flex; padding: 12px 18px; border-radius: 18px; color: var(--tinte-2); font-size: 16px; line-height: 26px; }
  .menue__tafel a:not(.knopf):active { background: var(--hell); }
  .menue__tafel .mit-zeichen img { width: 22px; height: 22px; }
  .menue__tafel .knopf { display: flex; justify-content: flex-start; min-height: 52px; padding: 12px 20px; margin-top: 4px; font-size: 17px; }

  .kennung { gap: 10px; }
  .kennung__text { gap: 2px; }
  .pfad ol { font-size: 10.5px; }
  .kennung .marke { font-size: 24px; }
  .kennung--allein .marke { font-size: 26px; }

  .fuss__raster { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 45px; padding-bottom: 36px; }
  .fuss__marke, .fuss__breit { grid-column: 1 / -1; }
  .fuss__schluss { align-items: flex-start; min-height: 0; }
}

/* ============ Weniger Bewegung ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; }
}
