/* Lokal eingebundene Centimeter-Schriften. Lizenzen im Ordner fonts. */
@font-face {
  font-family: Lora;
  src: url('../fonts/lora-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: Montserrat;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* =============================================
   Centi App – Website für den Tag der offenen Tür
   Farben und Schrift passend zum Plakat
   Aufbau: zuerst Handy-Ansicht, ab 800 px breiter (siehe @media)
   ============================================= */

/* ---------- Farben ---------- */
:root {
  --gelb: #F3AD00;       /* Centimeter-Gelb */
  --gelb-hell: #FFE39D;  /* helles Gelb aus der App */
  --creme: #FFF8EE;      /* Hintergrund wie am Plakat */
  --weiss: #FFFFFF;
  --dunkel: #231E19;     /* Schrift und dunkle Flächen */
  --grau: #6F6252;       /* graue Schrift */
  --linie: #DECDB2;      /* Rahmen und Linien */
  color-scheme: light;
}

/* ---------- Grundeinstellungen ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth; /* weiches Scrollen beim Klick im Menü */
}

body {
  margin: 0;
  background: var(--creme);
  color: var(--dunkel);
  font-family: Montserrat, Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

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

h1, h2, h3, p, figure, ul, ol {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.15;
}

a:focus-visible {
  outline: 3px solid var(--dunkel);
  outline-offset: 3px;
}

/* Inhalt mittig und höchstens 1200 px breit.
   env(...) = Abstand für Handys mit Notch */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* kleine Überschrift über den Titeln */
.label {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--grau);
}

h2 {
  margin-top: 8px;
  margin-bottom: 28px;
  font-size: 32px;
}

/* ---------- Kopfzeile ---------- */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

.logos img {
  width: auto;
  height: 44px;
}

.menu {
  display: flex;
  gap: 22px;
}

.menu a {
  padding: 4px 0;
  border-bottom: 3px solid transparent;
  color: var(--dunkel);
  font-weight: bold;
  text-decoration: none;
}

.menu a:hover {
  border-bottom-color: var(--gelb);
}

/* ---------- Startbereich ---------- */
/* Gelbe Fläche. Unten wird das Bild massband.svg nebeneinander
   wiederholt, dadurch entsteht die Maßband-Kante. */
.hero {
  background-color: var(--gelb);
  background-image: url("../bilder/massband.svg");
  background-repeat: repeat-x;
  background-position: left bottom;
  padding-top: 36px;
}

.hero-inner {
  display: grid;
  gap: 36px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: var(--weiss);
  font-size: 14px;
  font-weight: bold;
}

.hero h1 {
  margin-top: 18px;
  font-size: 34px;
  overflow-wrap: break-word;
}

.hero-intro {
  margin-top: 16px;
  max-width: 32em;
  font-size: 19px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* dunkler Button wie "Code scannen" in der App */
.button {
  display: inline-block;
  padding: 14px 24px;
  border: 2px solid var(--dunkel);
  border-radius: 12px;
  background: var(--dunkel);
  color: var(--weiss);
  font-weight: bold;
  text-decoration: none;
}

.button:hover {
  background: var(--weiss);
  color: var(--dunkel);
}

.button-light {
  background: transparent;
  color: var(--dunkel);
}

/* Handy ragt unten über die gelbe Fläche hinaus */
.hero-phone {
  position: relative;
  z-index: 1;
  width: 230px;
  margin: 0 auto -40px;
  filter: drop-shadow(0 18px 28px rgba(35, 30, 25, 0.35));
}

/* ---------- Abschnitte ---------- */
.section {
  padding-top: 80px;
  padding-bottom: 72px;
}

.section-white {
  background: var(--weiss);
}

/* Worum geht's? – Text und Foto */
.two-columns {
  display: grid;
  gap: 40px;
}

.two-columns p + p {
  margin-top: 16px;
}

.lead {
  font-size: 20px;
}

.photo {
  position: relative;
}

.photo img {
  width: 100%;
  border-radius: 20px;
}

.photo-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--gelb);
  font-weight: bold;
}

/* So funktioniert's – drei Schritte */
.steps {
  display: grid;
  gap: 20px;
  padding: 0;
  list-style: none;
}

.step {
  padding: 28px;
  border-radius: 20px;
  background: var(--creme);
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--gelb);
  font-family: Lora, Georgia, serif;
  font-size: 32px;
  font-weight: 700;
}

