/* ==========================================================================
   Malerei Köbke – gemeinsames Stylesheet für alle Seiten
   Aufbau:
   1. Schriften   2. Variablen   3. Basis   4. Layout   5. Buttons
   6. Header & Navigation   7. Hero & Trenner   8. Inhaltsbausteine
   9. Leistungen   10. Referenzen   11. Kontakt-Formular & Karte
   12. CTA   13. Footer   14. Fehlerseiten   15. Responsive
   ========================================================================== */

/* 1. Schriften (lokal eingebunden, kein Abruf bei Google)
   ========================================================================== */
@font-face {
  font-family: "Source Sans Pro";
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/source-sans-pro-300.woff") format("woff");
}
@font-face {
  font-family: "Source Sans Pro";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-pro-400.woff") format("woff");
}
@font-face {
  font-family: "Source Sans Pro";
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-pro-600.woff") format("woff");
}
@font-face {
  font-family: "Source Sans Pro";
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/source-sans-pro-700.woff") format("woff");
}
@font-face {
  font-family: "Luckiest Guy";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/luckiest-guy-400.woff") format("woff");
}
@font-face {
  font-family: "Patrick Hand";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/patrick-hand-400.woff") format("woff");
}
@font-face {
  font-family: "Patrick Hand SC";
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/patrick-hand-sc-400.woff") format("woff");
}

/* 2. Variablen
   ========================================================================== */
:root {
  --green: #85ac1b;
  --green-dark: #426628;
  --blue: #0077ff;
  --blue-light: #a5cfd6;
  --sky: #d5e8ec;
  --brown: #a87041;
  --text: #333;
  --text-soft: #9a9c9d;
  --grey-bg: #fff;

  --font-body: "Source Sans Pro", Arial, sans-serif;
  --font-display: "Luckiest Guy", "Arial Black", sans-serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", sans-serif;
  --font-hand-sc: "Patrick Hand SC", "Comic Sans MS", sans-serif;

  --content-width: 80%;
  --content-max: 1280px;
}

/* 3. Basis
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 90px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 300;
  line-height: 1.8;
}

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

a {
  color: var(--green);
  text-decoration: none;
}

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

strong {
  font-weight: 700;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 10px;
  font-weight: 400;
  text-transform: none;
}

p {
  margin: 0 0 20px;
}

[hidden] {
  display: none !important;
}

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

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

/* 4. Layout
   ========================================================================== */
.container {
  width: var(--content-width);
  max-width: var(--content-max);
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 55px 0;
  text-align: center;
}

.section-grey {
  background: var(--grey-bg);
}

.section h2,
.section h1 {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 45px;
  line-height: 1;
}

.section h1 {
  font-size: 60px;
  line-height: 1.5;
  text-transform: uppercase;
}

.subtitle {
  margin: 0 0 20px;
  color: var(--brown);
  font-family: var(--font-hand);
  font-size: 35px;
  line-height: 1;
}

.subtitle-small {
  margin: 0 0 20px;
  color: var(--blue-light);
  font-family: var(--font-hand);
  font-size: 28px;
  line-height: 1.2;
}

.two-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

.center {
  margin-top: 40px;
  text-align: center;
}

