/* Gestaltung nach flowdit.ae (wie digitale-checklisten.de). Liegt über style.css und überschreibt Farben, Schrift, Hero. */
:root {
  --fd-petrol: #174a5e;
  --fd-petrol-mittel: #456e7e;
  --fd-petrol-hell: #5d808e;
  --fd-petrol-dunkel: #07161c;
  --fd-gruen: #829900;
  --fd-gruen-hell: #a7c400;
  --fd-limette: #deeb4c;
  --fd-limette-text: #3b4500;
  --fd-text: #0b1f2a;
  --fd-text-2: #5b6570;
  --fd-flaeche: #f2f7ff;
  --fd-linie: #dee2e6;
  --fd-radius: 6px;
  --fd-schrift: system-ui, -apple-system, "Segoe UI", Inter, Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;

  /* Werte aus style.css auf die neue Gestaltung umbiegen */
  --blau: var(--fd-petrol);
  --text: var(--fd-text-2);
  --schrift: var(--fd-schrift);
  --grau-flaeche: var(--fd-flaeche);
  --gelb: var(--fd-limette);
}

body { font-family: var(--fd-schrift); color: var(--fd-text-2); line-height: 1.6; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--fd-gruen); outline-offset: 2px; }

/* ---------- Header und Hero ---------- */
.fd-hero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(1200px 520px at 85% -10%, var(--fd-petrol-hell) 0%, rgba(0, 0, 0, 0) 60%),
    radial-gradient(1200px 520px at -10% 20%, var(--fd-petrol-mittel) 0%, rgba(0, 0, 0, 0) 55%),
    linear-gradient(101deg, var(--fd-petrol) 59.89%, #aaad24 130.33%);
  border-bottom: 10px solid var(--fd-limette);
}
.fd-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 0;
  display: flex;
  align-items: center;
  gap: 24px;
}
.fd-logo { display: block; line-height: 0; }
.fd-logo img { width: 210px; height: auto; }
.fd-menue { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.fd-menue a {
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 14px;
  border-radius: var(--fd-radius);
}
.fd-menue a:hover { color: var(--fd-limette); }
.fd-menue-icon { display: inline-flex; align-items: center; }
.fd-menue-icon svg { width: 22px; height: 22px; }
.fd-icon-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fd-menue a:focus-visible,
.fd-btn:focus-visible,
.fd-burger:focus-visible { outline: 3px solid var(--fd-limette); outline-offset: 2px; }
.fd-burger { display: none; }

.fd-hero-inhalt {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.fd-hero-titel {
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.5;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px;
}
.fd-pill {
  display: inline;
  background: #eef2f5;
  color: var(--fd-petrol);
  font-weight: 900;
  padding: 0 8px;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.fd-hero-lead h3 {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
  color: #eaf3ff;
  margin: 0 0 36px;
  max-width: 560px;
}
.fd-hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.fd-btn {
  display: inline-block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  padding: 13px 24px;
  border-radius: var(--fd-radius);
  transition: background-color .2s, color .2s;
}
.fd-btn-primaer { background: var(--fd-limette); color: var(--fd-limette-text); border: 2px solid var(--fd-limette); }
.fd-btn-primaer:hover { background: #fff; border-color: #fff; color: var(--fd-limette-text); }
.fd-btn-rahmen { background: transparent; color: #fff; border: 2px solid #fff; }
.fd-btn-rahmen:hover { background: #fff; color: var(--fd-petrol); }

/* Person steht wie bei flowdit.ae unten auf der gelbgrünen Kante, die App-Karte überlappt rechts */
.fd-hero-inhalt { padding-bottom: 0; align-items: end; }
.fd-hero-text { padding-bottom: 64px; align-self: center; }
.fd-hero-bild {
  position: relative;
  align-self: end;
  height: 520px;
  max-width: 560px;
  width: 100%;
  justify-self: end;
}
.fd-person {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: none;
}
.fd-ui {
  position: absolute;
  right: 0;
  top: 24px;
  width: 250px;
  height: auto;
  filter: drop-shadow(0 14px 28px rgba(7, 22, 28, .35));
}

/* Schmale Desktops: App-Ausschnitt kleiner und tiefer, damit er das Gesicht nicht verdeckt */
@media (min-width: 1001px) and (max-width: 1200px) {
  .fd-ui { width: 190px; top: 150px; }
}
@media (max-width: 1000px) {
  .fd-hero-inhalt { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }
  .fd-hero-text { padding-bottom: 0; }
  .fd-hero-bild { justify-self: center; height: 460px; }
}
@media (max-width: 800px) {
  .fd-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 0 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .fd-burger span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .fd-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .fd-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .fd-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .fd-menue {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--fd-petrol);
    padding: 8px 16px 16px;
    box-shadow: 0 12px 24px rgba(7, 22, 28, .3);
  }
  .fd-menue.ist-offen { display: flex; }
  .fd-menue a { padding: 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .fd-menue .fd-icon-text { position: static; width: auto; height: auto; margin: 0 0 0 10px; clip: auto; overflow: visible; }
  .fd-nav { padding: 16px 16px 0; }
  .fd-logo img { width: 160px; }
  .fd-hero-inhalt { padding: 28px 16px 0; gap: 24px; }
  .fd-hero-lead h3 { font-size: 18px; margin-bottom: 28px; }
  .fd-hero-bild { height: 380px; }
  .fd-person { left: -8px; }
  .fd-ui { width: 46%; max-width: 190px; top: 16px; }
}
@media (max-width: 420px) {
  .fd-btn { width: 100%; text-align: center; }
}

/* ---------- Inhaltsbereiche ---------- */
main h1, .row-appgrade h2, .row-boxes h2 { font-weight: 700; line-height: 1.2; color: var(--fd-text); }
main h1 { color: var(--fd-petrol); }
main p { line-height: 1.65; }
.row-gray { background: var(--fd-flaeche); }
/* Abstand vor dem Footer in der Flächenfarbe, damit kein weißer Balken entsteht */
.spacer { background: var(--fd-flaeche); }

.btn-yellow {
  background: var(--fd-limette);
  color: var(--fd-limette-text);
  border-radius: var(--fd-radius);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  padding: 15px 24px;
}
.btn-yellow:hover { background: var(--fd-gruen-hell); color: var(--fd-limette-text); }

.col-video img { border-radius: 14px; }

/* Funktionsboxen als Karten wie „Why choose flowdit“ */
.boxes { gap: 24px; max-width: 1100px; }
.box {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  padding: 24px;
  background: #fff;
  border: 2px solid var(--fd-linie);
  border-radius: var(--fd-radius);
  text-align: left;
}
.box-icon {
  justify-content: flex-start;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--fd-gruen-hell);
  font-size: 40px;
}
.box p { margin-top: 16px; color: var(--fd-text-2); }

/* Person */
.person img { border: 0; border-radius: 14px; }
.person-name { color: var(--fd-text); font-weight: 700; }
.person-title { color: var(--fd-gruen); }
.person-content { color: var(--fd-text-2); }

/* ---------- Footer wie flowdit.ae ---------- */
.site-footer {
  background: linear-gradient(160deg, var(--fd-petrol), #091e26 60%, var(--fd-petrol-dunkel));
  border-top: 10px solid var(--fd-limette);
  color: #eaf3ff;
}
.site-footer a:hover { color: var(--fd-limette); }
.contact, .copyright { color: #eaf3ff; }



/* ---------- Feste Seitenränder wie im Hero (wie digitale-checklisten.de) ----------
   Alle Abschnitte nutzen dieselbe Inhaltsbreite (1240 px) und denselben Rand (24 px, mobil 16 px).
   Die linke Kante liegt damit bündig mit dem Logo im Hero. Die vw-Polster aus style.css werden aufgehoben. */
:root { --fd-breite: 1240px; --fd-rand: 24px; --fd-abschnitt: 72px; }
main .row,
.site-footer {
  padding-top: var(--fd-abschnitt);
  padding-bottom: var(--fd-abschnitt);
  padding-left: max(var(--fd-rand), calc((100% - var(--fd-breite)) / 2 + var(--fd-rand)));
  padding-right: max(var(--fd-rand), calc((100% - var(--fd-breite)) / 2 + var(--fd-rand)));
}
.spacer { display: none; }
.row-intro, .row-appgrade { gap: 48px; }
.col-two-fifth { flex: 0 0 40%; }
.col-three-fifth { padding-left: 0; }
.col-image { text-align: left; }
.person { max-width: 920px; margin: 0 auto; }

/* Funktionskarten: Raster innerhalb der Inhaltsbreite */
.boxes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  max-width: none;
}
.box { padding: 22px; }
.box p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; }
.row-boxes h2 { margin-bottom: 40px; }

@media (max-width: 1000px) {
  .boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .box { margin-bottom: 0; padding: 22px; }
  .site-footer { padding-bottom: 32px; }
}
/* Rand wechselt wie im Hero (.fd-nav) bei 800 px auf 16 px, damit die Kanten bündig bleiben */
@media (max-width: 800px) {
  :root { --fd-rand: 16px; }
}
@media (max-width: 640px) {
  :root { --fd-abschnitt: 48px; }
  .boxes { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Zweite Abschnittsüberschrift skaliert wie H1 und Kartenüberschrift (mobil sonst 45 px fett) */
.row-appgrade h2 { font-size: clamp(24px, 2.216vw + 22.85px, 45px); }

/* ---------- Funktionsbild (echte Click-Touren mit Ziffern 1–6): volle Spaltenbreite, vertikal mittig ---------- */
.col-image { display: flex; align-items: center; }
.col-image img { width: 100%; height: auto; }

/* ---------- Textformatierung (wie digitale-checklisten.de) ----------
   Lange Fließtexte etwas größer, mehr Zeilenabstand, begrenzte Zeilenlänge, Silbentrennung. Wortlaut unverändert. */
main .col p,
.person-content {
  font-size: 17px;
  line-height: 1.75;
  color: #46525d;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
main .col p { margin: 0 0 1.25em; max-width: 68ch; }
main h1,
.row-appgrade h2 {
  font-size: clamp(30px, 2.8vw, 40px);
  line-height: 1.2;
  margin-bottom: 24px;
  hyphens: manual;
}
.row-boxes h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.25; }
.box p { font-size: 15.5px; line-height: 1.65; color: #46525d; }
.person-content { max-width: 70ch; margin: 25px auto 0; font-size: 18px; }

.made-in-germany { margin-bottom: 0; }

/* ---------- Bilder größer: breitere Bildspalten am Desktop (zweispaltig ab 1301 px) ---------- */
.row-intro .col-image { flex: 0 0 56%; }
.col-two-fifth { flex: 0 0 46%; }
.col-video a { display: block; width: 100%; }
.col-video img { width: 100%; }

/* ---------- Rezensionen als eigener Bereich über dem Footer (wie digitale-checklisten.de) ---------- */
.fd-stimmen {
  background: var(--fd-flaeche);
  padding: var(--fd-abschnitt) max(var(--fd-rand), calc((100% - var(--fd-breite)) / 2 + var(--fd-rand)));
}
.fd-stimmen .reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.review {
  position: relative;
  margin: 0;
  padding: 24px 24px 56px;
  background: #fff;
  border: 2px solid var(--fd-linie);
  border-radius: var(--fd-radius);
  box-shadow: none;
}
/* dezentes Anführungszeichen als Grafik, kein Text */
.review::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 16px;
  width: 34px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 26'%3E%3Cpath fill='%23deeb4c' d='M0 26V15C0 6 5 1 13 0l1 4c-4 1-7 4-7 9h6v13H0zm20 0V15c0-9 5-14 13-15l1 4c-4 1-7 4-7 9h6v13H20z'/%3E%3C/svg%3E") no-repeat;
  opacity: .9;
}
.review-avatar { position: absolute; left: 24px; top: 24px; width: 52px; height: 52px; margin: 0; border-radius: 50%; object-fit: cover; }
.review-head { position: static; min-height: 52px; padding: 2px 32px 0 66px; }
.review-author { display: block; font-size: 17px; line-height: 1.3; font-weight: 700; color: var(--fd-text) !important; }
.review-author:hover { color: var(--fd-gruen) !important; }
.stars { display: flex; gap: 2px; height: auto; margin-top: 4px; color: var(--fd-gruen-hell); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.review-google { position: absolute; top: 24px; right: 24px; line-height: 0; }
.review-google img { width: 20px; height: 20px; }
.review-text { height: auto; margin-top: 14px; padding: 0; overflow: visible; }
.review-text p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #46525d; }
@media (max-width: 1000px) { .fd-stimmen .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .fd-stimmen .reviews { grid-template-columns: minmax(0, 1fr); gap: 16px; } }
/* Zeilen der Überschriften ausgleichen, damit kein „…“ allein umbricht */
main h1, main h2 { text-wrap: balance; }
/* Rezensionen schließen an den gleichfarbigen Abschnitt darüber an: kein doppelter Abstand */
.fd-stimmen { padding-top: 0; }

/* ---------- Bild und Video laufen am Desktop beim Scrollen durch den Text mit ---------- */
@media (min-width: 1301px) {
  .row-intro, .row-appgrade { align-items: flex-start; }
  .row-intro .col-image, .row-appgrade .col-video {
    position: sticky;
    top: 32px;
    align-self: flex-start;
  }
}

/* ---------- Kopf der Rezensionen: als Google-Rezensionen gekennzeichnet ---------- */
.fd-stimmen-kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.fd-stimmen-logo { flex: 0 0 auto; width: 40px; height: 40px; }
.fd-stimmen-kopf h2 { margin: 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; font-weight: 700; color: var(--fd-text); }
.fd-stimmen-wert { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; max-width: none; font-size: 15.5px; line-height: 1.4; color: #46525d; }
.fd-stimmen-wert .stars { margin: 0; }
@media (max-width: 640px) { .fd-stimmen-kopf { align-items: flex-start; margin-bottom: 24px; } }

/* ---------- Footer: Siegel in einer Zeile, „made in germany“ rechts neben dem Award ---------- */
.footer-siegel { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; grid-column: 1 / 3; }
.site-footer > .footer-col:empty { display: none; }
.footer-siegel .footer-badge { margin: 0; }
.copyright { margin-bottom: 0; }

/* ---------- Rezensionen in Spalten statt Zeilen: kein Leerraum unter kurzen Karten ---------- */
.fd-stimmen .reviews { display: block; column-count: 3; column-gap: 24px; }
.fd-stimmen .review { break-inside: avoid; margin: 0 0 24px; }
@media (max-width: 1000px) { .fd-stimmen .reviews { column-count: 2; } }
@media (max-width: 640px) {
  .fd-stimmen .reviews { column-count: 1; }
  .fd-stimmen .review { margin-bottom: 16px; }
}

/* ---------- Abgleich mit flowdit.ae (Größen, Rundungen, Footer) ----------
   Überschriften in derselben Stufung wie flowdit.ae (Bootstrap-Skala: h1, h2, h4),
   Funktionskarten eckig wie „Why choose flowdit“ (und wie digitale-checklisten.de),
   Buttons 8 px, Bilder 18 px Rundung, Footer ohne gelbe Linie. */
main h1 { font-size: clamp(28px, calc(1.375rem + 1.5vw), 40px); line-height: 1.2; }
.row-appgrade h2,
.row-boxes h2,
.fd-stimmen-kopf h2 { font-size: clamp(24px, calc(1.325rem + .9vw), 32px); line-height: 1.2; }
.box { border-radius: 0; }
.fd-btn, .btn-yellow { border-radius: 8px; }
.col-video img, .person img { border-radius: 18px; }
.site-footer { border-top: 0; }
/* Funktion unter dem Namen: dunkleres Grün für ausreichenden Kontrast (5,1 : 1 statt 3,0 : 1) */
.person-title { color: #5f7000; }
