/* ===== Schrift: Roboto, liegt selbst auf der Website (nicht von Google Fonts geladen) ===== */
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("../fonts/roboto-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

/* ===== Farben wie in der App ===== */
:root {
  --petrol: #14566A;
  --petrol-dunkel: #0E4252;
  --petrol-hell: #1E7189;
  --bernstein: #E8A84A;
  --bernstein-dunkel: #B5761E;

  --hintergrund: #F3F6F7;
  --flaeche: #FFFFFF;
  --text: #14343D;
  --text-grau: #4C6670;
  --linie: #DCE5E8;
  --link: #14566A;
  --knopf: #14566A;
  --knopf-text: #FFFFFF;
  --symbol-grund: #E3EEF1;
  --symbol-farbe: #14566A;
  --schatten: 0 1.5rem 3rem rgba(14, 66, 82, 0.25);
}

/* Dunkle Darstellung, wenn das Handy oder der Rechner auf „dunkel“ steht */
@media (prefers-color-scheme: dark) {
  :root {
    --hintergrund: #0B1C22;
    --flaeche: #12282F;
    --text: #E4ECEE;
    --text-grau: #A2B7BE;
    --linie: #21404A;
    --link: #8CC8D8;
    --knopf: #E8A84A;
    --knopf-text: #14343D;
    --symbol-grund: #1B3A44;
    --symbol-farbe: #8CC8D8;
    --schatten: 0 1.5rem 3rem rgba(0, 0, 0, 0.5);
  }
}

/* ===== Grundlagen ===== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Roboto", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--hintergrund);
  /* Fußzeile bei kurzen Seiten immer ganz unten */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

a { color: var(--link); }

img { max-width: 100%; height: auto; display: block; }

.inhalt {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== Oberer Bereich (Bühne) mit Petrol-Verlauf ===== */
.buehne {
  color: #FFFFFF;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(30, 113, 137, 0.9), transparent 60%),
    linear-gradient(160deg, #1E7189 0%, #14566A 45%, #0E4252 100%);
}

.kopf .inhalt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.marke {
  font-weight: 700;
  font-size: 1.25rem;
  color: #FFFFFF;
  text-decoration: none;
}
.marke span { color: var(--bernstein); }
.navigation {
  display: flex;
  gap: 1.5rem;
}
.navigation a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}
.navigation a:hover { color: #FFFFFF; text-decoration: underline; }

.begruessung {
  padding: 3.5rem 0 5rem;
}
.begruessung h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.1;
  color: #FFFFFF;
}
.strich {
  width: 4.5rem;
  height: 0.3rem;
  margin: 1.5rem 0;
  border-radius: 1rem;
  background: var(--bernstein);
}
.begruessung p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Vorstellung Fahrtenbuch ===== */
.app-vorstellung {
  padding: 4rem 0 4.5rem;
}
.app-raster {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.kleintitel {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bernstein-dunkel);
}
@media (prefers-color-scheme: dark) {
  .kleintitel { color: var(--bernstein); }
}

.app-name {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.app-name img {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  border-radius: 1.1rem;
  box-shadow: 0 0.4rem 1rem rgba(14, 66, 82, 0.18);
}
.app-name h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
}
.app-text > p { margin: 0 0 0.6rem; max-width: 32rem; }
.app-text .hinweis {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--text-grau);
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.knopf {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--knopf);
  color: var(--knopf-text);
  border: 2px solid var(--knopf);
}
.knopf:hover { filter: brightness(1.1); }
.knopf.zweitrangig {
  background: transparent;
  color: var(--link);
  border-color: currentColor;
}

/* Handy-Rahmen mit echtem Bildschirm der App */
.app-bild { display: flex; justify-content: center; }
.handy {
  width: 17rem;
  padding: 0.55rem;
  border-radius: 2.4rem;
  background: #0E2A33;
  box-shadow: var(--schatten);
}
.handy img {
  border-radius: 1.9rem;
}

/* Drei Stärken */
.staerken {
  list-style: none;
  margin: 4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.staerken li {
  padding: 1.5rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 1.1rem;
}
.staerke-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: var(--symbol-grund);
  color: var(--symbol-farbe);
}
.staerke-symbol svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.staerken h3 {
  margin: 1rem 0 0.4rem;
  font-size: 1.1rem;
  line-height: 1.3;
}
.staerken p {
  margin: 0;
  color: var(--text-grau);
}

/* ===== Fahrtenbuch-Seite ===== */
.app-kopf { padding: 2.5rem 0 4.5rem; }
.app-kopf-symbol {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25);
}
.app-kopf h1 {
  margin: 0;
  font-size: clamp(2rem, 6.5vw, 3.2rem);
  line-height: 1.1;
  color: #FFFFFF;
}
.app-kopf p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
}
.knopf.hell {
  background: var(--bernstein);
  border-color: var(--bernstein);
  color: #14343D;
}