/* 5. Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 6px 20px;
  border: 0;
  border-radius: 50px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 34px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background: #0060d0;
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--blue);
}

.btn-white:hover {
  background: #fff;
  color: var(--brown);
}

/* 6. Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  transition: background-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  background: var(--sky);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 10px;
  transition: padding 0.25s;
}

.logo img {
  width: 245px;
  height: auto;
  transition: width 0.25s;
}

.site-header.is-scrolled .header-inner {
  padding-top: 6px;
  padding-bottom: 6px;
}

.site-header.is-scrolled .logo img {
  width: 130px;
}

.site-header.is-scrolled .main-nav {
  margin-top: 20px;
}

.main-nav {
  margin-top: 62px;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a:not(.nav-btn) {
  display: block;
  padding: 4px 0;
  color: var(--green-dark);
  font-family: var(--font-hand);
  font-size: 24px;
  letter-spacing: 2px;
  line-height: 1.2;
}

.main-nav a:not(.nav-btn):hover,
.main-nav a[aria-current="page"] {
  color: var(--brown);
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  padding: 5px 25px;
  border-radius: 50px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 27px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-btn:hover {
  background: #0060d0;
  color: #fff;
}

.nav-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-toggle {
  display: none;
  margin-top: 40px;
  padding: 8px 14px;
  border: 2px solid var(--green-dark);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--green-dark);
  font-family: var(--font-hand);
  font-size: 22px;
  cursor: pointer;
}

/* 7. Hero & Trenner (Wolken, Wellen)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--sky);
}

.hero--home {
  height: min(68vh, 700px);
  min-height: 500px;
}

.hero--sub {
  height: min(36vh, 330px);
  min-height: 260px;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 18.4%;
  width: 44%;
  transform: translateY(-40%);
  text-align: left;
}

.hero-text h1 {
  margin: 0 0 10px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 60px;
  line-height: 1;
  text-transform: uppercase;
}

.hero-text p {
  margin: 0;
  color: var(--brown);
  font-family: var(--font-hand);
  font-size: 35px;
  line-height: 1;
}

.hero-image {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36.7%;
  max-width: 505px;
}

.divider {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  background-repeat: no-repeat;
}

.divider--cloud-bottom {
  bottom: 0;
  height: 100px;
  background-image: url("../img/clouds/cloud-bottom.svg");
  background-size: cover;
  background-position: center top;
}

.divider--cloud-top {
  top: 0;
  height: 224px;
  background-image: url("../img/clouds/cloud-top.svg");
  background-size: cover;
  background-position: center top;
  transform: scale(1, -1);
}

.divider--wave-top-blue {
  top: 0;
  height: 100px;
  background-image: url("../img/clouds/wave-top-blue.svg");
  background-size: 100% 100px;
}

.divider--wave-top-white {
  top: 0;
  height: 100px;
  background-image: url("../img/clouds/wave-top-white.svg");
  background-size: 100% 100px;
}

.divider--wave-bottom {
  bottom: 0;
  height: 150px;
  background-image: url("../img/clouds/wave-bottom-white.svg");
  background-size: 100% 150px;
  transform: scale(-1, 1);
}

/* 8. Inhaltsbausteine
   ========================================================================== */
.intro {
  padding: 100px 0 55px;
}

.intro .text-col {
  padding-top: 20px;
}

.rounded-img {
  overflow: hidden;
  border-radius: 15px;
}

.rounded-img img {
  width: 100%;
}

/* Slider (Bilder mit Punkten) */
.slider {
  position: relative;
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
}

.slider-track {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.slider-track > * {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.slider-track img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.slider-dots {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.slider-dots button.is-active {
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.slider--wide {
  max-width: 100%;
}

.slider--wide .slider-track img {
  aspect-ratio: 1;
}

/* Presse */
.press {
  padding: 300px 0 55px;
  background: var(--blue-light);
}

.press h2 {
  max-width: 551px;
  margin: 0 auto 20px;
  color: #fff;
  line-height: 1;
}

.press-cover {
  display: inline-block;
  margin-bottom: 30px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.press-cover img {
  width: 140px;
}

/* Leistungs-Kacheln (Flip-Boxen) */
.services {
  padding: 200px 0 250px;
  background: var(--green);
}

.services h2 {
  color: #fff;
}

.services .subtitle-small {
  color: var(--blue);
}

.services .container > p:not(.subtitle-small) {
  color: #444;
}

.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 41px 60px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.flip {
  height: 300px;
  perspective: 1000px;
}

.flip-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
}

.flip:hover .flip-card,
.flip:focus-within .flip-card {
  transform: rotateY(180deg);
}

.flip-front,
.flip-back {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 15px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-front {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 30px 15px;
  background-size: cover;
  background-position: center;
}

.flip-front h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-hand-sc);
  font-size: 40px;
  line-height: 1;
  text-shadow: 0.08em 0.08em 0 rgba(0, 0, 0, 0.4);
}

.flip-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 15px;
  background: var(--blue);
  color: #fff;
  transform: rotateY(180deg);
}

.flip-back h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
}

.flip-back p {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.3;
}

.flip-back a {
  padding: 4px 30px;
  border-radius: 100px;
  background: #fff;
  color: var(--blue);
  font-family: var(--font-display);
  text-transform: uppercase;
}

.flip-back a:hover {
  color: var(--brown);
}

/* Referenzen-Streifen auf der Startseite */
.refs {
  padding: 55px 0 55px;
}

.strip-wrap {
  position: relative;
  margin-top: 40px;
}

.strip {
  display: flex;
  gap: 20px;
  padding: 0 0 4px;
  margin: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.strip::-webkit-scrollbar {
  display: none;
}

.strip li {
  position: relative;
  flex: 0 0 238px;
  height: 288px;
  overflow: hidden;
  border-radius: 10px;
  scroll-snap-align: start;
}

.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.strip h3 {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  padding: 40px 10px 8px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
  color: #fff;
  font-family: var(--font-hand-sc);
  font-size: 35px;
  line-height: 1;
  text-shadow: 0.08em 0.08em 0 rgba(0, 0, 0, 0.4);
}

.strip-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.strip-btn:hover {
  background: rgba(0, 0, 0, 0.6);
}

.strip-prev { left: 10px; }
.strip-next { right: 10px; }

/* Zeitleiste (Über uns) */
.timeline {
  max-width: 700px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 20px 0;
  border-top: 2px dotted var(--blue-light);
}

.timeline li:first-child {
  border-top: 0;
}

.timeline-year {
  display: block;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 45px;
  line-height: 1;
}

.timeline h3 {
  margin: 8px 0 4px;
  color: var(--brown);
  font-family: var(--font-hand-sc);
  font-size: 25px;
  line-height: 1.2;
}

.timeline p {
  margin: 0;
}

/* Rechtstexte */
.legal {
  padding-top: 55px;
  text-align: left;
}

.legal h1 {
  margin-bottom: 10px;
  font-size: 40px;
  line-height: 1.5;
  text-align: center;
}

.legal h2 {
  margin: 30px 0 10px;
  color: var(--brown);
  font-family: var(--font-hand-sc);
  font-size: 25px;
  line-height: 1.2;
  text-align: center;
}

.legal h3 {
  margin: 24px 0 6px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
}

.legal h4 {
  margin: 20px 0 4px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 700;
}

.legal ul {
  padding-left: 1.4em;
}

/* 9. Leistungen
   ========================================================================== */
.leistung {
  position: relative;
  padding: 25px 0;
}

.leistung--green {
  padding: 110px 0;
  background: var(--green);
  color: #fff;
}

.leistung--green h2 {
  color: #fff;
}

.leistung-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  text-align: left;
}

.leistung-grid h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 45px;
  line-height: 1;
}

