/* ==========================================================================
   Heyne & Heyne GbR – Startseite
   Layout 1:1 nach "Designvorlage.pdf" (Referenzbreite 1920 px)
   ========================================================================== */

/* --- Schriften (lokal gehostet, DSGVO-konform – Dateien siehe fonts/LIESMICH.txt) --- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local("Roboto Light"), local("Roboto-Light"),
       url("../fonts/roboto-v30-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Roboto"), local("Roboto-Regular"),
       url("../fonts/roboto-v30-latin-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: local("Open Sans Light"), local("OpenSans-Light"),
       url("../fonts/open-sans-v40-latin-300.woff2") format("woff2");
}

/* --- Design-Tokens (Farben aus der Designvorlage gemessen) --- */
:root {
  --blau: #1f4187;          /* Headlines */
  --blau-link: #11347d;     /* Textlink */
  --rot: #ed1b24;           /* Icons, Button, Kreis */
  --grau-flaeche: #edebec;  /* graue Sektionen */
  --grau-box: #727272;      /* Info-Boxen, Footer */
  --text: #5a5a5a;          /* Fließtext */
  --text-liste: #6a6a6a;    /* Leistungsliste */
  --weiss: #ffffff;

  --font-head: "Roboto", Arial, Helvetica, sans-serif;
  --font-light: "Segoe UI", "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --container: 988px;
  --fliesstext: 14px;       /* Desktop */
}

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

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

body {
  margin: 0;
  background: var(--grau-flaeche);
  color: var(--text);
  font-family: var(--font-light);
  font-weight: 300;
  font-size: var(--fliesstext);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blau); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--rot); outline-offset: 3px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { background: var(--weiss); height: 190px; }
.site-header .container { height: 100%; display: flex; align-items: center; }
.logo-link { display: inline-block; }
.logo-link img { height: 140px; width: auto; }

/* ==========================================================================
   Slider (Hero)
   ========================================================================== */
.hero {
  position: relative;
  height: 442px;
  overflow: hidden;
  background: #cfd6d2;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }

.hero-arrow {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 60px;
  border: 0; padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: .85;
  z-index: 2;
}
.hero-arrow:hover { opacity: 1; }
.hero-arrow svg { width: 16px; height: 30px; margin: 0 auto; display: block; }
.hero-arrow--prev { left: 0; }
.hero-arrow--next { right: 0; }

/* ==========================================================================
   Willkommen
   ========================================================================== */
.welcome {
  background: var(--grau-flaeche);
  padding: 66px 0 38px;
}
.welcome .container {
  display: grid;
  grid-template-columns: 670px 1fr;
  align-items: center;
}
.welcome h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 36px;
  line-height: 36px;
  color: var(--blau);
  margin-bottom: 19px;
}
.welcome p + p { margin-top: 12px; }
.welcome p.abstand { margin-top: 35px; }
.welcome .sticker {
  justify-self: end;
  margin-right: 29px;
  width: 220px;
}

/* ==========================================================================
   Leistungen
   ========================================================================== */
.services {
  position: relative;
  background: var(--weiss);
  padding: 50px 0 56px;
}
/* Pfeil-Dreieck nach unten (aus der grauen Fläche) */
.services::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-top: 27px solid var(--grau-flaeche);
}
.services h2 {
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 29px;
  line-height: 1.2;
  color: var(--blau);
  text-align: center;
}
.service-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 23px;
}
.service-lists ul { list-style: none; margin: 0; padding: 0 0 0 12px; }
.service-lists li {
  display: flex; align-items: center;
  min-height: 26px;
  color: var(--text-liste);
}
.service-lists li + li { margin-top: 18px; }
.service-lists li svg { flex: 0 0 26px; width: 26px; height: 26px; margin-right: 8px; }

.slogan {
  margin-top: 108px;
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 36px;
  line-height: 1.2;
  color: var(--blau);
  text-align: center;
}
.kreis { position: relative; display: inline-block; }
.kreis svg {
  position: absolute;
  left: -8%; top: -24%;
  width: 116%; height: 150%;
  overflow: visible;
  pointer-events: none;
}

/* ==========================================================================
   Bildkacheln
   ========================================================================== */
.tiles {
  background: var(--grau-flaeche);
  padding: 61px 35px 62px;
}
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin: 0; padding: 0; list-style: none;
}
.tile {
  position: relative;
  aspect-ratio: 593 / 247;
  overflow: hidden;
  margin: 0;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 20px;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 0 14px rgba(0,0,0,.35);
}

/* ==========================================================================
   Info-Boxen
   ========================================================================== */
