/*
 * Gestaltung der Website. Diese Datei gehört dem Agenten; der Editor schreibt
 * nie hinein (seine Datei ist styles/editor.css).
 *
 * Farben, Schrift und Abstände stehen als Variablen in :root — wer das Aussehen
 * ändert, ändert zuerst sie, nicht einzelne Regeln weiter unten. Keine
 * externen Ressourcen: Schriften kommen aus dem System, Bilder aus assets/.
 */

:root {
  /* Farben */
  --color-bg: #fbfaf7;
  --color-surface: #ffffff;
  --color-surface-2: #f2efe8;
  --color-text: #1d2024;
  --color-muted: #5b6069;
  --color-border: #e3dfd6;
  --color-accent: #1f4e79;
  --color-accent-hover: #173b5c;
  --color-accent-soft: #e2eaf3;
  --color-on-accent: #ffffff;

  /* Schrift */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-heading: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  --leading: 1.65;

  /* Abstände und Formen */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section-pad: clamp(3.5rem, 2rem + 6vw, 7rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --max-width: 72rem;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(29 32 36 / 0.04), 0 8px 24px rgb(29 32 36 / 0.06);
}

/* ── Grundlage ─────────────────────────────────────────────────────────── */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p, ul, ol, blockquote, figure {
  margin: 0;
}

p {
  text-wrap: pretty;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-underline-offset: 0.18em;
}

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

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section-pad);
}

.section--alt {
  background: var(--color-surface-2);
}

.section__head {
  max-width: 40rem;
  margin-bottom: var(--space-7);
}

.section__head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-4);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section__title {
  font-size: var(--text-2xl);
}

.section__lead {
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 10;
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: var(--space-4);
}

/* ── Knöpfe ────────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--color-accent);
  border-radius: 999px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-on-accent);
}

.button--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.button--ghost:hover {
  background: var(--color-surface);
  border-color: var(--color-text);
  color: var(--color-text);
}

.button--light {
  background: var(--color-on-accent);
  border-color: var(--color-on-accent);
  color: var(--color-accent);
}

.button--light:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent-soft);
  color: var(--color-accent-hover);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ── Kopfzeile ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(251 250 247 / 0.88);
  border-bottom: 1px solid var(--color-border);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-5);
  min-height: 4.25rem;
  padding-block: var(--space-3);
}

.brand {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  text-decoration: none;
}

.brand:hover {
  color: var(--color-text);
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--color-muted);
  font-size: 0.975rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-text);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(3rem, 1.5rem + 7vw, 7.5rem);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.hero__title {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 34rem;
  margin-top: var(--space-5);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

.hero__media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow);
}

/* ── Merkmale ──────────────────────────────────────────────────────────── */

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-5);
  padding: 0;
  list-style: none;
}

.card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.card__mark {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: var(--space-5);
  border-radius: 50%;
  background: var(--color-accent-soft);
  box-shadow: inset 0 0 0 0.6rem var(--color-accent-soft), inset 0 0 0 2.5rem var(--color-accent);
}

.card__title {
  font-size: var(--text-lg);
}

.card__text {
  margin-top: var(--space-3);
  color: var(--color-muted);
}

/* ── Text und Bild ─────────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 5rem);
}

.split--reverse .split__media {
  order: 2;
}

.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

.split__text p + p {
  margin-top: var(--space-4);
}

.split__text .section__title + p {
  margin-top: var(--space-5);
}

.checklist {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 1.75rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  transform: rotate(-45deg);
}

/* ── Stimmen ───────────────────────────────────────────────────────────── */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-5);
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.quote blockquote p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 1.5;
}

.quote figcaption {
  display: flex;
  flex-direction: column;
  font-size: var(--text-sm);
}

.quote__name {
  font-weight: 600;
}

.quote__role {
  color: var(--color-muted);
}

/* ── Aufruf ────────────────────────────────────────────────────────────── */

.cta__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5) var(--space-7);
  padding: clamp(2rem, 1rem + 4vw, 4rem);
  background: var(--color-accent);
  border-radius: calc(var(--radius) * 1.5);
  color: var(--color-on-accent);
}

.cta__text {
  max-width: 36rem;
}

.cta__title {
  font-size: var(--text-xl);
}

.cta__lead {
  margin-top: var(--space-3);
  opacity: 0.85;
}

/* ── Kontakt ───────────────────────────────────────────────────────────── */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-5);
}

.contact__label {
  margin-bottom: var(--space-2);
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact__value {
  font-size: var(--text-lg);
  overflow-wrap: anywhere;
}

/* ── Fließtext (Impressum, Datenschutz, Artikel) ───────────────────────── */

.prose {
  max-width: 44rem;
}

.prose h1 {
  font-size: var(--text-2xl);
}

.prose h2 {
  margin-top: var(--space-7);
  font-size: var(--text-xl);
}

.prose p {
  margin-top: var(--space-4);
}

.prose h1 + p {
  margin-top: var(--space-5);
  color: var(--color-muted);
  font-size: var(--text-lg);
}

/* ── Fußzeile ──────────────────────────────────────────────────────────── */

.site-footer {
  padding-block: var(--space-7);
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--color-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-text);
}

/* ── Fehlerseite ───────────────────────────────────────────────────────── */

.notfound {
  display: grid;
  place-items: center;
  min-height: 60vh;
  text-align: center;
}

.notfound__code {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  line-height: 1;
}

.notfound .section__lead {
  margin-inline: auto;
  max-width: 30rem;
}

.notfound .actions {
  justify-content: center;
}

/* ── Schmale Bildschirme ───────────────────────────────────────────────── */

@media (max-width: 52rem) {
  .hero__inner,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .split--reverse .split__media {
    order: 0;
  }

  .hero__media img {
    aspect-ratio: 16 / 10;
  }

  .section__head {
    margin-bottom: var(--space-6);
  }
}

@media (max-width: 30rem) {
  .actions .button {
    flex: 1 1 100%;
  }

  .cta__box .button {
    width: 100%;
  }
}

/* ── Projekte ──────────────────────────────────────────────────────────── */

.card__tag {
  display: inline-block;
  margin-bottom: var(--space-4);
  padding: var(--space-1) var(--space-3);
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  font-size: var(--text-sm);
  font-weight: 600;
}