.leistung-grid p {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.5;
}

.leistung-grid ul {
  margin: 0;
  padding-left: 1.2em;
  font-size: 18px;
  line-height: 1.5;
}

.leistung-media {
  position: relative;
  z-index: 2;
}

.leistung--white .leistung-media {
  order: -1;
}

.leistung--white .leistung-text h2 {
  color: var(--green);
}

.leistung-media > img {
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
}

/* 10. Referenzen
   ========================================================================== */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 15px;
  justify-content: center;
  margin: 30px 0 30px;
  padding: 0;
  list-style: none;
}

.filter button {
  padding: 4px 18px 6px;
  border: 0;
  border-radius: 50px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-hand-sc);
  font-size: 20px;
  line-height: 1.2;
  cursor: pointer;
}

.filter button:hover,
.filter button.is-active {
  background: var(--brown);
}

.ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ref-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: opacity 0.3s;
}

.ref-grid a:hover img {
  opacity: 0.85;
}

/* 11. Kontakt-Formular & Karte
   ========================================================================== */
.contact {
  padding: 100px 0 55px;
  background: var(--green);
  text-align: left;
}

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
}

.contact h2 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 45px;
  line-height: 1;
}

.contact-info {
  color: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 20px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="date"],
.form select,
.form textarea {
  width: 100%;
  padding: 6px 10px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font: 400 16px/1.3 var(--font-body);
}

.form input,
.form select {
  height: 38px;
}

.form textarea {
  height: 220px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
}

.form-check input {
  flex: none;
  margin-top: 2px;
}

.form-check a {
  color: #fff;
  text-decoration: underline;
}

