/* ═══════════════════════════════════════════════
   Watermann – Maler- und Lackierermeister
   style.css
   ═══════════════════════════════════════════════ */

/* ─── Self-hosted Fonts (DSGVO-konform) ─── */
@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Outfit';
  src: url('fonts/outfit-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ─── Design Tokens ─── */
:root {
  --blue:    #5387AB;
  --red:     #CB0016;
  --red-h:   #A00012;
  --dark:    #4E4D4B;
  --mid:     #7A7A7A;
  --light:   #B1B2B2;
  --bg:      #F7F7F7;
  --white:   #FFFFFF;

  --font-h:  'Outfit', sans-serif;
  --font-b:  'Outfit', sans-serif;

  --radius:  10px;
  --shadow:  0 2px 20px rgba(83,135,171,0.08);
  --max-w:   1200px;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  color: var(--mid);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--red); }
ul { list-style: none; }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-h);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { font-size: 1rem; line-height: 1.75; color: var(--mid); text-wrap: pretty; }

/* ─── Layout helpers ─── */
.container {
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 1.5rem;
}
.section { padding: 6rem 0; }
.section--bg { background: var(--bg); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p  { max-width: 640px; margin: 0 auto; }

/* ─── Skip-to-content Link (Accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background: var(--dark);
  color: var(--white);
  font-family: var(--font-h);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* ─── Focus Visible (Accessibility) ─── */
:focus-visible {
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-h); font-weight: 600; font-size: 0.95rem;
  border-radius: var(--radius);
  padding: 0.8rem 2rem;
  border: none; cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red); color: var(--white);
}
.btn-primary:hover {
  background: var(--red-h); color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(203,0,22,0.30);
}
.btn-primary:active { transform: scale(0.98) translateY(0); box-shadow: none; }
.btn-outline:active  { transform: scale(0.98) translateY(0); }
.btn-outline {
  background: transparent; color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue); color: var(--white);
  transform: translateY(-1px);
}

/* ─── Navigation ─── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 500;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; padding: 0 1.5rem; max-width: var(--max-w); margin: 0 auto;
}
.nav__logo { flex-shrink: 0; }
.nav__logo img { width: 150px; height: auto; }
.nav__links {
  display: flex; align-items: center; gap: 0.5rem;
}
.nav__links a {
  font-family: var(--font-h); font-size: 0.9rem; font-weight: 500;
  color: var(--dark); padding: 0.5rem 0.9rem; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}
.nav__links a:hover { color: var(--blue); background: rgba(83,135,171,0.07); }
.nav__links a.active { color: var(--blue); }
.nav__links a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 0.9rem; right: 0.9rem;
  height: 2px; background: var(--blue); border-radius: 2px;
}

/* Burger */
.nav__burger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 36px; height: 36px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__burger span {
  display: block; height: 2px; border-radius: 2px;
  background: var(--dark); transition: transform 0.3s, opacity 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 1rem 1.5rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: var(--font-h); font-weight: 500; font-size: 1rem;
  color: var(--dark); padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: block; transition: color 0.2s;
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover, .nav__mobile a.active { color: var(--blue); }

/* Page offset for fixed nav */
.page-top { padding-top: 70px; }

/* ─── Hero ─── */
.hero {
  min-height: calc(100dvh - 70px);
  background: var(--white);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 50%;
  padding: 4rem 2rem 4rem clamp(1.5rem, 5vw, 6rem);
}
.hero__tag {
  display: block;
  font-family: var(--font-h); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid rgba(83,135,171,0.25);
  max-width: 360px;
  white-space: nowrap;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700; margin-bottom: 1.25rem; color: var(--dark);
  line-height: 1.1;
}
.hero__accent { color: var(--blue); }
.hero__sub {
  font-size: 1.05rem; color: var(--mid);
  max-width: 420px; margin-bottom: 2rem; line-height: 1.7;
}
.hero__ctas {
  display: flex; flex-wrap: wrap; gap: 0.85rem;
  align-items: center;
}
.hero__visual {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  pointer-events: none;
}
.hero__visual img {
  height: 100%;
  width: auto;
  display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 18%);
  mask-image: linear-gradient(to right, transparent 0%, black 18%);
}

