/*
 * „Bald für Sie da“ – Farben wie die Startseite (src/app/globals.css), immer hell (Standard hell auf Wunsch des Auftraggebers).
 * Schrift: Schibsted Grotesk (OFL, fonts/OFL.txt), lokal, nur Latin.
 */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/schibsted-grotesk-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --surface-2: #e9e6de;
  --ink: #2e3438;
  --ink-2: #4b5357;
  --ink-3: #545b5f;
  --line: #dad6cc;
  --accent: #2c6a4d;
  --brand-ink: #2e3438;
  --ph-bg: #ffe066;
  --ph-ink: #2e3438;
  --rand: clamp(1.25rem, 4vw, 3.5rem);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

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

::selection {
  background: color-mix(in srgb, var(--accent) 22%, var(--paper));
}

/* Logo: einfarbig in --brand-ink wie auf der Startseite */
.logo {
  display: block;
  width: 100%;
  height: auto;
  fill: var(--brand-ink);
}

/* Platzhalter in der Vorschau (ohne --release) */
mark.ph {
  background: var(--ph-bg);
  color: var(--ph-ink);
  padding: 0.05em 0.35em;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
  font-weight: 600;
}

/* ---------- Startseite: rein typografisch, eine Spalte ---------- */

.buehne {
  flex: 1;
  display: grid;
  align-content: center;
  padding: clamp(3rem, 10vh, 7rem) var(--rand) clamp(2.5rem, 8vh, 5rem);
}

.spalte {
  width: 100%;
  max-width: 50rem;
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 9vh, 6rem);
}

.start .marke {
  width: min(100%, 34rem);
}

h1 {
  margin: 0;
  font-weight: 600;
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Motto: Herkunft über dem Titel, Versprechen darunter, beides ruhig in Textgröße */
.herkunft {
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-2);
  text-wrap: balance;
}

.motto {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  max-width: 32ch;
  font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.625rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
  text-wrap: balance;
}

.motto span {
  display: block;
}

.motto span + span {
  margin-top: 0.35em;
  font-weight: 400;
  color: var(--ink-2);
}

.satz {
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  max-width: 40ch;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.25rem);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

.kontakt {
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 32rem;
}

.kontakt h2 {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-2);
}

.kontakt dl {
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.kontakt dl > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  align-items: baseline;
}

.kontakt dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.kontakt dd {
  margin: 0;
  font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.25rem);
  font-weight: 500;
  overflow-wrap: anywhere;
}

/* Desktop: Spalte linksbündig, vom Rand eingerückt, viel Luft rechts */
@media (min-width: 56rem) {
  .buehne,
  .start .fuss {
    padding-inline: clamp(3.5rem, 11vw, 11rem) var(--rand);
  }
}

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

.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.5rem var(--rand) 2rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.fuss p {
  margin: 0;
}

.fuss nav {
  display: flex;
  gap: 0.6rem;
}

.fuss a {
  text-decoration: none;
  color: var(--ink-2);
}

.fuss a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Rechtstexte ---------- */

.kopf {
  padding: var(--rand) var(--rand) 0;
}

.kopf .marke {
  display: block;
  width: 11rem;
}

.seite {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  padding: clamp(3rem, 8vw, 5.5rem) var(--rand) clamp(3rem, 6vw, 4.5rem);
  margin: 0 auto;
}

.seite h1 {
  font-size: clamp(2.5rem, 1.8rem + 3vw, 3.75rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.seite section {
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.seite h2 {
  margin: 0 0 0.6rem;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.seite p,
.seite address {
  margin: 0 0 0.85rem;
  color: var(--ink-2);
  font-style: normal;
}

.seite .vorspann {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--ink);
}

.angaben {
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.35rem;
}

.angaben > div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  color: var(--ink-2);
}

.angaben dt {
  color: var(--ink-3);
}

.angaben dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.seite .stand {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.zurueck {
  margin-top: 2.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
