/* Launch-Seite — Gestaltung nach dem CI der Kanzlei, siehe CI.md.
   Nur die zwei Markenfarben sind gesetzt, alles andere ist daraus gerechnet. */

:root {
  --rot: #82122f;        /* PANTONE 202 C         · RGB 130/18/47   */
  --grau: #999898;       /* PANTONE Cool Gray 9 C · RGB 153/152/152 */
  --rot-dunkel: #5e0d22; /* -28 % — Hover        */
  --rot-ton: #e4cbd1;    /*  22 % Tint — Text auf Bordeaux */
  --schwarz: #1a1919;
  --hell: #d6d5d5;
  --linie: rgba(255, 255, 255, 0.16);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--schwarz);
  color: #fff;
  font: 400 17px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Die beiden Balken zitieren den Briefbogen: oben ein schmaler, unten ein
   breiter. Dort sind es 4,48 mm und 23 mm auf 297 mm Blatthöhe. */
.balken-oben { height: 8px; background: var(--rot); }
.balken-unten { height: 40px; background: var(--rot); }

.buehne {
  position: relative;
  min-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Hintergrundbild in Graustufen — so bleibt das Bordeaux die einzige Farbe. */
.bild { position: absolute; inset: 0; z-index: 0; }
.bild img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.04) brightness(0.86);
}
.bild::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(26,25,25,0.55) 0%, rgba(26,25,25,0.34) 42%, rgba(26,25,25,0.90) 100%),
    linear-gradient(90deg, rgba(26,25,25,0.72) 0%, rgba(26,25,25,0.10) 66%);
}

.inhalt {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: clamp(48px, 7vw, 88px);
  padding: clamp(32px, 5vw, 64px) clamp(24px, 6.6vw, 96px) clamp(40px, 5vw, 72px);
  max-width: 1440px; margin: 0 auto; width: 100%;
}

.logo { width: min(280px, 62vw); height: auto; display: block; }

/* Spaltenbreite in Pixeln, damit die grosse Ueberschrift zweizeilig bleibt --
   ein Mass in ch richtet sich nach der Grundschrift, nicht nach der Headline. */
.mitte { max-width: 660px; display: flex; flex-direction: column; gap: 22px; }

/* Doppelbalken aus dem Logo: Verhältnis 1 : 0,63 : 1,92 */
.marke { display: flex; align-items: center; gap: 12px; color: var(--rot-ton); }
.marke i {
  flex: 0 0 auto; width: 5.84px; height: 13px;
  background: linear-gradient(to right,
    currentColor 0 2px, transparent 2px 3.26px, currentColor 3.26px);
}
.marke span {
  font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 200; line-height: 1.06; letter-spacing: -0.02em;
  text-wrap: balance;
}
.lead { margin: 0; max-width: 46ch; font-size: clamp(17px, 1.5vw, 19px); font-weight: 300; color: var(--hell); }

/* Zugang */
.zugang { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.zugang form { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.feld { display: flex; flex-direction: column; gap: 7px; flex: 1 1 220px; }
.feld label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--grau);
}
.feld input {
  width: 100%;
  background: transparent; color: #fff;
  border: 0; border-bottom: 1px solid rgba(255,255,255,0.42);
  padding: 10px 2px; font: inherit; font-weight: 300;
  transition: border-color 0.3s var(--ease);
}
.feld input:focus { outline: none; border-bottom-color: var(--rot-ton); }
.feld input::placeholder { color: rgba(255,255,255,0.32); }

button {
  flex: 0 0 auto;
  background: var(--rot); color: #fff;
  border: 0; padding: 13px 30px;
  font: inherit; font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s var(--ease), transform 0.2s var(--ease);
}
button:hover { background: var(--rot-dunkel); }
button:active { transform: scale(0.985); }

.fehler {
  font-size: 14px; font-weight: 300; color: var(--rot-ton);
  border-left: 2px solid var(--rot); padding-left: 12px;
}