/* ─── Leistungen Hero ─── */
.leist-hero {
  min-height: 56dvh;
  background-image: url('img/hero-leistungen.webp');
  background-size: cover; background-position: center;
  position: relative;
  display: flex; align-items: center;
  padding: 5rem 0;
}
.leist-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(30,30,30,0.78) 0%,
    rgba(30,30,30,0.50) 50%,
    rgba(30,30,30,0.10) 100%
  );
}
.leist-hero__content {
  position: relative; z-index: 1;
  max-width: 580px;
  padding: 0 2rem 0 clamp(1.5rem, 5vw, 6rem);
}
.leist-hero__content .hero__tag {
  color: rgba(255,255,255,0.85);
  border-bottom-color: var(--blue);
  margin-bottom: 1.25rem;
}
.leist-hero__content h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 1rem; color: var(--white);
  line-height: 1.1;
}
.leist-hero__sub {
  font-size: 1.05rem; color: rgba(255,255,255,0.82);
  line-height: 1.75; max-width: 480px;
  margin-bottom: 2rem;
}
.leist-hero__ctas {
  display: flex; align-items: center;
  flex-wrap: wrap; gap: 1.25rem;
}
.leist-hero__call {
  font-size: 0.92rem; font-weight: 500;
  color: rgba(255,255,255,0.80); text-decoration: none;
  transition: color 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
}
.leist-hero__call:hover { color: var(--white); }

/* ─── Page Hero (inner pages) ─── */
.page-hero {
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  padding: 3.5rem 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 0.5rem; }
.page-hero p  { font-size: 1.05rem; max-width: 640px; }

/* ─── Page Hero mit Visual (Kontakt Split-Layout) ─── */
.page-hero--visual {
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: 240px;
  display: flex;
  align-items: center;
}
.page-hero--visual .container {
  position: relative;
  z-index: 1;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.page-hero__inner {
  max-width: 56%;
}
.page-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}
.page-hero__img {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 52%;
  pointer-events: none;
}
.page-hero__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 38%);
  mask-image: linear-gradient(to right, transparent 0%, black 38%);
}

/* ─── Service Cards ─── */
/* Standard 3-Spalten Grid (Leistungsseite) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* "Alle Leistungen" Link unter dem Featured-Grid */
.leist-mehr {
  text-align: center;
  margin-top: 2.5rem;
}

/* Featured Grid: 1 große Karte links (2 Zeilen), 2 Karten rechts gestapelt */
.cards-grid--featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.75rem;
}
.cards-grid--featured .card:first-child {
  grid-row: span 2;
}
.cards-grid--featured .card:first-child .card__img {
  aspect-ratio: 3/4;
  height: 100%;
  max-height: 480px;
}

