/* Qlege Website – klare, seriöse Gestaltung in Nachtblau, Weiß und Hellgrau */

/* ---------- Schriften: liegen auf dem eigenen Server, keine Verbindung zu Google (DSGVO) ---------- */
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url("../fonts/libre-franklin-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* Aufbau: nachtblauer Einstieg mit Porträt, danach Abschnitte im Wechsel Weiß und Hellgrau, Kontakt wieder nachtblau */
:root {
  --cyan: #2ee6d6;
  --cyan-hover: #7af0e6;
  --on-cyan: #0e1b3d;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --line: #dce2ec;
  --ink: #0e1b3d;
  --ink-muted: #4a5470;
  --accent-text: #0b6b65;
  --feldrand: #b7c0d1;
  --error: #b42318;
  --knopf: #0e1b3d;
  --knopf-hover: #22325c;
  --knopf-text: #ffffff;
  --band: #0e1b3d;
  --band-line: #2a3a60;
  --on-band: #f2f5fa;
  --on-band-muted: #a7b1c7;
  --logo-hell: block;
  --logo-dunkel: none;

  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-sans: Inter, "Helvetica Neue", Arial, sans-serif;

  --radius-md: 10px;
  --radius-lg: 18px;
  --breite: 1200px;
  color-scheme: light;
}

/* Dunkler Modus (folgt der Einstellung des Geräts) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0e1b3d;
    --surface-2: #142344;
    --line: #26365c;
    --ink: #f2f5fa;
    --ink-muted: #a7b1c7;
    --accent-text: #2ee6d6;
    --feldrand: #3a4b73;
    --error: #ff7a6b;
    --knopf: #2ee6d6;
    --knopf-hover: #7af0e6;
    --knopf-text: #0e1b3d;
    --band: #08122b;
    --band-line: #24345a;
    --logo-hell: none;
    --logo-dunkel: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --surface: #0e1b3d;
  --surface-2: #142344;
  --line: #26365c;
  --ink: #f2f5fa;
  --ink-muted: #a7b1c7;
  --accent-text: #2ee6d6;
  --feldrand: #3a4b73;
  --error: #ff7a6b;
  --knopf: #2ee6d6;
  --knopf-hover: #7af0e6;
  --knopf-text: #0e1b3d;
  --band: #08122b;
  --band-line: #24345a;
  --logo-hell: none;
  --logo-dunkel: block;
  color-scheme: dark;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }

.huelle { max-width: var(--breite); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.nur-hell { display: var(--logo-hell); }
.nur-dunkel { display: var(--logo-dunkel); }

.sprung { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 10px 16px; background: var(--knopf); color: var(--knopf-text); border-radius: var(--radius-md); }
.sprung:focus { top: 12px; }

/* ---------- Kopfzeile ---------- */
.kopf { background: var(--surface); border-bottom: 1px solid var(--line); }
.kopf-innen { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.logo { display: block; flex: none; }
.logo img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { font-size: 16px; text-decoration: none; }
.nav-link:hover { color: var(--accent-text); }
@media (max-width: 900px) { .nav-link { display: none; } }

/* ---------- Knöpfe und Links ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px; border-radius: var(--radius-md); border: 1.5px solid transparent;
  background: var(--knopf); color: var(--knopf-text);
  font: 600 16px/1 var(--font-sans); text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.knopf:hover { background: var(--knopf-hover); }
.knopf-klein { min-height: 42px; padding: 0 18px; font-size: 15px; }
.knopf-cyan { background: var(--cyan); color: var(--on-cyan); }
.knopf-cyan:hover { background: var(--cyan-hover); }
.knopf-rahmen { background: transparent; color: var(--on-band); border-color: var(--band-line); }
.knopf-rahmen:hover { background: transparent; border-color: var(--on-band); }
.textlink { font-weight: 600; color: var(--accent-text); text-decoration: none; }
.textlink:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .knopf { transition: none; } }

/* ---------- Einstieg (nachtblau, mit Porträt) ---------- */
.held { background: var(--band); color: var(--on-band); padding-block: clamp(48px, 7vw, 96px); }
.held-raster { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.held-text { min-width: 0; }
.vorzeile { font-size: 15px; line-height: 24px; color: var(--on-band-muted); }
.held h1 { margin-top: 18px; font-size: clamp(38px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.012em; font-weight: 600; max-width: 14em; }
.held .einleitung { margin-top: 24px; max-width: 34em; font-size: 19px; line-height: 31px; color: var(--on-band-muted); }
.aktionen { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.portraet { display: block; min-width: 0; color: inherit; text-decoration: none; }
.portraet:hover figcaption { color: var(--on-band); text-decoration: underline; text-decoration-color: var(--cyan); text-underline-offset: 4px; }
.held :focus-visible { outline-color: var(--cyan); }
.portraet img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; border-radius: var(--radius-lg); background: var(--band-line); }
.portraet figcaption { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--on-band-muted); }
@media (max-width: 860px) {
  .held-raster { grid-template-columns: 1fr; }
  .portraet { max-width: 360px; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(72px, 9vw, 112px); scroll-margin-top: 8px; }
.getoent { background: var(--surface-2); }
.abschnitt-kopf { display: flex; flex-direction: column; gap: 14px; max-width: 46em; margin-bottom: clamp(36px, 5vw, 56px); }
.abschnitt h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.15; letter-spacing: -0.01em; }
.etikett, .abschnitt .etikett { font-family: var(--font-sans); font-size: 15px; line-height: 24px; font-weight: 600; letter-spacing: 0; color: var(--accent-text); }
.abschnitt-kopf p:not(.etikett) { font-size: 18px; line-height: 30px; color: var(--ink-muted); }

/* Leistungen: drei Karten */
.karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.karte { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); background: var(--surface-2); border-radius: var(--radius-lg); min-width: 0; }
.karte h3 { font-size: 24px; line-height: 32px; letter-spacing: -0.01em; }
.karte p { color: var(--ink-muted); }
.umfang { list-style: none; margin: 4px 0 0; padding: 0; font-size: 15px; line-height: 24px; }
.umfang li { padding-block: 10px; border-top: 1px solid var(--line); }
.karte .textlink { margin-top: auto; padding-top: 8px; }
@media (max-width: 960px) { .karten { grid-template-columns: 1fr; } }

/* Websites: links die vier Merkmale untereinander, rechts die Galerie zum Wischen */
.website-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.merkmale { list-style: none; margin: 0; padding: 0; }
.merkmale li { display: flex; flex-direction: column; gap: 4px; padding-block: 18px; border-top: 1px solid var(--line); }
.merkmale li:last-child { border-bottom: 1px solid var(--line); }
.merkmale h3 { font-size: 20px; line-height: 28px; }
.merkmale p { color: var(--ink-muted); }
@media (max-width: 860px) { .website-raster { grid-template-columns: 1fr; } }

.galerie { min-width: 0; }
.galerie-spur {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 12px;
}
.galerie-spur::-webkit-scrollbar { display: none; }
.folie { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.folie img {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top;
  border: 1px solid var(--line); border-radius: 12px; background: #ffffff;
}
.folie figcaption { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--ink-muted); }
.folie figcaption b { color: var(--ink); font-weight: 600; }
.galerie-leiste { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.galerie-leiste .bildtext { margin: 0; }
.galerie-zaehler { margin-right: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.galerie-pfeile { display: flex; gap: 10px; }
.galerie-pfeile button {
  width: 46px; height: 46px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.galerie-pfeile button:hover:not(:disabled) { border-color: var(--ink); }
.galerie-pfeile button:disabled { opacity: 0.35; cursor: default; }
.galerie-pfeile svg { width: 20px; height: 20px; }
@media (max-width: 640px) { .folie { flex-basis: 88%; } }
@media (prefers-reduced-motion: reduce) { .galerie-spur { scroll-behavior: auto; } }

/* Immobilienfotografie: zwei Luftbilder, darunter drei Innenaufnahmen */
.fotos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fotos img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); background: var(--line); }
.fotos-innen { margin-top: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fotos-innen img { aspect-ratio: 3 / 2; border-radius: 14px; }
/* Beliebig viele Fotos aus dem Adminbereich: die ersten zwei groß, alle weiteren zu dritt darunter */
.fotos-raster { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 24px; }
.foto-gross { grid-column: span 3; }
.foto-klein { grid-column: span 2; }
.foto-klein img { aspect-ratio: 3 / 2; border-radius: 14px; }
.bildtext { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
@media (max-width: 760px) {
  .fotos, .fotos-innen, .fotos-raster { grid-template-columns: 1fr; }
  .foto-gross, .foto-klein { grid-column: auto; }
}

/* Eigene Software */
.projekte { border-top: 1px solid var(--line); }
.projekt {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px clamp(32px, 5vw, 80px); align-items: center;
  padding-block: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line);
}
.projekt-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-width: 0; }
.projekt h3 { font-size: 28px; line-height: 36px; letter-spacing: -0.01em; }
.projekt h3 img { height: 40px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.projekt-art { font-size: 15px; line-height: 24px; font-weight: 600; color: var(--accent-text); }
.projekt-text p:not(.projekt-art) { color: var(--ink-muted); max-width: 32em; }
.bildschirm img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: left top;
  border: 1px solid var(--line); border-radius: 12px; background: #ffffff;
}
@media (max-width: 860px) { .projekt { grid-template-columns: 1fr; } }

/* Über mich */
.ueber-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
.ueber-links { display: flex; flex-direction: column; gap: 14px; }
.aussage { font: 500 clamp(24px, 2.6vw, 31px)/1.35 var(--font-display); letter-spacing: -0.01em; }
.ueber-rechts { display: flex; flex-direction: column; gap: 20px; min-width: 0; padding-top: 42px; }
.ueber-rechts p { color: var(--ink-muted); }
@media (max-width: 860px) {
  .ueber-raster { grid-template-columns: 1fr; }
  .ueber-rechts { padding-top: 0; }
}

/* Mein Weg: vier Stationen auf einer durchgehenden Linie, die letzte (heute) gefüllt */
.weg { margin-top: clamp(56px, 7vw, 88px); display: flex; flex-direction: column; gap: 28px; }
.stationen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 36px; }
.stationen li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 32px 0 0; border-top: 2px solid var(--line); }
.stationen li::before {
  content: ""; position: absolute; left: 0; top: -8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--ink-muted);
}
.stationen li:last-child::before { background: var(--ink); border-color: var(--ink); }
.stationen h3 { font-size: 20px; line-height: 28px; }
.stationen p { color: var(--ink-muted); }
@media (max-width: 860px) { .stationen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .stationen { grid-template-columns: 1fr; } .stationen li { padding-right: 0; } }

