/* Layout der Startseite. Wird von index.html UND index.en.html geladen —
   Farben, Schrift und Form kommen aus ci.css. */

  /* Seitenspezifisches Layout. Farben, Schrift und Form kommen aus ci.css. */

.abschnitt { padding-block: var(--sektion); }
.abschnitt + .abschnitt:not(.dunkel) { border-top: 1px solid var(--linie); }

/* --- Kopf und Hero --- */

.hero { background: var(--tiefsee); color: var(--segeltuch); }
.hero .bahn { display: flex; flex-direction: column; }
.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem 0;
  flex-wrap: wrap;
}
.kopf .lockup { width: 9.5rem; height: auto; color: var(--segeltuch); display: block; }
.kopf a.sprung {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dunst-hell);
  text-decoration: none;
  border-bottom: 1px solid var(--linie-dunkel);
  padding-bottom: 2px;
}
.kopf a.sprung:hover { color: var(--messing-hell); border-color: currentColor; }
.kopf-rechts { display: flex; align-items: center; gap: 1.25rem 1.75rem; flex-wrap: wrap; }
/* Sprachumschalter: die aktive Sprache ist Text, die andere ein Link. */
.sprachen { display: inline-flex; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; }
.sprachen .aktiv { color: var(--segeltuch); }
.sprachen a { color: var(--dunst-hell); text-decoration: none; }
.sprachen a::before { content: "/"; margin-right: 0.5rem; color: var(--tiefsee-weich); }
.sprachen a:hover { color: var(--messing-hell); }

.hero-inhalt {
  padding-block: clamp(3.5rem, 9vw, 6rem) clamp(3rem, 7vw, 5rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 54rem;
}
.hero h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}
.hero .lead { max-width: 44ch; }
.aktionen { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.beleg {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--dunst-hell);
  text-decoration: none;
  border-bottom: 1px solid var(--linie-dunkel);
  padding-bottom: 2px;
}
.beleg:hover { color: var(--messing-hell); border-color: currentColor; }

/* Die vier Zettel, die der Rest der Seite einen nach dem anderen wegräumt. */
.zettel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem 1rem;
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
  border-top: 1px solid var(--linie-dunkel);
  padding-top: clamp(2rem, 4vw, 3rem);
}
.zettel figure { margin: 0; display: flex; flex-direction: column; gap: 0.85rem; color: var(--segeltuch); }
.zettel svg { width: 100%; max-width: 7.5rem; height: auto; }
.zettel figcaption {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--dunst-hell);
  overflow-wrap: anywhere;
}

/* --- Problemabschnitte --- */

.problem .bahn {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
.problem .text { display: flex; flex-direction: column; gap: 1.1rem; }
.problem h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  max-width: 20ch;
  text-wrap: balance;
}
.problem p { margin: 0; max-width: 54ch; text-wrap: pretty; }
.problem .bild { color: var(--tiefsee); display: grid; place-items: center; }
.problem .bild svg { width: 100%; max-width: 22rem; height: auto; }

.statt { margin: 0.6rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.statt li { display: flex; gap: 0.85rem; align-items: baseline; max-width: 52ch; }
/* Messing als Fläche, nicht als Text — auf Segeltuch wäre es unlesbar. */
.statt li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 3px;
  background: var(--messing);
  flex: none;
  transform: translateY(-0.1rem);
}
.statt-marke { margin-bottom: -0.2rem; }

@media (min-width: 62rem) {
  .problem .bahn { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .problem.gedreht .bild { order: -1; }
}

/* --- Übersicht --- */

.uebersicht .bahn { display: flex; flex-direction: column; gap: 2.5rem; }
.raster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--linie);
  border: 1px solid var(--linie);
  border-radius: var(--radius-l);
  overflow: hidden;
}
.raster div {
  background: var(--papier);
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.raster dt { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dunst); }
.raster dd { margin: 0; font-size: 0.9375rem; line-height: 1.5; }

/* --- Referenz --- */

.referenz .bahn {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.referenz .text { display: flex; flex-direction: column; gap: 1.1rem; }
.referenz h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.referenz p { margin: 0; max-width: 52ch; color: var(--dunst-hell); text-wrap: pretty; }
.referenz .bild { color: var(--segeltuch); display: grid; place-items: center; }
.referenz .bild svg { width: 100%; max-width: 20rem; height: auto; }
@media (min-width: 62rem) {
  .referenz .bahn { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* --- Preis --- */

.preis .bahn {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.preis .text { display: flex; flex-direction: column; gap: 1.1rem; }
.preis h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}
.preis p { margin: 0; max-width: 50ch; text-wrap: pretty; }

/* Die Rechenzeile ist das Argument: dieselbe Formel für jede Größe. */
.rechnung {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-l);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
}
.rechnung .zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.9rem;
  border-top: 1px solid var(--linie);
  font-family: var(--mono);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-variant-numeric: tabular-nums;
}
.rechnung .zeile.kopf {
  border-top: 0;
  padding-top: 0;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dunst);
}
.rechnung .zeile:last-child { padding-bottom: 0; }

@media (min-width: 62rem) {
  .preis .bahn { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

/* --- Kontakt --- */

.kontakt .bahn { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.kontakt .text { display: flex; flex-direction: column; gap: 1.1rem; }
.kontakt h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.kontakt p { margin: 0; max-width: 46ch; }
form { display: flex; flex-direction: column; gap: 1.1rem; }
.paar { display: flex; flex-direction: column; gap: 0.4rem; }
label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dunst); }
input, textarea {
  font: inherit;
  color: var(--tiefsee);
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-m);
  padding: 0.75rem 0.9rem;
  width: 100%;
}
input:focus, textarea:focus { border-color: var(--tiefsee); }
textarea { min-height: 8rem; resize: vertical; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { font-size: 0.9375rem; min-height: 1.5rem; margin: 0; }
.status.fehler { color: var(--signal); }
.status.gut { color: var(--seegruen); }
@media (min-width: 62rem) {
  .kontakt .bahn { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* --- Fuß --- */

footer { background: var(--tiefsee); color: var(--dunst-hell); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
footer .bahn { display: flex; flex-wrap: wrap; gap: 1.75rem 2.5rem; align-items: center; justify-content: space-between; }
footer .lockup { width: 7.5rem; height: auto; color: var(--segeltuch); display: block; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; }
footer a { color: var(--dunst-hell); text-decoration: none; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; border-bottom: 1px solid var(--linie-dunkel); padding-bottom: 2px; }
footer a:hover { color: var(--messing-hell); border-color: currentColor; }
footer .herkunft { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; }
