/* Plus Jakarta Sans – lokal eingebunden (keine Verbindung zu Google), nur die 3 genutzten Schnitte */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2"),
       url("fonts/plus-jakarta-sans-600.woff") format("woff");
  font-weight: 600; /* SemiBold */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2"),
       url("fonts/plus-jakarta-sans-700.woff") format("woff");
  font-weight: 700; /* Bold */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-800.woff2") format("woff2"),
       url("fonts/plus-jakarta-sans-800.woff") format("woff");
  font-weight: 800; /* ExtraBold */
  font-style: normal;
  font-display: swap;
}

:root {
  --greige: #f6ebe1;
  --tan: #9c8675;
  --green: #a7c546;
  --dark: #161616;
  --line: rgba(246, 235, 225, 0.2);

  /* Fluid spacing: mobile → 1920px desktop */
  --frame: clamp(10px, 1.45vw, 28px);          /* greige-Rand um die Karte */
  --radius: clamp(24px, 2.8vw, 54px);
  --pad-x: clamp(24px, 6.9vw, 132px);
  --pad-y: clamp(28px, min(6vw, 7.5vh), 114px);   /* oben/unten: Breite UND Höhe zählen */
  --gap-headline: clamp(28px, 18vh - 60px, 190px);   /* Headline → Text, abhängig von der Höhe */
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--greige);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--greige);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: var(--frame);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
}

.card {
  flex: 1;
  background: var(--dark);
  border-radius: var(--radius);
  padding: var(--pad-y) var(--pad-x);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 2 * var(--frame));
  min-height: calc(100dvh - 2 * var(--frame));
}

/* ---------- Logo ---------- */
.logo {
  display: block;
  width: clamp(170px, 13vw, 249px);
  line-height: 0;
}
.logo svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Hauptinhalt ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(24px, 9vh - 36px, 96px) clamp(24px, 4vh, 48px);
}

h1 {
  margin: 0;
  color: var(--tan);
  font-weight: 800;
  font-size: clamp(42px, min(4.7vw, 7.5vh), 90px);
  line-height: 1.12;
  letter-spacing: -0.005em;
  max-width: 9.8em;
  text-wrap: balance;
}

.intro {
  /* Abstand wächst mit der Bildschirmhöhe */
  margin: var(--gap-headline) 0 0;
  font-weight: 700;
  font-size: clamp(20px, min(2.08vw, 3.3vh), 40px);
  line-height: 1.375;
  max-width: 32em;
  text-wrap: pretty;
}
.intro .accent { color: var(--green); }

/* ---------- Kontakt ---------- */
.contact {
  border-top: 1px solid var(--line);
  padding-top: clamp(20px, 2.4vh, 32px);
  max-width: 1232px;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5.5vw, 106px);
  font-size: clamp(16px, 0.94vw, 18px);
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.label {
  color: var(--tan);
  font-weight: 600;
}
.value, .value a {
  color: var(--greige);
  font-weight: 700;
  line-height: 26px;
  font-style: normal;
  text-decoration: none;
}
.value a:hover, .value a:focus-visible { color: var(--green); }

/* ---------- Footer ---------- */
footer {
  margin-top: clamp(24px, 9vh - 30px, 96px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-size: clamp(16px, 0.94vw, 18px);
}
footer a {
  color: var(--tan);
  font-weight: 600;
  text-decoration: none;
}
footer a:hover, footer a:focus-visible { color: var(--greige); }

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

/* ---------- Breakpoints ---------- */
@media (max-width: 600px) {
  :root { --gap-headline: clamp(36px, 7vh, 72px); }
  .contact {
    flex-direction: column;
    gap: 22px;
  }
  h1 { line-height: 1.08; }
}

/* Sehr niedrige Viewports (Laptop quer, Handy quer) */
@media (max-height: 760px) and (min-width: 601px) {
  main { justify-content: flex-start; }
}

/* ---------- Zurück-Link (Rechtstexte) ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--greige);
  font-weight: 700;
  font-size: clamp(15px, 0.9vw, 17px);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s, color .2s;
}
.back-link svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s; }
.back-link:hover, .back-link:focus-visible { border-color: var(--green); color: var(--green); }
.back-link:hover svg { transform: translateX(-3px); }
@media (max-width: 480px) {
  .back-link { padding: 0 14px; }
  .back-link .long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .back-link, .back-link svg { transition: none; }
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal {
  flex: 1;
  padding-block: clamp(48px, 9vh, 140px) clamp(40px, 5vw, 96px);
  max-width: 820px;
}
.legal h1 {
  font-size: clamp(38px, 3.6vw, 68px);
  max-width: none;
  margin-bottom: clamp(24px, 4vh, 56px);
}
.legal h1 + h2 { margin-top: 0; }
.legal h2 {
  color: var(--greige);
  font-weight: 800;
  font-size: clamp(20px, 1.35vw, 26px);
  line-height: 1.3;
  margin: clamp(36px, 3vw, 56px) 0 12px;
}
.legal h3 {
  color: var(--tan);
  font-weight: 700;
  font-size: clamp(17px, 1vw, 19px);
  margin: 28px 0 8px;
}
.legal p, .legal li, .legal address {
  font-size: clamp(16px, 0.94vw, 18px);
  line-height: 1.65;
  font-weight: 600;
  font-style: normal;
  color: rgba(246, 235, 225, 0.82);
  margin: 0 0 14px;
}
.legal ul { padding-left: 1.2em; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--greige); font-weight: 700; }
.legal a {
  color: var(--greige);
  text-decoration-color: rgba(246, 235, 225, 0.4);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.legal a:hover, .legal a:focus-visible { color: var(--green); text-decoration-color: var(--green); }
.legal .stand { margin-top: 40px; color: var(--tan); }
.legal-meta { color: var(--tan); }

footer a[aria-current="page"] { color: var(--greige); }