/* Kontakt: nachtblau */
.kontakt { background: var(--band); color: var(--on-band); }
.kontakt .etikett { color: var(--cyan); }
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px clamp(40px, 6vw, 88px); align-items: start; }
.kontakt-links { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kontakt-links p:not(.etikett) { color: var(--on-band-muted); max-width: 30em; }
.wege { margin-top: 18px; }
.wege div { padding-block: 14px; border-top: 1px solid var(--band-line); }
.wege div:last-child { border-bottom: 1px solid var(--band-line); }
.wege dt { font-size: 14px; line-height: 20px; color: var(--on-band-muted); }
.wege dd { margin-top: 2px; font: 500 20px/1.35 var(--font-display); overflow-wrap: anywhere; }
.wege a { text-decoration: none; }
.wege a:hover { color: var(--cyan); }
@media (max-width: 860px) { .kontakt-raster { grid-template-columns: 1fr; } }

/* Kontaktformular: helle Karte auf dem nachtblauen Grund */
.formular {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; min-width: 0;
  padding: clamp(24px, 3vw, 36px); background: var(--surface); color: var(--ink); border-radius: var(--radius-lg);
}
.feld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.feld-breit { grid-column: 1 / -1; }
.feld label { font-size: 14px; line-height: 20px; font-weight: 600; }
.feld input, .feld select, .feld textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  font: 400 16px/24px var(--font-sans); color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--feldrand); border-radius: var(--radius-md);
}
.feld textarea { min-height: 132px; resize: vertical; }
.feld input::placeholder, .feld textarea::placeholder { color: var(--ink-muted); opacity: 0.75; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; border-color: var(--accent-text); }
.nicht-ausfuellen { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-fuss { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.formular-fuss p { font-size: 14px; line-height: 20px; color: var(--ink-muted); max-width: 26em; }
.formular-fuss a { color: var(--accent-text); }
.formular .knopf { border-color: var(--on-cyan); }
.formular .knopf:disabled { opacity: 0.6; cursor: default; }
.formular-status { grid-column: 1 / -1; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--accent-text); }
.formular-status:empty { display: none; }
.formular-status[data-art="fehler"] { color: var(--error); }
@media (max-width: 560px) { .formular { grid-template-columns: 1fr; } }

/* Noch einzutragende Angaben */
.offen { color: var(--ink-muted); border-bottom: 1px dashed currentColor; }
.kontakt .offen { color: var(--on-band-muted); }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--band); color: var(--on-band-muted); }
.fuss-innen { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding-block: 40px 48px; border-top: 1px solid var(--band-line); }
.lockup { display: flex; flex-direction: column; align-items: center; }
.lockup img { width: 150px; height: auto; }
.lockup p { margin-top: 4px; font: 500 14px/20px var(--font-display); color: var(--on-band-muted); text-align: center; }
.fuss-angaben { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; line-height: 20px; }
.fuss-angaben a { color: var(--on-band); text-decoration: none; }
.fuss-angaben a:hover { color: var(--cyan); }

