/* Hofsommer Holding – Stylesheet im Apple-Stil (Vorlage: tm-merch.de)
   Systemschrift (SF Pro auf Apple-Geräten), viel Weißraum, zentrierte Überschriften,
   Wechsel aus Weiß, Hellgrau und Schwarz, runde Kacheln. Keine externen Schriften oder Skripte. */

:root {
  --weiss: #ffffff;
  --hellgrau: #f5f5f7;
  --linie: #d2d2d7;
  --text: #1d1d1f;
  --text-leise: #636366;
  --feld-rand: #86868b;
  --link: #0066cc;
  --knopf: #0071e3;
  --knopf-hover: #0062c4;
  --schwarz: #000000;
  --text-hell: #f5f5f7;
  --link-hell: #2997ff;

  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, sans-serif;

  --breite: 980px;
  --breite-weit: 1200px;
  --rand: 22px;
  --radius-gross: 28px;
  --radius: 18px;
}

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

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

body {
  margin: 0;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 3px;
  border-radius: 6px;
}

.sprunglink {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--weiss);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.sprunglink:focus { left: 8px; }

/* ---------- Navigation ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.kopf-innen {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kopf-logo img { height: 26px; width: auto; }

.kopf-nav { display: flex; gap: 28px; }
.kopf-nav a {
  display: inline-block;
  padding: 6px 4px;
  color: var(--text);
  font-size: 14px;
  letter-spacing: -0.01em;
  opacity: 0.85;
}
.kopf-nav a:hover { opacity: 1; text-decoration: none; }
.kopf-nav a[aria-current="page"] { opacity: 1; font-weight: 600; }

/* ---------- Abschnitte ---------- */

.abschnitt { padding: 100px var(--rand); }
.abschnitt--grau { background: var(--hellgrau); }
.abschnitt--schwarz { background: var(--schwarz); color: var(--text-hell); }
.abschnitt--schwarz a:not(.knopf) { color: var(--link-hell); }

.innen { max-width: var(--breite); margin: 0 auto; }
.innen--weit { max-width: var(--breite-weit); margin: 0 auto; }
.zentriert { text-align: center; }

/* ---------- Typografie ---------- */