/* Fußbereich */
.fuss {
  display: flex; flex-wrap: wrap; gap: 28px 56px;
  align-items: flex-end; justify-content: space-between;
  border-top: 1px solid var(--linie); padding-top: 26px;
}
.kontakt { display: flex; flex-wrap: wrap; gap: 10px 44px; font-size: 15px; font-weight: 300; color: var(--hell); }
.kontakt div { display: flex; flex-direction: column; gap: 3px; }
.kontakt b { font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grau); }
.rechtliches { display: flex; gap: 26px; font-size: 13px; font-weight: 300; }

/* Agenturhinweis. Eigene Zeile unter dem Fussbereich: als drittes Element in
   der Reihe zoege er die Kontaktangaben auseinander. flex-basis 100% erzwingt
   den Umbruch, ohne dass der Fussbereich seine Ausrichtung verliert. */
.agentur { flex: 0 0 100%; margin: 0; font-size: 12px; font-weight: 300; color: var(--grau); }
.agentur a { color: inherit; border-bottom: 1px solid rgba(255, 255, 255, 0.22); }
.agentur a:hover { color: #ffffff; border-bottom-color: #ffffff; }
/* Auf den Rechtstexten steht heller Grund -- dort waere die helle Fassung
   unsichtbar, und der Hinweis steht dort ausserhalb eines Flex-Kastens. */
.textseite .agentur { flex: none; margin-top: clamp(28px, 4vw, 40px); color: #626161; }
.textseite .agentur a { color: var(--rot); border-bottom-color: rgba(130, 18, 47, 0.3); }
.textseite .agentur a:hover { color: var(--rot-dunkel); border-bottom-color: var(--rot-dunkel); }

a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: border-color 0.3s var(--ease); }
a:hover { border-bottom-color: currentColor; }

@media (max-width: 700px) {
  .inhalt { gap: 40px; }
  .fuss { flex-direction: column; align-items: flex-start; gap: 22px; }
  .zugang form { flex-direction: column; align-items: stretch; }
  /* In Spaltenrichtung wuerde flex-grow das Feld senkrecht aufziehen. */
  .feld { flex: 0 0 auto; }
  button { width: 100%; }
}

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */
/* Pflichtangaben müssen ohne Passwort erreichbar sein — sie liegen deshalb
   bewusst außerhalb des Gates. */
.textseite { background: #fff; color: var(--schwarz); min-height: calc(100vh - 48px); }
.textseite .rahmen { max-width: 760px; margin: 0 auto; padding: clamp(40px, 7vw, 88px) 24px clamp(56px, 7vw, 96px); }
.textseite .logo { width: min(240px, 62vw); margin-bottom: clamp(36px, 6vw, 64px); }
.textseite h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 200; letter-spacing: -0.015em; margin: 0 0 10px; }
.textseite .lead { color: #626161; margin: 0 0 8px; }
.textseite h2 {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rot); margin: clamp(38px, 6vw, 56px) 0 14px;
}
.textseite h2::before {
  content: ""; flex: 0 0 auto; width: 5.84px; height: 13px;
  background: linear-gradient(to right, var(--rot) 0 2px, transparent 2px 3.26px, var(--rot) 3.26px);
}
.textseite p { margin: 0 0 14px; font-weight: 300; overflow-wrap: break-word; }
.textseite .karte { border: 1px solid #e3e1e1; padding: clamp(20px, 4vw, 30px); margin-bottom: 8px; }
.textseite dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 28px; font-weight: 300; }
.textseite dt { color: #626161; }
.textseite dd { margin: 0; }
.textseite .klein { font-size: 14px; color: #626161; }
.textseite a { color: var(--rot); border-bottom-color: rgba(130,18,47,0.3); }
.textseite .zurueck { display: inline-block; margin-top: clamp(36px, 6vw, 56px); font-size: 13px; color: #626161; }
@media (max-width: 560px) {
  .textseite dl { grid-template-columns: 1fr; gap: 2px; }
  .textseite dt { margin-top: 10px; }
}