.step h3 {
  margin-top: 20px;
  font-size: 24px;
}

.step p {
  margin-top: 8px;
  color: var(--grau);
}

/* Karten: Rangliste und Speisekarte */
.cards {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.card {
  padding: 14px 14px 28px;
  border-radius: 20px;
  background: var(--creme);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
}

/* ">" = nur direkte Kinder der Karte, nicht die Texte in der Rangliste */
.card > h3 {
  margin: 20px 12px 0;
  font-size: 24px;
}

.card > p {
  margin: 8px 12px 0;
  color: var(--grau);
}

/* gezeichnete Rangliste */
.ranking {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px 28px;
  background: var(--dunkel);
}

.ranking-title {
  color: var(--gelb-hell);
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ranking ol {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.ranking li {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 12px;
  color: var(--creme);
  font-size: 20px;
  font-weight: bold;
}

.bar {
  display: block;
  height: 16px;
  border-radius: 8px;
  background: var(--gelb);
}

.later {
  margin-top: 32px;
  color: var(--grau);
}

.later strong {
  color: var(--dunkel);
}

/* Team */
.team {
  display: grid;
  gap: 20px;
}

.person {
  padding: 28px;
  border: 2px solid var(--linie);
  border-radius: 20px;
  background: var(--weiss);
}

.initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--gelb);
  font-family: Lora, Georgia, serif;
  font-size: 24px;
  font-weight: 700;
}

.person h3 {
  margin-top: 6px;
  font-size: 26px;
}

.person ul {
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.person li {
  position: relative;
  margin-top: 8px;
  padding-left: 20px;
  color: var(--grau);
}

/* gelbes Quadrat als Aufzählungszeichen */
.person li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--gelb);
}

.facts {
  display: grid;
  gap: 20px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 2px solid var(--linie);
}

.fact {
  margin-top: 4px;
  font-size: 20px;
  font-weight: bold;
}

/* ---------- Fußzeile ---------- */
.footer {
  padding-top: 40px;
  padding-bottom: 40px;
  background: var(--dunkel);
  color: var(--creme);
  font-size: 15px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.footer img {
  width: 120px;
}

.footer strong {
  color: var(--gelb);
}

/* ---------- Breitere Bildschirme (ab 800 px) ---------- */
@media (min-width: 800px) {
  body {
    font-size: 18px;
  }

  h2 {
    font-size: 46px;
  }

  .logos img {
    height: 54px;
  }

  .hero {
    padding-top: 64px;
  }

  /* zwei Spalten: Text links, Handy rechts */
  .hero-inner {
    grid-template-columns: 1fr 340px;
    align-items: center;
    gap: 56px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .hero-intro {
    font-size: 22px;
  }

  .hero-phone {
    width: 340px;
    margin-bottom: -70px;
  }

  .section {
    padding-top: 120px;
    padding-bottom: 100px;
  }

  .two-columns {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
  }

  .steps,
  .team,
  .facts {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps,
  .team {
    gap: 28px;
  }

  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .facts div + div {
    padding-left: 24px;
    border-left: 2px solid var(--linie);
  }
}

/* Wer weniger Bewegung eingestellt hat, bekommt kein weiches Scrollen */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Nur Schriftanpassung und Screenshot-Platzhalter ergänzen das Original. */
h1, h2 { font-family: Lora, Georgia, serif; }
.hero-phone { max-width: 100%; }
.app-screenshot { width: 100%; height: auto; }
.app-screenshot[hidden], .screenshot-placeholder[hidden] { display: none; }
.screenshot-placeholder {
  aspect-ratio: 782 / 1591;
  padding: 28px;
  border: 2px dashed var(--grau);
  border-radius: 20px;
  background: var(--creme);
  color: var(--dunkel);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}
.screenshot-placeholder strong { font-family: Lora, Georgia, serif; font-size: 24px; }
.screenshot-placeholder p { font-size: 15px; }

/* iOS: extend the existing footer into the bottom safe area and overscroll.
   The visible header and content retain the original light background. */
html, body { background-color: var(--dunkel); }
#app {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.header, main { background-color: var(--creme); }
.header { padding-top: env(safe-area-inset-top, 0px); }
main { flex: 1 0 auto; }
.footer { padding-bottom: max(40px, env(safe-area-inset-bottom, 0px)); }
/* Keep transparent phone images free of a rectangular container shadow. */
.hero-phone {
  filter: none;
  border-radius: 0;
  box-shadow: none;
}
