/* greylo.de – Support-Seite
 * Farben, Schriften und Formen nach dem Corporate Design Manual 1.0. */

@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url("fonts/SpaceGrotesk-Medium.ttf") format("truetype"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-display: swap; src: url("fonts/SpaceGrotesk-Bold.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/IBMPlexSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexSans-Medium.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/IBMPlexSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("fonts/IBMPlexMono-Medium.ttf") format("truetype"); }

:root {
  --ink: #0F2436;
  --soft: #3D5568;
  --deep: #0E6BA8;
  --deep-dunkel: #0B5889;
  --aqua: #37B6D9;
  --aqua-hell: #7FD6EC;
  --mist: #EAF4F8;
  --paper: #FBFDFE;
  --coral: #F2705B;
  --sun: #FFC857;

  --flaeche: #FFFFFF;
  --linie: #D6E6EE;
  --feldrand: #B9D0DC;
  --fehler: #B4412C;
  --link: var(--deep);
  --schatten: 0 18px 44px -22px rgb(15 36 54 / 0.35);

  --kopf: "Space Grotesk", "Segoe UI", Arial, sans-serif;
  --text: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  color-scheme: light;
}

html[data-theme="dark"] {
  --ink: #E8F1F8;
  --soft: #A9BFCE;
  --mist: #16283A;
  --paper: #0C1826;
  --flaeche: #12233A;
  --linie: #1E3450;
  --feldrand: #34506B;
  --fehler: #FF9C8A;
  --link: var(--aqua-hell);
  --schatten: 0 18px 44px -22px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--aqua); }

:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
  border-radius: 6px;
}

.rahmen {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sprung {
  position: absolute;
  left: -999rem;
  top: 0.5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--flaeche);
  border-radius: 12px;
}
.sprung:focus { left: 0.5rem; }

/* ---------- Kopfzeile ---------- */
.kopf {
  background: var(--paper);
  border-bottom: 1px solid var(--linie);
}

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo { display: inline-flex; align-items: center; }
.logo img { display: block; height: 32px; width: auto; }
.logo-dunkel { display: none !important; }
html[data-theme="dark"] .logo-hell { display: none; }
html[data-theme="dark"] .logo-dunkel { display: block !important; }

.kopf-rechts { display: flex; align-items: center; gap: 0.5rem; }

.kopf-link {
  padding: 0.45rem 0.8rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
}
.kopf-link:hover { background: var(--mist); }

.thema-knopf {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.thema-knopf:hover { background: var(--mist); }
.thema-knopf svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.thema-knopf .sonne { display: none; }
html[data-theme="dark"] .thema-knopf .sonne { display: block; }
html[data-theme="dark"] .thema-knopf .mond { display: none; }

/* ---------- Bühne ---------- */
.buehne {
  position: relative;
  padding: 3.25rem 0 8.5rem;
  color: #FFFFFF;
  background: linear-gradient(160deg, #0F2436 0%, #123A5C 50%, #0E6BA8 100%);
  overflow: hidden;
}

.overline {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--aqua-hell);
}

h1 {
  margin: 0;
  font-family: var(--kopf);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.einstieg {
  max-width: 34rem;
  margin: 1.1rem 0 0;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #D5E6F1;
}

.buehne-welle {
  position: absolute;
  left: 0;
  bottom: -1px;
  /* Auf schmalen Bildschirmen nicht stauchen: die Welle behält ihre Breite und wird abgeschnitten */
  width: max(100%, 1100px);
  height: 3.5rem;
  fill: var(--paper);
}

/* ---------- Spalten: Formular + Rand ---------- */
.spalten {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 3.25rem;
  align-items: start;
  margin-top: -5.5rem;
  padding-bottom: 4.5rem;
  position: relative;
}

.blatt {
  padding: 2.25rem 2.25rem 2rem;
  background: var(--flaeche);
  border: 1px solid var(--linie);
  border-radius: 18px;
  box-shadow: var(--schatten);
}

.rand {
  display: grid;
  gap: 1.75rem;
  padding-top: 7.75rem;
}

.rand-block { padding-left: 1rem; border-left: 3px solid var(--aqua); }
.rand-block h2 {
  margin: 0 0 0.3rem;
  font-family: var(--kopf);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.rand-block p { margin: 0; font-size: 0.97rem; color: var(--soft); }

/* ---------- Formular ---------- */
.gruppe {
  min-width: 0;
  margin: 0;
  padding: 1.75rem 0 0;
  border: 0;
  border-top: 1px solid var(--linie);
}
.gruppe + .gruppe { margin-top: 1.75rem; }
.blatt > .gruppe:first-of-type { padding-top: 0; border-top: 0; }

legend {
  float: left;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0;
  font-family: var(--kopf);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
legend + * { clear: both; }

.zweispaltig {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.25rem;
}

.feld { margin-bottom: 1.15rem; }
.gruppe > .feld:last-child { margin-bottom: 0; }

.feld label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.97rem;
}

.freiwillig {
  margin-left: 0.35rem;
  font-weight: 400;
  font-size: 0.86rem;
  color: var(--soft);
}

input[type="text"],
input[type="email"],
textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--flaeche);
  border: 1.5px solid var(--feldrand);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea { min-height: 9.5rem; resize: vertical; line-height: 1.5; }

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--deep);
  box-shadow: 0 0 0 4px rgb(55 182 217 / 0.28);
}

input::placeholder { color: var(--soft); opacity: 0.7; }