.funktionen { padding-top: 4rem; padding-bottom: 2rem; }
.funktion {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 5rem;
}
/* jede zweite Funktion: Bild links, Text rechts */
.funktion:nth-child(even) .funktion-text { order: 2; }
.funktion h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  line-height: 1.2;
}
.funktion h2::after {
  content: "";
  display: block;
  width: 3rem;
  height: 0.25rem;
  margin-top: 0.75rem;
  border-radius: 1rem;
  background: var(--bernstein);
}
.funktion p {
  margin: 0;
  max-width: 32rem;
  color: var(--text-grau);
  font-size: 1.1rem;
}
.funktion .handy { width: 15rem; justify-self: center; }

.preise-bereich {
  padding: 3.5rem 0;
  background: var(--flaeche);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}
.preise-bereich h2,
.gut-zu-wissen h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.preise-einleitung { margin: 0 0 1.5rem; font-size: 1.1rem; }
.preise {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.preise li {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--linie);
  border-radius: 1.1rem;
  background: var(--hintergrund);
  text-align: center;
}
.preis {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--petrol);
}
@media (prefers-color-scheme: dark) {
  .preis { color: var(--bernstein); }
}
.zeitraum { display: block; color: var(--text-grau); }
.preise-hinweis { margin: 1.5rem 0 0; color: var(--text-grau); }

.gut-zu-wissen { padding-top: 3.5rem; padding-bottom: 4rem; }
.gut-zu-wissen ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
  max-width: 44rem;
}
.gut-zu-wissen li { margin-bottom: 0.5rem; }
.gut-zu-wissen li::marker { color: var(--bernstein-dunkel); }
.link-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
}

@media (max-width: 52rem) {
  .funktion { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4rem; }
  .funktion:nth-child(even) .funktion-text { order: 0; }
  .funktion .handy { width: 13.5rem; }
  .preise { grid-template-columns: 1fr; }
}

/* ===== Unterseiten (Impressum, Datenschutz, Kontakt …) ===== */
.buehne.klein .seitentitel {
  padding: 1.5rem 1rem 2.75rem;
}
.seitentitel h1 {
  margin: 0;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  line-height: 1.15;
  color: #FFFFFF;
  /* lange Wörter wie „Datenschutzerklärung“ auf sehr schmalen Handys trennen */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.seitentitel h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 0.25rem;
  margin-top: 1rem;
  border-radius: 1rem;
  background: var(--bernstein);
}

.text-seite {
  max-width: 46rem;
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}
.text-seite h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.2rem;
  line-height: 1.3;
}
.text-seite h2:first-child { margin-top: 0; }
.text-seite h3 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1.05rem;
}
.text-seite p, .text-seite ul { margin: 0 0 0.9rem; }
.text-seite ul { padding-left: 1.25rem; }
.text-seite li { margin-bottom: 0.3rem; }
.text-seite a { overflow-wrap: anywhere; }
.text-seite .einleitung {
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
}

/* Kontaktseite: anklickbarer Kasten mit der E-Mail-Adresse */
.kontakt-kasten {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 1.1rem;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s;
}
.kontakt-kasten:hover { border-color: var(--link); }
.kontakt-kasten .staerke-symbol { flex-shrink: 0; }
.kontakt-art {
  display: block;
  font-size: 0.9rem;
  color: var(--text-grau);
}
.kontakt-wert {
  display: block;
  font-weight: 700;
  color: var(--link);
  overflow-wrap: anywhere;
}

/* Markierung für Entwurfsstellen, die vor dem Livegang geklärt werden müssen */
mark.pruefen {
  background: #FDE7B8;
  color: #6B4300;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  font-weight: 700;
}
.text-seite .stand {
  margin-top: 2.5rem;
  color: var(--text-grau);
  font-size: 0.95rem;
}

/* ===== Fußzeile ===== */
.fuss {
  background: #0E4252;
  color: rgba(255, 255, 255, 0.8);
  padding: 1.75rem 0 2.25rem;
  font-size: 0.95rem;
}
@media (prefers-color-scheme: dark) {
  .fuss { background: #08171C; border-top: 1px solid var(--linie); }
}
.fuss .inhalt {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.fuss nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.fuss a { color: rgba(255, 255, 255, 0.85); }
.fuss a:hover { color: #FFFFFF; }

/* ===== Schmale Bildschirme ===== */
@media (max-width: 52rem) {
  .app-raster { grid-template-columns: 1fr; gap: 2.5rem; }
  .handy { width: 15rem; }
  .staerken { grid-template-columns: 1fr; margin-top: 3rem; }
}
@media (max-width: 26rem) {
  .navigation { gap: 1rem; }
  .kopf .inhalt { flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .marke { font-size: 1.1rem; }
  .navigation a { font-size: 0.95rem; }
  .begruessung { padding: 2.5rem 0 3.5rem; }
}