.info {
  background: var(--weiss);
  padding: 70px 0 75px;
}
.info-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.info-box {
  position: relative;
  min-height: 161px;
  background: var(--grau-box);
  color: #fff;
  text-align: center;
  padding: 40px 16px 18px;
  font-family: var(--font-head);
}
.info-icon {
  position: absolute; top: -23px; left: 50%;
  transform: translateX(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--rot);
  display: flex; align-items: center; justify-content: center;
}
.info-icon svg { width: 26px; height: 26px; }
.info-box h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 21px;
  line-height: 23px;
  margin: 0 0 12px;
}
.info-box h3, .info-box h3 a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.info-box h3 a { color: #fff; }
.info-box p {
  font-weight: 300;
  font-size: 17px;
  line-height: 22px;
}
.info-box p a { color: #fff; text-decoration: none; }
.info-box p a:hover { text-decoration: underline; }

.city-link {
  margin-top: 78px;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
}
.city-link a { color: var(--blau-link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.city-link a:hover { color: var(--rot); }

/* ==========================================================================
   Karte
   ========================================================================== */
.map {
  background: var(--weiss);
  padding: 0 9px 9px;
}
.map-link {
  position: relative;
  display: block;
  aspect-ratio: 1902 / 548;
  overflow: hidden;
}
.map-link img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 35%; }
.map-button {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--rot);
  color: #fff;
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 16px;
  line-height: 1;
  padding: 14px 16px 14px 14px;
  box-shadow: 0 0 0 5px rgba(208, 124, 113, .85);
  white-space: nowrap;
  transition: background .2s ease;
}
.map-button svg { width: 15px; height: 15px; }
.map-link:hover .map-button { background: #c9141c; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--grau-box);
  color: #fff;
  font-family: var(--font-light);
  font-weight: 300;
  font-size: 15px;
}
.site-footer .container {
  max-width: 1006px;
  padding-right: 9px;
  min-height: 65px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.site-footer .nw { white-space: nowrap; }
.footer-nav { display: flex; gap: 36px; margin-top: -8px; }
.footer-nav a { color: #fff; text-decoration: none; }
.footer-nav a:hover, .footer-nav a[aria-current="page"] { text-decoration: underline; }

/* ==========================================================================
   Unterseiten (Impressum / Datenschutz)
   ========================================================================== */
.legal { background: var(--weiss); padding: 66px 0 80px; }
.legal h1 {
  font-family: var(--font-head); font-size: 36px; line-height: 36px;
  color: var(--blau); margin-bottom: 30px;
}
.legal h2 {
  font-family: var(--font-head); font-size: 21px; color: var(--blau);
  margin: 32px 0 10px;
}
.legal p + p { margin-top: 12px; }
.legal a { color: var(--blau-link); }
.platzhalter {
  background: #fff3c4; color: #6b5300;
  padding: 0 4px; font-style: normal; font-weight: 400;
}
.hinweis {
  border-left: 4px solid var(--rot); background: var(--grau-flaeche);
  padding: 14px 18px; margin-bottom: 30px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1040px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .site-footer .container { padding-right: 24px; }
  .welcome .container { grid-template-columns: 1fr 220px; gap: 30px; }
  .welcome .sticker { margin-right: 0; width: 200px; }
  .hero { height: 340px; }
  .tiles { padding: 40px 24px; }
  .tiles-grid { gap: 20px; }
}

@media (max-width: 767px) {
  :root { --fliesstext: 16px; }   /* Fließtext Mobil */
  body { line-height: 1.6; }
  .container { padding-left: 16px; padding-right: 16px; }

  .site-header { height: auto; padding: 16px 0; }
  .logo-link img { height: auto; width: 100%; max-width: 300px; }

  .hero { height: 200px; }
  .hero-arrow { width: 36px; }
  .hero-arrow svg { width: 11px; height: 22px; }

  .welcome { padding: 40px 0 36px; }
  .welcome .container { grid-template-columns: 1fr; gap: 24px; }
  .welcome h1 { font-size: 26px; line-height: 1.2; margin-bottom: 16px; }
  .welcome .sticker { justify-self: center; width: 170px; }
  .welcome p.abstand { margin-top: 24px; }

  .services { padding: 48px 0 44px; }
  .services::before { border-left-width: 28px; border-right-width: 28px; border-top-width: 19px; }
  .services h2 { font-size: 23px; }
  .service-lists { grid-template-columns: 1fr; margin-top: 24px; }
  .service-lists ul { padding-left: 0; }
  .service-lists ul + ul { margin-top: 14px; }
  .service-lists li + li { margin-top: 14px; }
  .slogan { margin-top: 56px; font-size: 26px; }

  .tiles { padding: 32px 16px; }
  .tiles-grid { grid-template-columns: 1fr; gap: 16px; }

  .info { padding: 52px 0 48px; }
  .info-boxes { grid-template-columns: 1fr; gap: 42px; }
  .info-box { min-height: 0; padding: 36px 16px 22px; }
  .info-box h3 { font-size: 20px; }
  .info-box p { font-size: 16px; }
  .city-link { margin-top: 48px; font-size: 21px; }

  .map { padding: 0; }
  .map-link { aspect-ratio: 4 / 3; }
  .map-link img { object-position: 47% 25%; }
  .map-button { font-size: 16px; }

  .site-footer { font-size: 16px; }
  .site-footer .container {
    flex-direction: column; justify-content: center; text-align: center;
    padding-top: 20px; padding-bottom: 20px; gap: 10px;
  }
  .footer-nav { margin-top: 0; justify-content: center; }

  .legal { padding: 40px 0 56px; }
  .legal h1 { font-size: 26px; line-height: 1.2; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .tile img, .map-button { transition: none; }
}