[aria-invalid="true"] { border-color: var(--coral) !important; }

input[type="file"] {
  display: block;
  width: 100%;
  padding: 0.6rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--soft);
  background: var(--mist);
  border: 1.5px dashed var(--feldrand);
  border-radius: 12px;
}
input[type="file"]::file-selector-button {
  margin-right: 0.8rem;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: var(--flaeche);
  border: 1.5px solid var(--feldrand);
  border-radius: 999px;
  cursor: pointer;
}

.tipp, .klein { margin: 0.35rem 0 0; font-size: 0.88rem; line-height: 1.45; color: var(--soft); }

.feld-fehler {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--fehler);
}

.dateiliste { margin: 0.5rem 0 0; padding: 0; list-style: none; font-size: 0.92rem; }
.dateiliste li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; border-bottom: 1px solid var(--linie); }
.dateiliste li span:last-child { font-family: var(--mono); font-size: 0.82rem; color: var(--soft); white-space: nowrap; }
.dateiliste .zu-gross span:last-child { color: var(--fehler); }

/* Themen als Auswahl-Chips */
.auswahl { display: flex; flex-wrap: wrap; gap: 0.55rem; }

.chip input,
.wahl-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip label {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-weight: 500;
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--flaeche);
  border: 1.5px solid var(--feldrand);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.chip label:hover { border-color: var(--deep); }
.chip input:checked + label { color: #FFFFFF; background: var(--deep); border-color: var(--deep); }
.chip input:focus-visible + label,
.wahl-option input:focus-visible + label { outline: 3px solid var(--aqua); outline-offset: 2px; }

/* Dringlichkeit */
.wahl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }

.wahl-option label {
  display: block;
  height: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--feldrand);
  border-radius: 14px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.wahl-option label strong { display: block; font-family: var(--kopf); font-size: 1.05rem; }
.wahl-option label span { display: block; margin-top: 0.15rem; font-size: 0.9rem; line-height: 1.4; color: var(--soft); }
.wahl-option label:hover { border-color: var(--deep); }
.wahl-option input:checked + label { background: var(--mist); border-color: var(--deep); box-shadow: inset 0 0 0 1px var(--deep); }
.wahl-dringend input:checked + label { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral); }

/* Honigtopf: für Menschen unsichtbar */
.honig { position: absolute; left: -999rem; width: 1px; height: 1px; overflow: hidden; }

/* Abschluss */
.abschluss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--linie);
}
.abschluss .klein { flex: 1 1 16rem; margin: 0; }

.knopf {
  display: inline-block;
  padding: 0.85rem 1.7rem;
  font-family: var(--kopf);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #FFFFFF;
  text-decoration: none;
  background: var(--deep);
  border: 1.5px solid var(--deep);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}
.knopf:hover { background: var(--deep-dunkel); border-color: var(--deep-dunkel); transform: translateY(-1px); }
.knopf:active { transform: translateY(0); }
.knopf[disabled] { opacity: 0.7; cursor: progress; transform: none; }

.knopf-leise { color: var(--ink); background: transparent; border-color: var(--feldrand); }
.knopf-leise:hover { background: var(--mist); border-color: var(--deep); }

/* Meldungen */
.meldung {
  margin-bottom: 1.75rem;
  padding: 0.95rem 1.1rem;
  font-size: 0.97rem;
  color: var(--ink);
  background: rgb(242 112 91 / 0.12);
  border-left: 4px solid var(--coral);
  border-radius: 12px;
}
.meldung p { margin: 0 0 0.4rem; font-weight: 600; }
.meldung ul { margin: 0; padding-left: 1.2rem; }
.meldung a { color: var(--ink); }

/* ---------- Bestätigung ---------- */
.bestaetigung h2 {
  margin: 1rem 0 0.5rem;
  font-family: var(--kopf);
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.bestaetigung p { margin: 0 0 1rem; max-width: 34rem; }

.haken { display: block; }
.haken circle { fill: var(--mist); stroke: var(--aqua); stroke-width: 2.5; }
.haken path {
  fill: none;
  stroke: var(--deep);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: haken 0.45s 0.15s ease-out forwards;
}
html[data-theme="dark"] .haken path { stroke: var(--aqua-hell); }
@keyframes haken { to { stroke-dashoffset: 0; } }

.referenz {
  display: inline-block;
  margin: 0.5rem 0 0.4rem;
  padding: 0.85rem 1.2rem;
  background: var(--mist);
  border-radius: 14px;
}
.referenz dt { font-size: 0.86rem; color: var(--soft); }
.referenz dd { margin: 0.1rem 0 0; font-family: var(--mono); font-weight: 500; font-size: 1.45rem; letter-spacing: 0.04em; }

.aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem !important; }

/* ---------- Fußzeile ---------- */
.fuss { padding: 1.75rem 0; font-size: 0.9rem; color: #B9CEDD; background: #0F2436; }
.fuss-innen { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
.fuss a { color: #DCEAF4; text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss-links { display: flex; gap: 1.25rem; }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 860px) {
  .spalten { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .rand { padding-top: 0; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .buehne { padding: 2.25rem 0 7.5rem; }
  .einstieg { font-size: 1.05rem; }
  .blatt { padding: 1.5rem 1.15rem 1.4rem; border-radius: 16px; }
  .zweispaltig, .wahl { grid-template-columns: minmax(0, 1fr); }
  .kopf-link { display: none; }
  .knopf { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .haken path { stroke-dashoffset: 0; }
}