/* ---------- Knopf „Nach oben“ ---------- */
.nach-oben {
  position: fixed; z-index: 20;
  right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px 0 14px;
  border-radius: 999px; border: 1.5px solid var(--on-cyan); background: var(--cyan); color: var(--on-cyan);
  font: 600 15px/1 var(--font-sans); text-decoration: none;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nach-oben.sichtbar { opacity: 1; visibility: visible; transform: none; }
.nach-oben:hover { background: var(--cyan-hover); }
.nach-oben svg { width: 16px; height: 16px; flex: none; }
@media (prefers-reduced-motion: reduce) { .nach-oben { transition: none; transform: none; } }
.fuss-innen { padding-bottom: 88px; }

/* ---------- Unterseiten: Impressum und Datenschutz ---------- */
.rechtstext { max-width: 760px; padding-block: clamp(56px, 8vw, 96px); display: flex; flex-direction: column; gap: 32px; }
.rechtstext h1 { font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; }
.rechtstext section { display: flex; flex-direction: column; gap: 8px; }
.rechtstext h2 { font-size: 20px; line-height: 28px; }
.rechtstext ul { margin: 0; padding-left: 20px; }
.entwurf { padding: 14px 18px; background: var(--surface-2); border-radius: var(--radius-md); font-size: 15px; line-height: 24px; color: var(--ink-muted); }