/* Asymmetric Bento Grid (Leistungsseite) */
.cards-grid--bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* Card 1: Malerarbeiten – große Feature-Karte (2 Spalten, 2 Zeilen) */
.cards-grid--bento .card:nth-child(1) {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.cards-grid--bento .card:nth-child(1) .card__img {
  flex: 1;
  aspect-ratio: unset;
  min-height: 240px;
  object-fit: cover;
}

/* Card 2: Kreative Wandgestaltung – rechts oben */
.cards-grid--bento .card:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

/* Card 3: Fugenlose Bäder – rechts unten */
.cards-grid--bento .card:nth-child(3) {
  grid-column: 3;
  grid-row: 2;
}

/* Card 4: Bodenbeläge – links */
.cards-grid--bento .card:nth-child(4) {
  grid-column: 1;
  grid-row: 3;
}

/* Card 5: Sandstrahlen – breit rechts */
.cards-grid--bento .card:nth-child(5) {
  grid-column: 2 / 4;
  grid-row: 3;
}

/* Card 6: Fassadenreinigung – breit links */
.cards-grid--bento .card:nth-child(6) {
  grid-column: 1 / 3;
  grid-row: 4;
}

/* Card 7: Natürliche Baustoffe – rechts */
.cards-grid--bento .card:nth-child(7) {
  grid-column: 3;
  grid-row: 4;
}

/* Card 8: Schimmelsanierung – links */
.cards-grid--bento .card:nth-child(8) {
  grid-column: 1;
  grid-row: 5;
}

/* Card 9: Reparaturverglasung – breit rechts */
.cards-grid--bento .card:nth-child(9) {
  grid-column: 2 / 4;
  grid-row: 5;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 1px 8px rgba(83,135,171,0.07);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(83,135,171,0.14);
}
.card__img {
  width: 100%; aspect-ratio: 16/10;
  object-fit: cover; display: block;
}
.card__icon-header {
  width: 100%; aspect-ratio: 16/10;
  background: linear-gradient(135deg, rgba(83,135,171,0.12) 0%, rgba(83,135,171,0.06) 100%);
  border-bottom: 1px solid rgba(83,135,171,0.12);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.card__icon-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 40%, rgba(83,135,171,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.card__icon-header svg {
  width: 60px; height: 60px;
  color: var(--blue);
  position: relative; z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(83,135,171,0.20));
}
.card__body { padding: 1.5rem; flex: 1; }
.card__body h3 {
  font-size: 1.1rem; margin-bottom: 0.6rem; color: var(--dark);
}
.card__body p { font-size: 0.92rem; line-height: 1.65; }

/* ─── Über uns ─── */
.team-banner-wrap {
  background: #F9F7EA;
  line-height: 0;
  overflow: hidden;
  position: relative;
}
.team-banner {
  width: 100%; max-height: 500px;
  object-fit: contain; object-position: center center;
  display: block;
  margin: 0 auto;
}
.about-intro {
  padding: 5rem 0 3rem;
}
.about-intro h1,
.about-intro h2 { margin-bottom: 1.5rem; }
.about-intro p  { max-width: 720px; margin-bottom: 1.25rem; }

/* Wiederverwendbares Label / Eyebrow-Tag */
.label-tag {
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.75rem;
  display: block;
}
.label-tag--mb1 { margin-bottom: 1rem; }

/* Google Bewertungs-Widget */
.google-rating {
  text-align: center; margin-top: 3rem; padding: 2rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 1px 6px rgba(0,0,0,0.07);
  max-width: 420px; margin-left: auto; margin-right: auto;
}
.google-rating__stars {
  display: flex; justify-content: center; gap: 4px;
  margin-bottom: 0.75rem;
}
.google-rating__score {
  font-family: var(--font-h); font-size: 2rem;
  font-weight: 700; color: var(--dark); line-height: 1;
}
.google-rating__count {
  font-size: 0.85rem; color: var(--mid); margin-top: 0.3rem;
}

/* Ausbildungs-Box */
.ausbildung-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.ausbildung-card h3 {
  font-size: 1.35rem; margin-bottom: 1rem;
}
.ausbildung-card p {
  font-size: 0.95rem; margin-bottom: 1.75rem;
}

/* ─── About / Two-column ─── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.two-col--img-left .two-col__img { order: -1; }
.two-col__img img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.two-col__text h2 { margin-bottom: 1.25rem; }
.two-col__text p  { margin-bottom: 1.25rem; }

/* Checklist */
.checklist {
  list-style: none; display: flex; flex-direction: column; gap: 0.65rem;
  margin-top: 1.5rem;
}
.checklist li {
  display: flex; align-items: flex-start; gap: 0.65rem;
  font-family: var(--font-b); font-size: 0.97rem;
  color: var(--dark); font-weight: 500;
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px; margin-top: 2px;
  background: var(--blue);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ─── Stats ─── */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  text-align: center; padding: 2.5rem 2rem;
  border-right: 1px solid rgba(0,0,0,0.08);
}
.stat:last-child { border-right: none; }
.stat__num {
  font-family: var(--font-h); font-size: 2.5rem;
  font-weight: 700; color: var(--blue);
  line-height: 1; margin-bottom: 0.4rem;
}
.stat__label {
  font-size: 0.85rem; font-weight: 500;
  color: var(--mid); line-height: 1.4;
}

/* ─── CTA Section ─── */
.cta-section {
  text-align: center; padding: 5rem 0;
  background: var(--blue);
}
.cta-section h2 {
  margin-bottom: 0.75rem;
  color: var(--white);
}
.cta-section p {
  margin-bottom: 2rem; max-width: 480px;
  margin-left: auto; margin-right: auto;
  color: rgba(255,255,255,0.80);
}
.cta-section .btn-primary {
  background: var(--white);
  color: var(--blue);
}
.cta-section .btn-primary:hover {
  background: rgba(255,255,255,0.90);
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* ─── Google Maps ─── */
.map-wrapper {
  position: relative; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrapper iframe {
  width: 100%; height: 440px; border: none;
  display: block;
}
.map-overlay {
  position: absolute; inset: 0;
  background: #d6e4ef;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; gap: 1.25rem;
  padding: 2rem;
}
.map-overlay.hidden { display: none; }
.map-overlay svg {
  width: 44px; height: 44px; color: var(--blue); opacity: 0.7;
}
.map-overlay p {
  font-size: 0.92rem; max-width: 380px; color: var(--dark);
}
.map-note {
  margin-top: 0.75rem;
  font-size: 0.78rem; color: var(--mid); text-align: center;
}

/* ─── Contact Form ─── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 5rem; align-items: start;
}
.contact-info { }
.contact-info h2 { margin-bottom: 2rem; }
.contact-block {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.75rem;
}
.contact-block__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(83,135,171,0.10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-block__icon svg { width: 18px; height: 18px; color: var(--blue); }
.contact-block__text p { font-size: 0.88rem; margin-bottom: 0.1rem; color: var(--mid); }
.contact-block__text strong { font-size: 0.97rem; color: var(--dark); }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--dark); margin-bottom: 0.4rem;
  font-family: var(--font-h);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--light);
  border-radius: var(--radius);
  font-family: var(--font-b); font-size: 0.97rem;
  color: var(--dark); background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(83,135,171,0.15);
}
.form-group textarea { min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-submit { margin-top: 0.5rem; }
.form-success {
  display: none;
  background: rgba(83,135,171,0.08); border: 1px solid rgba(83,135,171,0.3);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-size: 0.92rem; color: var(--dark); margin-top: 1rem;
}
.form-error {
  display: none;
  background: rgba(203,0,22,0.06); border: 1px solid rgba(203,0,22,0.25);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  font-size: 0.92rem; color: var(--dark); margin-top: 1rem;
}

/* ─── Cookie Banner ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  border-top: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  padding: 1.25rem 1.5rem;
  transform: translateY(0);
  transition: transform 0.4s var(--ease);
}
.cookie-banner.hidden { transform: translateY(100%); pointer-events: none; }
.cookie-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text { flex: 1; min-width: 240px; }
.cookie-text p { font-size: 0.88rem; line-height: 1.6; }
.cookie-text a { font-weight: 600; }
.cookie-actions {
  display: flex; gap: 0.75rem; flex-wrap: wrap; flex-shrink: 0;
}
.cookie-actions .btn {
  font-size: 0.82rem; padding: 0.6rem 1.25rem;
}
.btn-ghost {
  background: transparent; color: var(--mid);
  border: 1.5px solid var(--light);
}
.btn-ghost:hover {
  color: var(--dark); border-color: var(--mid);
  background: var(--bg);
}

/* ─── Footer ─── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.25rem;
}
.footer-copy { font-size: 0.85rem; }
.footer-links {
  display: flex; flex-wrap: wrap; gap: 0.25rem 0;
}
.footer-links a {
  font-size: 0.82rem; color: rgba(255,255,255,0.60);
  padding: 0.1rem 0.75rem;
  border-right: 1px solid rgba(255,255,255,0.20);
  transition: color 0.2s;
}
.footer-links a:last-child { border-right: none; }
.footer-links a:hover { color: var(--white); }

/* ─── Fade-in Animations ─── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}
.fade-up.in {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.d1 { transition-delay: 0.10s; }
.fade-up.d2 { transition-delay: 0.20s; }
.fade-up.d3 { transition-delay: 0.30s; }
.fade-up.d4 { transition-delay: 0.42s; }
.fade-up.d5 { transition-delay: 0.54s; }

/* ─── Cookie Modal ─── */
.cookie-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.48);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1; pointer-events: all;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 24px 64px rgba(0,0,0,0.22);
  width: 100%; max-width: 520px;
  max-height: 90dvh; overflow-y: auto;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.35s var(--ease);
}
.cookie-modal-overlay.open .cookie-modal { transform: translateY(0); }
.cookie-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.cookie-modal__title {
  font-family: var(--font-h); font-size: 1.2rem; font-weight: 600;
  color: var(--dark);
}
.cookie-modal__close {
  background: none; border: none; cursor: pointer;
  color: var(--mid); padding: 4px;
  transition: color 0.2s;
}
.cookie-modal__close:hover { color: var(--dark); }
.cookie-modal__close svg { display: block; }
.cookie-modal__desc {
  font-size: 0.875rem; color: var(--mid); line-height: 1.65;
  margin-bottom: 1.5rem;
}
.cookie-category {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.25rem; padding: 1.1rem 0;
  border-top: 1px solid rgba(0,0,0,0.07);
}
.cookie-category:last-of-type { border-bottom: 1px solid rgba(0,0,0,0.07); margin-bottom: 1.5rem; }
.cookie-category__name {
  font-family: var(--font-h); font-size: 0.92rem; font-weight: 600;
  color: var(--dark); margin-bottom: 0.2rem;
}
.cookie-category__desc { font-size: 0.8rem; color: var(--mid); line-height: 1.5; }

/* Toggle switch */
.cm-toggle { flex-shrink: 0; position: relative; width: 44px; height: 24px; }
.cm-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cm-toggle__track {
  position: absolute; inset: 0;
  background: var(--light); border-radius: 24px;
  cursor: pointer; transition: background 0.2s;
}
.cm-toggle__track::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; left: 3px; top: 3px;
  background: var(--white); border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.2s;
}
.cm-toggle input:checked  ~ .cm-toggle__track { background: var(--blue); }
.cm-toggle input:checked  ~ .cm-toggle__track::before { transform: translateX(20px); }
.cm-toggle input:disabled ~ .cm-toggle__track { background: var(--blue); opacity: 0.65; cursor: not-allowed; }
.cm-toggle input:disabled ~ .cm-toggle__track::before { transform: translateX(20px); }

.cookie-modal__actions {
  display: flex; gap: 0.75rem;
}
.cookie-modal__actions .btn { flex: 1; justify-content: center; }

/* ─── Responsive: Tablet (≤ 900px) ─── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  /* Abschnitte: 6rem → 4rem auf Tablet */
  .section { padding: 4rem 0; }
  .cta-section { padding: 3.5rem 0; }
  .about-intro { padding: 3rem 0 2rem; }

  /* Leistungen-Hero: kein fixes min-height auf Mobile */
  .leist-hero { min-height: auto; padding: 3.5rem 0; }

  /* Maps: etwas flacher auf Tablet */
  .map-wrapper iframe { height: 340px; }

  /* Stats: 3-Spalten bleiben, aber etwas kompakterer Label-Text */
  .stat__label { font-size: 0.82rem; }
  .stat { padding: 2rem 1.25rem; }

  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0;
  }
  .hero__content {
    width: 100%;
    padding: 3rem 1.5rem 2rem;
    text-align: left;
  }
  .hero__tag {
    margin: 0 0 1.25rem;
    max-width: 100%;
    white-space: normal;
  }
  .hero__ctas { justify-content: flex-start; }
  .hero__sub { max-width: 100%; }
  .hero__visual {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
  }
  .hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    -webkit-mask-image: none;
    mask-image: none;
  }

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

  /* Bento: 2-Spalten-Fallback, alle nth-child-Positionen zurücksetzen */
  .cards-grid--bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards-grid--bento .card:nth-child(n) {
    grid-column: unset;
    grid-row: unset;
  }
  .cards-grid--bento .card:nth-child(1) .card__img {
    flex: unset;
    aspect-ratio: 16/10;
    min-height: unset;
  }

  .cards-grid--featured {
    grid-template-columns: 1fr;
  }
  .cards-grid--featured .card:first-child {
    grid-row: span 1;
  }
  .cards-grid--featured .card:first-child .card__img {
    aspect-ratio: 16/10;
    height: auto;
    max-height: none;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .two-col--img-left .two-col__img { order: 0; }

  .stats { grid-template-columns: 1fr 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ─── Responsive: Mobile (≤ 580px) ─── */
@media (max-width: 580px) {
  .section { padding: 3rem 0; }
  .cta-section { padding: 3rem 0; }
  .about-intro { padding: 2.5rem 0 2rem; }
  .ueber-uns-staerken { padding-bottom: 1.5rem; }
  .section-header { margin-bottom: 2rem; }

  .hero h1 { font-size: 1.9rem; }

  /* Leistungen-Hero: kompakter + Overlay aufhellen auf Mobile */
  .leist-hero { padding: 2.5rem 0 3rem; }
  .leist-hero__content { padding: 0 1.5rem; }
  .leist-hero__sub { font-size: 0.95rem; }
  .leist-hero::before {
    background: linear-gradient(
      to bottom,
      rgba(30,30,30,0.55) 0%,
      rgba(30,30,30,0.45) 60%,
      rgba(30,30,30,0.30) 100%
    );
  }

  /* Page-Hero (Kontakt, Impressum etc.) */
  .page-hero { padding: 2.5rem 0; }

  /* Kontakt Hero: auf Mobile vertikal gestapelt */
  .page-hero--visual {
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }
  .page-hero--visual .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
    order: 2;
  }
  .page-hero__inner { max-width: 100%; }
  .page-hero__img {
    position: static;
    width: 100%;
    height: 220px;
    order: 1;
  }
  .page-hero__img img {
    object-position: center 40%;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* Ausbildungs-Card: auf Mobile edge-to-edge, kein schwebendes Kästchen */
  .ausbildung-card {
    border-radius: 0;
    padding: 2rem 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .cards-grid { grid-template-columns: 1fr; }
  .cards-grid--bento { grid-template-columns: 1fr; }

  /* Stats: 1-Spalte auf Mobile */
  .stats { grid-template-columns: 1fr; }
  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 1.5rem 1rem;
  }
  .stat:last-child { border-bottom: none; }
  .stat__num { font-size: 2rem; }

  /* Über uns: Team-Banner auf Mobile */
  .team-banner-wrap {
    height: 240px;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .team-banner {
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center center;
  }
  .about-intro { padding: 2.5rem 0 2rem; }

  /* Kontakt: Image-Strip auf gleiche Höhe wie team-banner */
  .page-hero__img { height: 240px; }

  /* Kontakt: weniger Gap auf Mobile */
  .contact-grid { gap: 2rem; }

  /* Maps: flach auf Mobile */
  .map-wrapper iframe { height: 260px; }

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

  .cookie-inner { flex-direction: column; }
  .cookie-actions { width: 100%; justify-content: stretch; }
  .cookie-actions .btn { flex: 1; text-align: center; justify-content: center; }
}
