/* ==========================================================================
   Schröter Gartenlandschaftsbau & Floristik – statischer Neuaufbau
   Masterlayout: FireShot-Captures 148/149/150 (Desktop 1920 px Viewport)
   Layout: zentrierter 1000-px-Container, vollflächige Farbbänder
   ========================================================================== */

/* Roboto selbst gehostet (DSGVO – keine Verbindung zu Google).
   Dateien in /fonts ablegen, siehe 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");
}

:root {
  --green: #006738;      /* Hausfarbe Grün (Überschriften, Banner, Icons) */
  --pink: #e2007b;       /* Akzent Magenta (Icons, Marker, aktiver Menüpunkt) */
  --link: #cc3366;       /* Fließtext-Links */
  --text: #333333;       /* Fließtext */
  --grey: #727272;       /* Infoboxen, Footer */
  --light: #edebec;      /* helle Bänder */
  --white: #ffffff;

  --font-head: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: Verdana, Geneva, "DejaVu Sans", Tahoma, sans-serif;

  --fs-body: 13px;       /* Fließtext Desktop (Vorgabe Kunde) */
  --container: 1000px;
  --gutter: 6px;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

p { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

/* ---------- Header ---------- */
.site-header { background: var(--white); }
.site-header .wrap { height: 186px; display: flex; align-items: center; }
.site-header .logo img { width: 326px; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative;
  height: 442px;
  display: flex; align-items: center; justify-content: center;
  background: #2a3a12 url("../images/hero-gartengestaltung.jpg") center / cover no-repeat;
  overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hero h2 {
  position: relative;
  margin: 0; padding-inline: 16px;
  max-width: 1100px;
  font: 400 65px/1 var(--font-head);
  color: var(--white);
  text-align: center;
}

/* ---------- Begrüßung ---------- */
.welcome { background: var(--light); padding-block: 75px 43px; }
.welcome .wrap { display: grid; grid-template-columns: 71% 29%; align-items: start; }
.welcome h1 {
  margin: 0 0 18px;
  font: 400 35px/35.5px var(--font-head);
  color: var(--green);
}
.welcome .usp { justify-self: center; }
.welcome .usp img { width: 249px; transition: transform .3s ease; }
.welcome .usp img:hover { transform: rotate(-8deg); }

/* ---------- Leistungen ---------- */
.services { position: relative; padding-block: 52px 0; }
.services::before {           /* Pfeil-Trenner */
  content: ""; position: absolute; top: 0; left: 50%;
  width: 80px; height: 22px; transform: translateX(-50%);
  background: var(--light);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.services h2 {
  margin: 0 0 22px;
  font: 400 28px/1.2 var(--font-head);
  color: var(--green);
  text-align: center;
}
.services .cols { display: grid; grid-template-columns: 1fr 1fr; padding-inline: 12px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; align-content: start; }
.check-list li { display: flex; align-items: center; gap: 9px; min-height: 26px; }
.check-list svg { width: 26px; height: 26px; flex: none; color: var(--green); }

/* ---------- Leidenschaft ---------- */
.passion { padding-block: 112px 46px; text-align: center; }
.passion h3 {
  margin: 0;
  font: 400 38px/1.15 var(--font-body);
  color: var(--green);
  text-wrap: balance;
}
.passion .hl { position: relative; display: inline-block; }
.passion .hl svg {
  position: absolute; left: 50%; top: 50%;
  width: calc(100% + 24px); height: calc(100% + 18px);
  transform: translate(-50%, -50%); overflow: visible; pointer-events: none;
}
.passion .hl path {
  fill: none; stroke: var(--pink); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1500;
  animation: marker 9.2s ease-in-out infinite;
}
@keyframes marker {
  0%   { stroke-dashoffset: 1500; }
  13%  { stroke-dashoffset: 0; }
  95%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* ---------- Bild-Kacheln ---------- */
.tiles { background: var(--light); padding: 62px 36px; }
.tiles .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.tile { position: relative; height: 247px; overflow: hidden; display: block; color: var(--white); }
.tile .bg {
  position: absolute; inset: 0; background: center / cover no-repeat;
  transition: transform 1.5s ease;
}
.tile:hover .bg { transform: scale(1.2); }
.tile h2 {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  font: 400 20px/1.2 var(--font-body);
  transition: transform .3s ease;
}
.tile:hover h2 { transform: scale(1.1); }

/* ---------- Infoboxen ---------- */
.info { padding-block: 71px 0; }
.info .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.info-box {
  position: relative;
  background: var(--grey); color: var(--white);
  text-align: center;
  padding: 40px 18px 22px;
  font-family: var(--font-head); font-weight: 300;
}
.info-box .icon {
  position: absolute; top: -23px; left: 50%; transform: translateX(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--pink);
  box-shadow: 0 0 0 3px var(--white);
  display: grid; place-items: center; color: var(--pink);
}
.info-box .icon svg { width: 24px; height: 24px; }
.info-box h3 {
  margin: 0 0 6px;
  font: 300 21px/31.5px var(--font-head);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.info-box p { margin: 0; font-size: 18px; line-height: 1.25; }
.info-box a { color: var(--white); }

/* ---------- Stadt-Link ---------- */
.city { padding-block: 78px 0; text-align: center; }
.city h2 { margin: 0; font: 400 28px/1.2 var(--font-head); }
.city a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Karte ---------- */
.map { padding: 78px 9px 0; }
.map figure { position: relative; margin: 0; }
.map img { width: 100%; }
.map .btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  background: var(--green); color: var(--white);
  font: 400 15px/1.45 var(--font-body);
  white-space: nowrap;
}
.map .btn svg { width: 13px; height: 13px; flex: none; }
.map .btn:hover { text-decoration: none; background: #00552e; }
.map figcaption {
  position: absolute; right: 4px; bottom: 2px;
  font-size: 10px; color: #5f6368; background: rgba(255,255,255,.75); padding: 0 4px;
}

/* ---------- Orte ---------- */
.places { padding-block: 28px 35px; }
.places p { margin-bottom: .9em; }

/* ---------- Unterseiten ---------- */
.page-banner { background: var(--green); }
.page-banner .wrap { height: 140px; display: flex; align-items: center; justify-content: center; }
.page-banner h1 { margin: 0; font: 400 52px/1 var(--font-head); color: var(--white); text-align: center; }

.legal { padding-block: 68px 22px; }
.legal h2 {
  margin: 0 0 14px;
  font: 400 35px/1.2 var(--font-body);
  color: var(--green);
}
.legal ul { margin: 0 0 .9em; padding-left: 35px; }
.legal li { margin: 0; }
.legal .gap { margin-top: 3em; }
.legal .gap-s { margin-top: 1.6em; }
.legal a { overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grey); color: var(--white); }
.site-footer .wrap {
  max-width: 1004px; padding-left: 0; padding-right: 0;
  min-height: 50px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-footer p { margin: 0; font-size: var(--fs-body); line-height: 1.6; padding-block: 6px; }
.site-footer .nobr { white-space: nowrap; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.site-footer nav a {
  position: relative; display: block;
  padding: 15px 17px 14px;
  color: var(--white); font-size: 15px; line-height: 1.4;
}
.site-footer nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--pink); opacity: 0; transition: opacity .3s;
}
.site-footer nav a:hover { text-decoration: none; }
.site-footer nav a:hover::after,
.site-footer nav a[aria-current="page"]::after { opacity: 1; }

/* ---------- Kontaktleiste (sticky unten) ---------- */
.contact-bar {
  position: sticky; bottom: 0; z-index: 20;
  background: var(--light);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.contact-bar ul {
  list-style: none; margin: 0 auto; padding: 0 16px;
  min-height: 63px;
  display: flex; align-items: center; justify-content: center; gap: 36px;
}
.contact-bar a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-size: 15px;
}
.contact-bar svg { width: 16px; height: 16px; color: var(--pink); }

/* ==========================================================================
   Tablet (≤ 1040 px)
   ========================================================================== */
@media (max-width: 1040px) {
  :root { --gutter: max(16px, env(safe-area-inset-left, 0px)); }
  .wrap { padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .site-footer .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero { height: 380px; }
  .hero h2 { font-size: 50px; }
  .tiles { padding-inline: 16px; }
  .tiles .grid { gap: 16px; }
  .tile { height: 200px; }
  .info-box h3 { font-size: 19px; line-height: 1.5; }
  .info-box p { font-size: 16px; }
}

/* ==========================================================================
   Mobil (≤ 767 px)
   ========================================================================== */
@media (max-width: 767px) {
  :root { --fs-body: 14px; }
  .site-header .wrap { height: auto; padding-block: 14px; justify-content: center; }
  .site-header .logo img { width: 220px; }
  .hero { height: 300px; }
  .hero h2 { font-size: 34px; line-height: 1.15; }
  .welcome { padding-block: 44px 40px; }
  .welcome .wrap { grid-template-columns: 1fr; gap: 28px; }
  .welcome h1 { font-size: 26px; line-height: 1.25; }
  .welcome .usp img { width: 190px; }
  .services h2 { font-size: 24px; text-wrap: balance; }
  .services .cols { grid-template-columns: 1fr; gap: 18px; padding-inline: 0; }
  .passion { padding-block: 70px 40px; }
  .passion h3 { font-size: 23px; }
  .tiles .grid { grid-template-columns: 1fr; }
  .info { padding-block: 56px 0; }
  .info .grid { grid-template-columns: 1fr; gap: 48px; }
  .city { padding-block: 64px 0; }
  .city h2 { font-size: 21px; text-wrap: balance; }
  .map { padding: 40px 0 0; }
  .map img { height: 260px; object-fit: cover; }
  .map .btn { font-size: 13px; }
  .page-banner .wrap { height: 100px; }
  .page-banner h1 { font-size: 36px; }
  .legal { padding-block: 40px 22px; }
  .legal h2 { font-size: 26px; }
  .legal ul { padding-left: 22px; }
  .site-footer .wrap { flex-direction: column; gap: 0; padding-block: 10px 0; text-align: center; }
  .contact-bar ul { gap: 24px; }
}

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