.titel-riesig {
  font-size: clamp(44px, 8vw, 80px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0;
}

.titel-gross {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin: 0;
}

.titel-mittel {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}

.titel-klein {
  font-size: 24px;
  line-height: 1.17;
  font-weight: 600;
  letter-spacing: 0.009em;
  margin: 0;
}

.unterzeile {
  font-size: clamp(21px, 2.6vw, 28px);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: 0.007em;
  margin: 12px 0 0;
}

.fliesstext {
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.38;
  color: var(--text-leise);
  max-width: 40em;
  margin: 20px auto 0;
}
.abschnitt--schwarz .fliesstext { color: #a1a1a6; }

.leise { color: var(--text-leise); }

/* ---------- Links und Knöpfe ---------- */

.aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
}

.knopf {
  display: inline-block;
  background: var(--knopf);
  color: #fff;
  font-size: 17px;
  line-height: 1.18;
  padding: 12px 22px;
  border-radius: 980px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.022em;
}
.knopf:hover { background: var(--knopf-hover); text-decoration: none; }

.textlink { font-size: 19px; }
.textlink::after { content: " ›"; }

/* ---------- Kacheln wie auf apple.com ---------- */
/* Volle Breite, 12 px weiße Fuge, abwechselnd hellgrau und schwarz */

.flaeche { display: grid; gap: 12px; padding-bottom: 12px; }

.tile {
  background: var(--hellgrau);
  color: var(--text);
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px var(--rand) 0;
  min-height: 580px;
}
.tile--schwarz { background: var(--schwarz); color: var(--text-hell); }
.tile--weiss { background: var(--weiss); }
.tile--held { min-height: 692px; padding-top: 60px; }
.tile--ohne-bild { padding-bottom: 60px; min-height: 0; justify-content: center; }

.tile-titel {
  font-size: clamp(40px, 6vw, 56px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}
.tile--held .tile-titel { font-size: clamp(48px, 8vw, 80px); letter-spacing: -0.015em; }

.tile-unter {
  font-size: clamp(21px, 2.4vw, 28px);
  line-height: 1.14;
  font-weight: 400;
  letter-spacing: 0.007em;
  margin: 6px 0 0;
}

.tile-text {
  font-size: 17px;
  line-height: 1.47;
  color: var(--text-leise);
  max-width: 34em;
  margin: 12px auto 0;
}
.tile--schwarz .tile-text { color: #a1a1a6; }

.tile .aktionen { margin-top: 18px; gap: 14px; }

.tile-bild { margin-top: auto; padding-top: 32px; width: 100%; display: flex; justify-content: center; }
.tile-bild img, .tile-bild video { display: block; }
.tile-bild--breit img { width: min(100%, 1200px); aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-gross) var(--radius-gross) 0 0; }
.tile-bild--foto img, .tile-bild--foto video { width: min(100%, 440px); border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 4 / 3; object-fit: cover; }
.tile-bild--hoch img { width: min(100%, 400px); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 25%; border-radius: var(--radius) var(--radius) 0 0; }

.raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.raster .tile { min-height: 580px; }
.raster .tile-titel { font-size: clamp(32px, 4vw, 40px); line-height: 1.1; }
.raster .tile-unter { font-size: clamp(19px, 2vw, 21px); }

/* Knöpfe wie auf apple.com: gefüllt und umrandet */
.knopf--rand { background: transparent; color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.knopf--rand:hover { background: var(--knopf); color: #fff; }
.tile--schwarz .knopf--rand { color: var(--link-hell); box-shadow: inset 0 0 0 1px var(--link-hell); }
.tile--schwarz .knopf--rand:hover { background: var(--link-hell); color: #000; }
.tile .knopf { font-size: 17px; padding: 11px 21px; min-width: 112px; }

/* Wir und Du */
.wir-du { display: flex; gap: clamp(24px, 6vw, 80px); justify-content: center; margin-top: auto; padding: 48px 0 64px; }
.wir-du p { margin: 0; }
.wir-du-wort { font-size: clamp(72px, 13vw, 150px); line-height: 0.9; font-weight: 700; letter-spacing: -0.03em; }
.wir-du-zusatz { font-size: 19px; color: #a1a1a6; margin-top: 10px !important; }

/* Slogan im Kopfbereich: so gesperrt wie im Logo */
.slogan-klein {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.32em;
  margin: 0 0 14px;
  padding-left: 0.32em;
}

.sozial {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  font-size: 15px;
}
.sozial a { display: inline-block; padding: 4px 0; }
.tile--schwarz .sozial a { color: var(--link-hell); }

/* ---------- Kontakt ---------- */

.formular {
  max-width: 640px;
  margin: 48px auto 0;
  text-align: left;
}

.feld { margin-bottom: 18px; }

.feld label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feld input,
.feld textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--text);
  background: var(--weiss);
  border: 1px solid var(--feld-rand);
  border-radius: 12px;
  padding: 14px 16px;
}
.feld textarea { min-height: 180px; resize: vertical; }
.feld input:focus,
.feld textarea:focus {
  outline: 3px solid transparent;
  outline-offset: 2px;
  border-color: var(--knopf);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.2);
}

.einwilligung {
  font-size: 15px;
  color: var(--text-leise);
  margin: 8px 0 24px;
}
.einwilligung input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--knopf); }

.hinweis-pflicht { font-size: 13px; color: var(--text-leise); margin: 16px 0 0; }

.meldung-feld { color: #b3261e; font-size: 14px; margin: 6px 0 0; }
.feld [aria-invalid="true"] { border-color: #b3261e; }

.formular .knopf { width: 100%; padding: 15px 22px; }

.honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.meldung {
  max-width: 640px;
  margin: 40px auto 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  font-size: 17px;
  text-align: left;
}
.meldung--ok { background: #e8f6ec; color: #0b5a23; }
.meldung--fehler { background: #fdecec; color: #8a1414; }

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

.rechtstext { max-width: 720px; margin: 0 auto; }
.rechtstext h2 { font-size: 24px; line-height: 1.2; margin: 48px 0 8px; }
.rechtstext h3 { font-size: 19px; margin: 28px 0 4px; }
.rechtstext p, .rechtstext li { color: #424245; }
.rechtstext address { font-style: normal; }

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

.fuss {
  background: var(--hellgrau);
  color: var(--text-leise);
  font-size: 13px;
  line-height: 1.38;
  letter-spacing: -0.01em;
  padding: 20px var(--rand) 28px;
}

.fuss-innen {
  max-width: var(--breite);
  margin: 0 auto;
  border-top: 1px solid var(--linie);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.fuss a { color: #424245; display: inline-block; padding: 5px 0; }
.fuss-nav { display: flex; flex-wrap: wrap; gap: 6px 0; }
.fuss-nav a + a::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 10px;
  background: var(--linie);
  margin: 0 10px;
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 734px) {
  :root { --rand: 16px; }
  .abschnitt { padding: 64px var(--rand); }
  .raster { grid-template-columns: 1fr; padding: 0; }
  .tile, .raster .tile { min-height: 0; padding-top: 44px; }
  .tile--held { min-height: 0; }
  .tile-bild--breit img { aspect-ratio: 4 / 3; border-radius: var(--radius) var(--radius) 0 0; }
  .kopf-nav { gap: 20px; }
  .kopf-logo img { height: 30px; width: 30px; }
}

@media (prefers-reduced-motion: no-preference) {
  .tile--held .tile-kopf { animation: auftauchen 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .tile--held .tile-bild { animation: auftauchen 1.1s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes auftauchen {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
}

a[href^="mailto:"] { white-space: nowrap; }

/* Links im Fließtext immer unterstrichen, nicht nur über die Farbe erkennbar */
.fliesstext a, .rechtstext a, .einwilligung a, .meldung a { text-decoration: underline; text-underline-offset: 2px; }

.abschnitt--schwarz :focus-visible, .partner-karte--dunkel :focus-visible { outline-color: #2997ff; }

main:focus { outline: none; }
.meldung:focus { outline: 3px solid #0071e3; outline-offset: 3px; }
.meldung ul { margin: 8px 0 0; padding-left: 20px; }
.pflicht { color: var(--text-leise); font-weight: 400; }

/* Fußzeile auf kurzen Seiten unten halten */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.fuss-slogan { color: var(--text); font-weight: 600; margin-right: 6px; }

.tile-titel { text-wrap: balance; }
@media (max-width: 734px) { .tile-titel br { display: none; } }

/* Produktionsvideo im Hochformat, mit Pause-Knopf wie auf apple.com */
.tile-bild--video { position: relative; width: min(100%, 380px); margin-left: auto; margin-right: auto; padding-bottom: 0; }
.produktionsvideo {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius-gross) var(--radius-gross) 0 0;
  background: #111;
}
.video-knopf {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(232, 232, 237, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #1d1d1f;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.video-knopf:hover { background: rgba(255, 255, 255, 0.9); }
.video-knopf svg { width: 18px; height: 18px; fill: currentColor; grid-area: 1 / 1; }
.video-knopf .symbol-play { display: none; }
.video-knopf[data-pausiert] .symbol-play { display: block; }
.video-knopf[data-pausiert] .symbol-pause { display: none; }

.nur-vorlesen {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tile:not(.tile--schwarz) .wir-du-zusatz { color: var(--text-leise); }

/* Kennzeichnung KI-generierter Medien */
.ki-medium { position: relative; }
.ki-medium::before {
  content: "KI-generiert";
  position: absolute;
  top: calc(32px + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0;
  padding: 6px 10px;
  border-radius: 980px;
  color: #f5f5f7;
  background: rgba(29, 29, 31, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.fuss-hinweis { flex-basis: 100%; margin: 0; }

/* ---------- Hofsommer Holding: Ergänzungen ---------- */

/* Kopfbereich ohne Bild: Kennzahlen statt Foto */
.zahlen { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px clamp(32px, 8vw, 96px); margin-top: auto; padding: 56px 0 64px; }
.zahlen p { margin: 0; }
.zahl { font-size: clamp(44px, 7vw, 72px); line-height: 1; font-weight: 700; letter-spacing: -0.03em; }
.zahl-zusatz { font-size: 17px; color: var(--text-leise); margin-top: 8px !important; }

/* Leistungen als Karten auf schwarzer Fläche */
.leistungen {
  list-style: none;
  margin: 40px auto 0;
  padding: 0;
  width: min(100%, var(--breite-weit));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: left;
}
.leistungen li { background: #1d1d1f; border-radius: var(--radius); padding: 28px 26px 30px; }
.leistungen h3 { font-size: 21px; line-height: 1.2; font-weight: 600; letter-spacing: 0.009em; margin: 0 0 10px; color: var(--text-hell); }
.leistungen p { margin: 0; font-size: 17px; line-height: 1.47; color: #a1a1a6; }
.leistungen-hinweis { font-size: 14px; margin: 28px auto 56px; max-width: 48em; }

/* Branchen als Pillen */
.branchen { list-style: none; margin: auto 0 0; padding: 48px 0 64px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.branchen li { font-size: 17px; padding: 10px 18px; border-radius: 980px; color: var(--text-hell); box-shadow: inset 0 0 0 1px #48484a; }

/* Logo: rundes Signet aus der Logo-Datei plus Wortmarke in Systemschrift */
.kopf-logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.kopf-logo img { height: 36px; width: 36px; flex: none; border-radius: 50%; }
.kopf-wortmarke { font-size: 13px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.kopf-logo:hover { text-decoration: none; }

@media (max-width: 1068px) { .leistungen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 734px) {
  .leistungen { grid-template-columns: 1fr; }
  .zahlen { gap: 24px 36px; padding: 40px 0 48px; }
  .kopf-logo img { height: 32px; width: 32px; }
  /* Auf dem Handy nur das Signet; der Name bleibt für Screenreader im Link */
  .kopf-wortmarke { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
