/* hallomut.de — Impressum, Datenschutz, AGB, Widerruf, Kündigung, Kontakt.
 *
 * Eigene Datei statt eines gemeinsamen Stylesheets mit der Startseite: Die
 * Startseite ist eine Werbefläche mit großen Versalien, diese Seiten sind
 * Lesetexte, die jemand im Zweifel im Streitfall durchgeht. Gleiche Farben und
 * Schriften, andere Größen — Überschriften laufen hier in gemischter
 * Schreibweise, weil Versalien über mehrere Zeilen schlecht lesbar sind.
 *
 * Die Farbwerte sind dieselben Tokens wie in start.css. Wer eine ändert,
 * ändert sie in beiden Dateien und in apps/hallomut/lib/theme.ts.
 */

:root {
  color-scheme: dark;

  --bg: #090705;
  --bg-raised: #120d09;
  --card: rgb(255 255 255 / 4%);
  --border: rgb(255 154 77 / 16%);
  --border-strong: rgb(255 154 77 / 34%);

  --fg: #edf5ef;
  --muted: #9fb3a6;
  --subtle: #74877c;

  --accent: #ff9a4d;
  /* Zwei Werte, die nur die App braucht (apps/hallomut/lib/theme.ts liest sie
     als Quelle): der Rahmen als deckendes Hex und der weiche Akzentton. */
  --line: #2a211a;
  --accent-soft: #ffb273;
  --accent-deep: #ff5f1f;
  --accent-ink: #1a0a00;
  --grad: linear-gradient(135deg, #ff5f1f 0%, #ffa85c 100%);

  --shell: min(760px, calc(100% - 2.5rem));
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: Archivo, "Helvetica Neue", system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

a { color: var(--accent); }
a:hover { color: var(--accent-deep); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  padding: .7rem 1.1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 10px 0;
}

.skip-link:focus { left: 0; }

/* ---------- Kopfzeile ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(9 7 5 / 88%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-shell {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-block: .8rem;
}

.brand {
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  color: var(--fg);
  font-family: "Archivo Black", Archivo, sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand span span { color: var(--accent); }

/* Der Punkt neben dem Namen — dasselbe Zeichen wie auf der Startseite. */
.brand-mark {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px rgb(255 154 77 / 70%);
  font-size: 0;
  flex: none;
}

.site-nav { display: flex; align-items: center; gap: 1.3rem; font-size: .92rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--accent); }

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  border: 1px solid var(--border-strong);
  color: var(--fg) !important;
}

.nav-cta:hover,
.button:hover { background: var(--card); color: var(--accent) !important; }

.button-primary {
  background: var(--grad);
  border-color: transparent;
  color: var(--accent-ink) !important;
  padding: .8rem 1.5rem;
  font-size: .97rem;
  box-shadow: 0 6px 26px rgb(255 95 31 / 35%);
}

.button-primary:hover { color: var(--accent-ink) !important; transform: translateY(-1px); }

.menu-button {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.6rem;
  height: 2.4rem;
  padding: 0 .55rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}

.menu-button span { display: block; height: 2px; border-radius: 2px; background: var(--fg); }

/* ---------- Textseiten ---------- */

.legal-main { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }

.section-shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow span { width: 1.6rem; height: 1px; background: currentColor; }

.legal-shell h1 {
  margin: 0 0 .6rem;
  font-family: "Archivo Black", Archivo, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.legal-shell h2 {
  margin: 2.6rem 0 .7rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.legal-shell h3 {
  margin: 1.8rem 0 .5rem;
  font-size: 1.08rem;
  font-weight: 700;
}

.legal-shell p,
.legal-shell li,
.legal-shell address { color: var(--muted); }

/* Rechtstexte sind voller Bandwürmer („Auftragsverarbeitungsverträge") und
   langer Adressen. Am Handy ragen die aus ihrer Box heraus, ohne dass die Box
   selbst breiter wird — die Seite lässt sich dann seitlich schieben, obwohl
   jedes Element korrekt liegt. Deshalb hier ausdrücklich Silbentrennung. */
.legal-shell p,
.legal-shell li,
.legal-shell address,
.legal-shell h1,
.legal-shell h2,
.legal-shell h3,
.legal-table th,
.legal-table td {
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal-shell p { margin: 0 0 1rem; }
.legal-shell address { font-style: normal; margin-bottom: 1rem; }
.legal-shell ul,
.legal-shell ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.legal-shell li { margin-bottom: .45rem; }
.legal-shell strong { color: var(--fg); }

.legal-updated {
  font-family: "IBM Plex Mono", monospace;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--subtle) !important;
  margin-bottom: 2rem !important;
}

/* Breite Tabellen scrollen in ihrem eigenen Kasten, damit die Seite selbst
   nicht seitlich wandert. */
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  min-width: 32rem;
}

.legal-table th,
.legal-table td {
  padding: .7rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}

.legal-table th { color: var(--fg); font-weight: 700; background: var(--card); }
.legal-table tr:last-child td { border-bottom: none; }

.legal-note {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  font-size: .95rem;
}

.legal-note strong { color: var(--fg); }

/* ---------- Kontaktformular ---------- */

.contact-form { display: grid; gap: 1.1rem; margin-top: 1.5rem; }

.contact-field { display: grid; gap: .4rem; }

.contact-field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--subtle);
}

.contact-field input,
.contact-field textarea,
.contact-field select {
  font: inherit;
  padding: .75rem .9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-raised);
  color: var(--fg);
}

.contact-field textarea { min-height: 9rem; resize: vertical; }

.contact-field input::placeholder,
.contact-field textarea::placeholder { color: var(--subtle); }

.contact-privacy { font-size: .88rem; color: var(--subtle); }

.contact-status {
  padding: .9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--card);
  font-size: .95rem;
  color: var(--muted);
}

.contact-success { border-color: var(--accent); color: var(--fg); }

/* Honeypot gegen Formular-Roboter: für Menschen unsichtbar, aber nicht
   display:none — sonst füllen manche Roboter ihn erst recht aus. */
.contact-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2.2rem 3rem;
  font-size: .9rem;
  color: var(--subtle);
}

.footer-grid {
  width: min(1080px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.footer-brand { margin-right: auto; }

.footer-note {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.footer-legal { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.footer-legal a { color: var(--subtle); text-decoration: none; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- Schmale Fenster ---------- */

@media (max-width: 860px) {
  .menu-button { display: inline-flex; }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem 0 1rem;
    background: rgb(9 7 5 / 97%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: .85rem 1.25rem;
    border-top: 1px solid var(--border);
  }

  .nav-cta { margin: .6rem 1.25rem 0; justify-content: center; }

  .footer-grid { flex-direction: column; align-items: flex-start; }
  .footer-brand { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