.form-hint {
  margin: 0;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.form-submit {
  padding: 5px 25px;
  border: 0;
  border-radius: 50px;
  background: var(--blue);
  color: #fff;
  font: 400 22px/37px var(--font-body);
  cursor: pointer;
}

.form-submit:hover {
  background: #0060d0;
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

.hp {
  position: absolute;
  left: -9999px;
}

.form-status {
  margin: 14px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.form-status.is-error {
  padding: 8px 12px;
  border-radius: 4px;
  background: #fff;
  color: #c0392b;
}

.map {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: #e8e8e8;
  color: #666;
  text-align: center;
}

.map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.map-placeholder {
  padding: 20px;
  font-size: 16px;
  line-height: 1.4;
}

.map-placeholder .btn {
  margin-top: 10px;
  padding: 6px 22px;
  font-size: 16px;
  line-height: 1.5;
}

.route {
  position: relative;
  padding: 0;
  background: #e8e8e8;
  text-align: left;
}

.route .map {
  min-height: 920px;
}

.route .map-placeholder {
  margin-right: 30%;
}

.route-card {
  position: absolute;
  top: 41px;
  right: 8%;
  z-index: 2;
  width: 399px;
  padding: 37px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
}

.route-card h2 {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 45px;
  line-height: 1;
}

.route-card p {
  font-size: 20px;
  line-height: 1.8;
}

/* 12. Call-to-Action
   ========================================================================== */
.cta {
  padding: 100px 0 200px;
  background: var(--green);
  color: #fff;
}

.cta h2 {
  margin-bottom: 20px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1.5;
  text-transform: uppercase;
}

.cta p {
  max-width: 1102px;
  margin-right: auto;
  margin-left: auto;
}

.cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 10px 0 30px;
  font-size: 30px;
  line-height: 1;
}

.cta-phone a {
  color: #fff;
}

.cta-phone svg {
  width: 54px;
  height: 54px;
  padding: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  fill: #fff;
}

/* 13. Footer
   ========================================================================== */
.site-footer {
  background: #fff;
}

.footer-main {
  padding: 55px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.footer-grid h2 {
  margin: 0 0 30px;
  color: var(--green);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-grid p {
  color: var(--text-soft);
}

.footer-grid a:not(.btn) {
  color: var(--green);
}

.footer-grid .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
}

.footer-grid .btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-grid .map {
  min-height: 300px;
}

.footer-bottom {
  padding: 25px 0;
  background: rgba(229, 229, 229, 0.39);
  color: var(--text-soft);
  font-size: 15px;
  line-height: 36px;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom nav {
  display: flex;
  gap: 16px;
}

.footer-bottom a {
  color: var(--green);
}

/* 14. Fehlerseiten
   ========================================================================== */
.error-nav {
  position: absolute;
  top: 10px;
  left: 8%;
}

.error-nav img {
  width: 245px;
}

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 160px 20px 80px;
  background: var(--sky);
  text-align: center;
}

.error-page-inner {
  max-width: 720px;
}

.error-page h1 {
  color: var(--green);
  font-family: var(--font-display);
  font-size: 50px;
  line-height: 1.2;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

/* 15. Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav ul {
    gap: 8px;
  }

  .main-nav a:not(.nav-btn) {
    font-size: 21px;
  }
}

@media (max-width: 980px) {
  :root {
    --content-width: 88%;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 20px 6%;
    background: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
    max-height: calc(100vh - 100%);
    max-height: calc(100dvh - 100%);
    overflow-y: auto;
  }

  .site-header.is-scrolled .main-nav {
    margin: 0;
  }

  .site-header.is-scrolled .logo img {
    width: 110px;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .nav-btn {
    margin: 8px 0 0;
  }

  .header-inner {
    align-items: center;
  }

  .nav-toggle {
    margin-top: 0;
  }

  .logo img {
    width: 180px;
  }

  .hero--home {
    height: auto;
    min-height: 0;
    padding: 150px 0 0;
  }

  .hero-text {
    position: static;
    width: 88%;
    margin: 0 auto;
    padding-bottom: 20px;
    transform: none;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-text p {
    font-size: 28px;
  }

  .hero-image {
    position: relative;
    width: 70%;
    margin: 0 auto;
  }

  .two-col,
  .contact-grid,
  .leistung-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .leistung--white .leistung-media {
    order: 0;
  }

  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .ref-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .press,
  .services {
    padding-top: 160px;
  }

  .route-card {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
  }

  .route .map {
    min-height: 420px;
  }

  .route .map-placeholder {
    margin-right: 0;
  }

  .divider--cloud-top {
    height: 120px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 18px;
  }

  .section h2,
  .contact h2,
  .leistung-grid h2 {
    font-size: 32px;
  }

  .section h1 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 26px;
  }

  .intro {
    padding-top: 70px;
  }

  .flip-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .ref-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta {
    padding-bottom: 140px;
  }

  .cta h2 {
    font-size: 30px;
  }

  .cta-phone {
    font-size: 24px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0;
  }
}

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

  .flip-card,
  .slider-track {
    transition: none;
    scroll-behavior: auto;
  }
}

/* Startseite: Teamfoto-Slider im Textbereich */
.rounded-img .slider {
  max-width: 404px;
  overflow: hidden;
  border-radius: 15px;
}

.rounded-img .slider-track img {
  aspect-ratio: 1;
}

.contact-info a {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .hero-text h1 {
    font-size: 32px;
  }

  .hero-text p {
    font-size: 24px;
  }
}

.press-note {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

/* Lightbox (Bildergalerie in der Seite) */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox-figure {
  max-width: 90vw;
  margin: 0;
  text-align: center;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 84vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-figure figcaption {
  margin-top: 10px;
  color: #fff;
  font-size: 16px;
  line-height: 1.3;
}

.lightbox button {
  position: absolute;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev  { left: 16px; top: 50%; margin-top: -24px; }
.lightbox-next  { right: 16px; top: 50%; margin-top: -24px; }
