/* ===============================================
   TOKENS & RESET
   =============================================== */
:root{
  --paper:#f8f6f3;
  --ink:#2b2b2b;
  --muted:#6e6a65;
  --accent:#b72222;
  --accent-ink:#ffffff;
  --accent-soft:#fceaea;
  --border:#e8e2d9;
}

*{ box-sizing:border-box; }
html,body{ margin:0; }
body{
  font:16px/1.6 ui-sans-serif,system-ui,-apple-system,Segoe UI,Inter,Roboto,Arial,sans-serif;
  color:var(--ink);
  background:#f7e1be;
}
html{
  scroll-behavior: smooth;
}

/* ===============================================
   LAYOUT
   =============================================== */
.container{
  max-width:1200px;
  margin:auto;
  padding:clamp(8px,1.5vw,16px);
}
.section{ margin-top:28px; }

/* ===============================================
   HEADER & NAVIGATION (überarbeitet)
   =============================================== */
.header{
  width: 100%;
  margin: 0;
  padding-inline: clamp(16px, 4vw, 32px);
  padding-block: 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  max-width: none !important; /* WICHTIG */
  position: sticky;
  top: 0;
  z-index: 999; /* wichtig, damit er über allem bleibt */
  background: var(--bg, #f1dcba); /* deine Hintergrundfarbe */
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); 
}

.logo img{
  height:90px;
  display:block;
}

/* Desktop-Navigation */
.nav{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  /* Abstände nur über gap, NICHT über feste Margins */
  gap: clamp(10px, 1.6vw, 24px);
}

.nav a{
  position:relative;
  color:var(--ink);
  text-decoration:none;
  padding:10px 12px;
  border-radius:10px;
  font-weight:500;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0; bottom:6px;
  height:2px; width:0;
  background:var(--accent);
  transition:width .28s ease;
}
.nav a:hover::after,
.nav a.active::after{
  width:100%;
}

/* Burger / Mobile Menu Button */
.menu-toggle{
  display:none;            /* Standard: Desktop => versteckt */
  border:none;
  background:transparent;
  padding:8px;
  cursor:pointer;
  flex-shrink:0;
}

.menu-toggle .bar{
  display:block;
  width:26px;
  height:2px;
  background:#2b2b2b;
  margin:6px 0;
  border-radius:2px;
}

/* Vollbild-Mobile-Menü bleibt wie gehabt (leicht aufgeräumt) */
.mobile-menu{
  position:fixed;
  inset:0;
  background:#f7e1be;
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease;
  z-index:1000;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  padding:28px;
}
.mobile-menu.open{
  opacity:1;
  visibility:visible;
}

.mobile-menu .mm-header{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.mobile-menu .mm-logo img{
  height:38px;
  opacity:.9;
  transform:translateY(-8px);
  transition:transform .35s ease, opacity .35s ease;
}
.mobile-menu.open .mm-logo img{
  transform:translateY(0);
  opacity:1;
}

.mobile-menu .mm-close{
  border:none;
  background:transparent;
  color:#2b2b2b;
  font-size:28px;
  cursor:pointer;
}
.mobile-menu nav{
  display:flex;
  flex-direction:column;
  align-items:center;
  margin-top:32px;
  gap:14px;
}
.mobile-menu nav a{
  font-size:22px;
  color:#2b2b2b;
  text-decoration:none;
  opacity:0;
  transform:translateY(6px);
  transition:opacity .35s ease, transform .35s ease;
}
.mobile-menu.open nav a{
  opacity:1;
  transform:translateY(0);
}
.mobile-menu nav a:nth-child(1){ transition-delay:.05s; }
.mobile-menu nav a:nth-child(2){ transition-delay:.1s; }
.mobile-menu nav a:nth-child(3){ transition-delay:.15s; }
.mobile-menu nav a:nth-child(4){ transition-delay:.2s; }
.mobile-menu nav a:nth-child(5){ transition-delay:.25s; }
.mobile-menu nav a:nth-child(6){ transition-delay:.3s; }

/* Start - Burgermenü */
@media (max-width:950px){
  .nav{
    display:none;
  }
  .menu-toggle{
    display:block;
  }

  /* Logo etwas kleiner, damit alles gut reinpasst */
  .logo img{
    height:90px;
  }
}


/* ===============================================
   HERO (mit Parallax-Hintergrund)
   =============================================== */
.hero{
  position:relative;
  overflow:hidden;
  border-radius:18px;
  margin:28px 0 10px;
}
.hero-bg{
  position: absolute;
  inset: 0;
  background: url('../img/sofa.png') center/cover no-repeat;
  opacity: .80;
  will-change: transform;
  border-radius: inherit;
  clip-path: inset(0 round var(--r));
}

.hero-content{
  position:relative; z-index:1;
  padding:220px 28px 160px;
  text-align:center;
}
.hero-content h1 {
  font-family: 'Bebas Neue', sans-serif;
  display: inline-block;
  font-size: clamp(5rem, 5vw, 5rem);
  color: var(--accent-ink);
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 6px rgba(0,0,0,0.4);
  margin: 0 0 0.01em;
}
.hero-content p{
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 5vw, 1.6rem);
  color: var(--accent-ink);
  margin: 0 auto 3rem;
  max-width: 70ch;
  text-shadow:
    -1px -1px 0 #000,
     1px -1px 0 #000,
    -1px  1px 0 #000,
     1px  1px 0 #000,
     0 2px 6px rgba(0,0,0,0.4);
}

p1 {
  font-size: clamp(0.9rem, 2vw, 0.5rem);
  color: var(black);
  margin: 0 auto 2rem;
  max-width: 70ch;
  background: rgba(143, 140, 136, 0.7);
}
.hero-cta{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

/* ============================
   HOME: Full-bleed Hero unter Header
   ============================ */

.home{ overflow-x:hidden; }

/* Startseite: Header-States (per JS-Klassen) */
.home .header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  box-shadow: none;
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}

/* Zustand 2: scrolling */
.home .header.is-scrolled{
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Zustand 3: background */
.home .header.past-hero{
  background: #f7e1be;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Hero bleibt im .container*/
.home .hero{
  margin:0;                 /* keine Außenabstände */
  border-radius:0;          /* oben keine Rundungen */
  position:relative;
  inline-size:100vw;        /* volle Viewport-Breite */
  left:50%;
  right:50%;
  margin-left:-50vw;        /* Breakout nach links */
  margin-right:-50vw;       /* Breakout nach rechts */
  min-height:100svh;        /* volle Höhe, damit der Boden sichtbar ist */
  display:flex;
  align-items:center;
  justify-content:center;   /* Textblock mittig */
  padding-top:calc(140px + 6vh);         /* Platz unter dem Header */
  padding-bottom:160px;
  padding-left:clamp(8px,1.5vw,16px);
  padding-right:clamp(8px,1.5vw,16px);
  -webkit-mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 90%, transparent 100%);
}

/* Vollflächiges Bild, unten ausgerichtet (Boden sichtbar), Parallax via fixed */
.home .hero-bg{
  position:absolute;
  inset:0;
  background:url('../img/sofa.png') center bottom / cover no-repeat fixed;
  opacity:.85;
  will-change:transform;
}

/* Textblock zusätzlich auf Containerbreite begrenzen & zentrieren */
.home .hero-content{
  text-align:center;
  max-width:1200px;
  margin-inline:auto;
  padding-inline:0; /* Padding kommt vom .hero oben */
}

/* ===============================================
   BUTTONS & LINKS
   =============================================== */
.btn{
  display:inline-block;
  background:var(--accent);
  color:var(--accent-ink);
  padding:12px 18px;
  border-radius:100px;
  border:none;
  text-decoration: none;
  font-weight:700;
  box-shadow:0 6px 14px rgba(183,34,34,.25);
  transition:transform .12s ease, box-shadow .25s ease, opacity .2s ease;
}

.hero-content .btn {
  margin-top: 2.5rem;
}
.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 22px rgba(183,34,34,.3);
}

.link-soft{
  color:var(--accent);
  text-decoration:none;
  padding:10px 12px;
}
.link-soft:hover{ text-decoration:underline; }

/* ===============================================
   GRID & KARTEN
   =============================================== */
.grid{
  display:grid;
  gap:18px;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
}

/* Ab der Breite, wo eh 3+ Karten nebeneinander passen würden */
@media (min-width: 1045px){
  .grid{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


.section .grid + .grid {
  margin-top: 18px; /* identisch mit dem Kartenabstand */
}

.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
  text-decoration:none;
  color:inherit;
  border-top:4px solid transparent;
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover{
  border-top-color:var(--accent);
  transform:translateY(-4px);
  box-shadow:0 16px 28px rgba(0,0,0,.08);
}
.card .thumb{
  height:170px;
  border-radius:12px;
  background:#eee;
  margin-bottom:12px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.card .thumb img{
  width:100%; height:100%;
  object-fit:cover;
  transition:transform .25s ease, filter .25s ease;
}
.card:hover .thumb img{ transform:scale(1.02); filter:brightness(.97) sepia(.06); }
.card h3{ color:var(--accent); margin-top:.8rem; }

/* ===============================================
   WIDE CARD (volle Zeilenbreite)
   =============================================== */
.card-wide {
  grid-column: 1 / -1; 
  width: 100%;
}

.card-wide .thumb {
  height: 260px; 
}

@media (max-width: 900px) {
  .card-wide .thumb {
    height: 200px;
  }
}

/* ===============================================
   NEWS-WIDECARD – Bildbreite & Button-Abstand
   =============================================== */

.wide-card-news{
  overflow: visible;
}

/* Bild rechts, Text links (per layout-Auswahl) */
.wide-card-news.wide-card-news--image-right .wide-card-left{
  order: 2;
}
.wide-card-news.wide-card-news--image-right .wide-card-right{
  order: 1;
}

/* Bildspalte: Bild immer komplett sichtbar */
.wide-card-news .wide-card-left{
  position: relative;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wide-card-news .wide-card-left img{
  width: 100%;
  height: 100%;
  object-fit: cover;  
  object-position: center;
  display: block;
}

/* Textspalte etwas kompakter */
.wide-card-news .wide-card-right{
  padding: 20px 26px 22px;
}

/* News-Text mit Scroll bei langen Texten */
.news-text{
  margin-top: .3rem;
  max-height: 12em;       
  overflow-y: auto;
  padding-right: 4px;
  white-space: pre-line;
}

.news-text.with-attachment{
  max-height: 10.5em;     
}

/* Button weiter unten, dichter am Kartenrand */
.news-attachment{
  margin-top: 1.4rem;
  margin-bottom: 0.2rem;
}

.news-attachment .btn{
  margin-top: 0;
}

/* Ohne Bild: Text volle Breite */
.wide-card-news--no-image{
  grid-template-columns: 1fr;
}

.wide-card-news--no-image .wide-card-right{
  padding: 24px 26px 18px;
}


/* ===============================================
   SWATCHES
   =============================================== */
.swatches{ display:flex; flex-wrap:wrap; gap:10px; }

.swatch{
  width:120px; height:120px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#eee;
  position:relative;
  overflow:hidden;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
  color: inherit;
  text-decoration: none;
  display: block;
  
}

.swatches .swatch:visited{
  color: inherit;
}

.swatches .swatch:focus-visible{
  outline: 3px solid rgba(183,34,34,.35);
  outline-offset: 4px;
  border-radius: 14px;
}

.swatch:hover{ transform:translateY(-2px); box-shadow:0 12px 22px rgba(0,0,0,.08); }
.swatch span{
  position:absolute;
  left:8px; bottom:8px;
  background:rgba(255,255,255,.85);
  padding:3px 6px;
  border-radius:8px;
  font-size:12px;
}
.swatch img{ width:100%; height:100%; object-fit:cover; }

/* =================================================================================================================================================
   Leistungen
   ================================================================================================================================================= */
.leistung-heading { position: relative; display: inline-block; }

.leistung-sub {
  position: relative;
  display: inline-block; 
  display:block;
  white-space: nowrap;
  font-size: clamp(0.6em, 2.8vw, 0.8em); 
  font-family: "Dancing Script", "Allura", "Segoe Script", cursive;
  color: var(--accent);
  font-weight: 400;
  transform: rotate(-6deg) translateY(-6px);
  transform-origin: left center;
}
.parkett{
  margin-top: -0.2em;
  margin-left: 20px;
}
.bodenbelag {
  margin-top: 0em;
  margin-left: 50px;
}
.polster {
  margin-top: -0.2em;
  margin-left: 120px;
}
.gardinen {
  margin-top: -0.2em; 
  margin-left: 60px;
}
.sonnenschutz {
  margin-top: 0.2em;  
  margin-left: 140px;
}
.reinigung {
  margin-top: 0.2em;
  margin-left: 140px;
}

.section.leistung-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  max-width: 1200px;
  margin: 40px auto 0;      
  padding: 0;               
}

.leistung-left {
  flex: 0 0 40%;
  max-width: 440px;
  margin: 0;
  padding: 0;
}

.leistung-text p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  line-height: 1.75;
  margin-top: 12px;
}

.leistung-right {
  flex: 1;               
  max-width: 600px;
  margin-top: 32px;     
}

.leistung-slider.kompakt-slider{
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

/* Track bewegt sich */
.leistung-slider.kompakt-slider .leistung-track{
  display: flex;
  transition: transform .5s ease;
  will-change: transform;
}

/* jedes Slide genau 100% */
.leistung-slider.kompakt-slider .leistung-slide{
  flex: 0 0 100%;
}

/* Einheitliche Bildhöhe */
.leistung-slider.kompakt-slider .leistung-slide img{
  width: 100%;
  height: 320px;     
  object-fit: cover;  
  display: block;
  border: 10px;
}


/* ====================== MOBILE ====================== */
@media (max-width: 900px) {
  .section.leistung-intro {
    flex-direction: column;
    max-width: 100%;       
    margin: 28px 0 0;
  }

  .leistung-left,
  .leistung-right {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .leistung-right {
    margin-top: 16px;
  }


  .leistung-slide img {
    max-height: 260px;
  }
}

@media (max-width: 600px) {
  .leistung-slide img {
    max-height: 220px;
  }
}
 
/* Lieferanten */

.lieferanten-title {
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    margin: 70px 0 30px;
}

.lieferanten-slider {
    overflow: hidden;
    width: 100%;
    margin: 0 auto 60px;
    padding: 10px 0;
    position: relative;
}

.lieferanten-track {
    display: flex;
    align-items: center;
    gap: 120px;                  /* Abstand zwischen Logos */
    will-change: transform;      /* für smoother anim */
    transform: translateX(0);    /* Startposition */
}

/* Logos */
.lieferanten-track img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%);
    opacity: 0.9;
    transition: 0.25s ease;
    flex-shrink: 0;              /* Logos schrumpfen nicht zusammen */
}

.lieferanten-track img:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Mobile Anpassung */
@media (max-width: 700px) {
    .lieferanten-track img {
        height: 80px;
    }
    .lieferanten-track {
        gap: 70px;
    }
}

/* Ansprechpartner */
.ansprechpartner-section {
    margin: 80px auto;
    padding: 40px 0;
    margin-bottom: 0%;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}



.ansprechpartner-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
  
}

/* Bild links */
.ansprechpartner-left img {
    width: 420px;
    height: auto;
    object-fit: contain;
}

/* Textbereich rechts */
.ansprechpartner-right {
    flex: 1;
}

/* Name + rote Schreibschrift */
.ansprechpartner-name {
    font-size: 40px;
    margin: 0 0 10px;
    position: relative;
}

/* Beschreibung */
.ansprechpartner-text {
    font-size: 20px;
    margin: 14px 0 28px;
}


/* Kontaktboxen */
.contact-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #b02022;
    padding: 16px 26px;
    border-radius: 4px;
    margin-bottom: 16px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    width: fit-content;
    transition: 0.25s ease;
}

.contact-box:hover {
    background: #333;
}

.contact-box .icon {
    font-size: 22px;
}

/* Mobile */
@media (max-width: 900px) {
    .ansprechpartner-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .ansprechpartner-left img {
        width: 300px;
    }

    .contact-box {
        margin-inline: auto;
    }
}

/* ===============================================
   Kontakt – Karten-Einwilligung
   =============================================== */

.map-section h2{
  margin-bottom: 14px;
}

.map-consent{
  position: relative;
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  background: #fff;
}

/* Platzhalter nur vor dem Laden */
.map-consent:not(.is-loaded){
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
    url('../img/kontakt/gebaeude.jpg') center/cover no-repeat;
}

/* Sobald Karte geladen wurde */
.map-consent.is-loaded{
  display: block;
  padding: 0;
  background: transparent;
}

.map-consent-inner{
  width: min(680px, 100%);
  background: rgba(255,255,255,.95);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  padding: clamp(20px, 3vw, 32px);
  text-align: center;
  position: relative;
  z-index: 2;
}

.map-consent-inner h3{
  margin: 0 0 12px;
  color: var(--accent);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
}

.map-consent-inner p{
  margin: 0 0 14px;
  line-height: 1.7;
}

.map-consent-actions{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.map-consent-decline{
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 100px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform .12s ease, box-shadow .25s ease, background .2s ease;
}

.map-consent-decline:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  background: #faf8f5;
}

.map-consent-note{
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--muted);
}

.map-consent-note a{
  color: var(--accent);
  text-decoration: none;
}

.map-consent-note a:hover{
  text-decoration: underline;
}

.map-frame-wrap{
  width: 100%;
  height: 100%;
}

.map-consent.is-loaded .map-frame-wrap{
  display: block;
  min-height: 500px;
}

.map-frame-wrap iframe{
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

/* Mobile */
@media (max-width: 700px){
  .map-consent{
    min-height: 420px;
  }

  .map-consent:not(.is-loaded){
    padding: 16px;
  }

  .map-frame-wrap iframe{
    height: 420px;
  }
}

/* ===============================================
   Herstellung un Verlegung vom Profi 
   =============================================== */

.wide-card--leistung {
  display: block;  /* nicht das 2-Spalten-Grid benutzen */
  padding: 32px clamp(24px, 3vw, 40px) 40px;  /* oben / seitlich / unten */
}

/* Überschrift in der Karte */

.wide-card.wide-card--leistung > h2{
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;

  margin: 0 0 10px;
  padding-bottom: 18px;     /* Platz für die Kurve */
  font-size: clamp(1.6rem, 2.2vw, 2rem);
  position: relative;
}

.wide-card.wide-card--leistung > h2::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%) rotate(-1.2deg);

  width: min(520px, 70%);   /* „über die Textbreite“ */
  height: 10px;

  background: var(--accent);
  border-radius: 999px;     /* pillenförmig */
  opacity: 0.95;

  /* macht’s optisch „geschweift“ */
  clip-path: ellipse(50% 40% at 50% 50%);
}

   /* 3 Spalten Grid für Widecard-Elemente */
.widecard-3grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column: 1 / -1;                   
    gap: 40px 60px;
    margin-top: 20px;
    text-align: center;
    height: auto;
    align-items: start;
}

.wc3-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--ink);
}

.wc3-item p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 35ch;
    margin: 0 auto;
    text-align: justify;
    hyphens: auto;
}

/* ===============================================
   Bodenarten
   =============================================== */

.section.bodenarten h2{
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(2.2rem, 3.2vw, 3rem);
}

/* Liste */
.bodenarten-list{
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* Eine Zeile: 2 Spalten */
.bodenart-row{
  display: grid;
  grid-template-columns: 1fr 1fr; /* je Hälfte */
  gap: 26px;
  align-items: center;
}

/* Bild */
.bodenart-media{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  min-height: 320px; /* sorgt für "großes" Bild */
}

.bodenart-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Text-Card: weiß, etwas kleiner als Bild */
.bodenart-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(16px, 2.2vw, 26px);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);

  /* kleiner wirken als Bild */
  max-width: 520px;
  justify-self: center;
}

.bodenart-card h3{
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 1.5rem;
}

.bodenart-card p{
  margin: 0 0 12px;
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
}

.bodenart-card ul{
  margin: 0;
  padding-left: 1.1em;
}

.bodenart-card li{
  margin: 0.25em 0;
}

/* umgekehrte Zeile: Bild rechts */
.bodenart-row.is-reverse .bodenart-media{
  order: 2;
}
.bodenart-row.is-reverse .bodenart-card{
  order: 1;
}

.section.bodenarten .bodenart-row[id]{
  scroll-margin-top: 50vh;  /* 50% der Viewport-Höhe */
}

/* Responsive: Mobile untereinander */
@media (max-width: 900px){
  .bodenart-row{
    grid-template-columns: 1fr;
  }

  .bodenart-media{
    min-height: 220px;
  }

  .bodenart-card{
    max-width: 100%;
    justify-self: stretch;
  }

  /* Reverse macht mobil keinen Unterschied – alles untereinander */
  .bodenart-row.is-reverse .bodenart-media,
  .bodenart-row.is-reverse .bodenart-card{
    order: initial;
  }
}


/* Tablet → 2 Spalten */
@media (max-width: 900px) {
  .widecard-3grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Handy → 1 Spalte */
@media (max-width: 600px) {
  .widecard-3grid {
    grid-template-columns: 1fr;
  }
}

/* ===============================================
   Über Uns
   =============================================== */

.ueber-intro .leistung-left{
  flex: 0 0 48%;
  max-width: 520px;
}

.ueber-intro .leistung-right{
  flex: 1;
  max-width: 600px;
  margin-top: 32px;
}

.ueber-media{
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.ueber-media img{
  width: 100%;
  height: 320px;         /* gleiche Höhe wie bei .leistung-slide img */
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Mobile */
@media (max-width: 900px){
  .ueber-intro .leistung-right{
    max-width: 100%;
    margin-top: 16px;
  }

  .ueber-media img{
    height: 260px;
  }
}

@media (max-width: 600px){
  .ueber-media img{
    height: 220px;
  }
}


/* Karten */
.about .bodenarten--portrait .bodenart-media{
  max-width: 300px;
  width: 100%;           
  justify-self: center;  
  align-self: center;     
  min-height: 350px;
}


/* Bild sauber skalieren */
.about .bodenart-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* ===============================================
   BEFORE / AFTER SLIDER
   =============================================== */

.ba-slider{
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 14px 38px rgba(0,0,0,.10);
  position: relative;
  aspect-ratio: 3 / 2;
  width: 80%;
  --pos: 45%;
  background: #fff;
}

/* Beide Bilder müssen identisch die Box füllen */
.ba-slider > img.ba-before,
.ba-slider .ba-after img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
}

/* Nachher-Layer liegt über dem Vorher-Bild und wird "abgeschnitten" */
.ba-slider .ba-after{
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* sichtbar ist der Bereich rechts vom Regler */
  clip-path: inset(0 0 0 var(--pos));
}

/* Trennlinie */
.ba-slider .ba-line{
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  transform: translateX(-50%);
  background: rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(0,0,0,.10), 0 10px 30px rgba(0,0,0,.18);
  pointer-events: none;
}

/* Regler-Knob */
.ba-slider .ba-knob{
  position: absolute;
  left: var(--pos);
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.65);
  box-shadow: 0 10px 22px rgba(0,0,0,.16), inset 0 0 0 1px rgba(0,0,0,.05);
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.ba-slider .ba-knob::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width: 2px;
  height: 18px;
  border-radius: 2px;
  background: rgba(0,0,0,.20);
  box-shadow: -5px 0 0 rgba(0,0,0,.14), 5px 0 0 rgba(0,0,0,.14);
  opacity: .85;
}

/* Unsichtbarer Range-Input zum Ziehen */
.ba-slider .ba-range{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: ew-resize;
}

/* Hint */
.ba-slider .ba-hint{
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 999px;
  color: rgba(255,255,255,.92);
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.ba-slider.is-used .ba-hint{
  opacity: 0;
  transform: translateY(-6px);
}

.ba-slider:hover .ba-knob{
  background: rgba(255,255,255,.62);
}


/* ===============================================
   FOOTER
   =============================================== */
footer.footer{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:24px;
  border-top:3px solid var(--accent);
  padding-top:18px;
  margin-top:40px;
}

.footer.reveal{
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width:900px){
  footer.footer{ flex-direction:column; }
}

/* ===============================================
   ÜBER UNS
   =============================================== */
.about{ max-width:136ch; margin:0 auto; font-size:1.05rem; }
.about p{
  text-align:justify;
  text-justify:inter-word;
  hyphens:auto; -webkit-hyphens:auto; -ms-hyphens:auto;
  line-height:1.8;
  margin:1.1em 0;
}
.about .team-photo,
.thumb.team-photo{
  width:100%; max-width:900px;
  margin:1.5em auto;
  border-radius:20px;
  overflow:hidden;
  aspect-ratio:3/2;
  box-shadow:0 4px 24px rgba(0,0,0,.08);
}
.about .team-photo img,
.thumb.team-photo img{
  width:100%; height:100%;
  object-fit:cover; object-position:center top;
  display:block;
}
.about .closing{
  text-align:center;
  margin-top:2em;
  font-style:italic;
  color:var(--muted);
  line-height:1.6;
}
.about h1{
  font-size:1.8rem;
  margin-bottom:1rem;
  color:var(--ink); /* fix */
}

/* ============================================
   ÜBER-UNS SLIDER (eigenständig!)
   ============================================ */

.ueber-slider-section{
  margin-top: 80px;
  margin-bottom: 60px;
}

.ueber-slider-title{
  text-align:center;
  font-size:32px;
  margin-bottom:32px;
  font-weight:600;
  margin-top: 30px;
}

.ueber-slider{
  width:100%;
  overflow:hidden;
  position:relative;
}

.ueber-slider-track{
  display:flex;
  gap:60px;
  align-items:center;
  will-change: transform;
}

.ueber-slider-track img{
  height:120px;
  width:auto;
  object-fit:contain;
  display:block;
  filter:grayscale(0%);
  opacity:0.9;
  transition:0.3s ease;
}

.ueber-slider-track img:hover{
  opacity:1;
  transform:scale(1.05);
}

@media(max-width:700px){
  .ueber-slider-track img{
    height:90px;
  }
  .ueber-slider-track{
    gap:40px;
  }
}


/* ===============================================
   Karriere
   =============================================== */

.video-card{
  grid-column: 1 / -1;          /* volle Breite im Grid */
  background:#fff;
  border:1px solid var(--border);
  border-radius:18px;
  padding:20px;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  overflow:hidden;
}

/* optional: Title */
.video-card-title{
  margin: 0 0 14px;
  color: var(--accent);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
}

/* Video sauber in einem Rahmen */
.video-card-media{
  border-radius:12px;
  overflow:hidden;
  background:#000;              /* falls Balken entstehen */
}

/* Video komplett breit, kein Verzerren */
.video-card-media video{
  width:100%;
  height:auto;
  display:block;
}


.jobs-intro {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  line-height: 1.75;
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,.05);
  overflow: hidden;
}

/* Kopfzeile mit Titel links, Plus rechts */
.job-card-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: none;
  cursor: pointer;
  text-align: left;
}

/* Titelblock darf schrumpfen und umbrechen */
.job-title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.job-title-wrap h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--accent);
  word-wrap: break-word;
  hyphens: auto;
}


/* Plus-Button immer rechts, feste Größe */
.job-toggle {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-ink);
  background: var(--accent);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

/* Zustand offen */
.job-card.open .job-toggle {
  transform: rotate(90deg);
  background: #fff;
  color: var(--accent);
  border-color: var(--accent);
}

/* Aufklappbarer Bereich */
.job-body {
  padding: 0 18px 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding-top .25s ease, padding-bottom .25s ease;
}

.job-card.open .job-body {
  padding-top: 10px;
  padding-bottom: 16px;
}

.job-body h4 {
  margin: 0.3rem 0 0.2rem;
  font-size: 1rem;
  color: var(--accent);
}

.job-body p {
  margin: 0 0 0.7rem;
  line-height: 1.6;
}

.job-body ul {
  margin: 0 0 0.8rem 1.2rem;
  padding-left: 0;
}

.job-body li {
  margin-bottom: 0.2rem;
}

/* Mobile-Optimierung */
@media (max-width: 640px) {
  .job-card-header {
    padding: 14px 14px;
    align-items: flex-start;
  }

  .job-toggle {
    width: 28px;
    height: 28px;
    font-size: 16px;
    margin-top: 2px;
  }

  .job-title-wrap h3 {
    font-size: 1rem;
  }
}

/* ===============================================
   GESCHICHTE – ZEITSTRAHL (Text + Bild, Karten-Design)
   =============================================== */

.geschichte-intro{
  margin: 0.8rem 0 3rem;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  line-height: 1.9;
  font-size: 1.05rem;
}

/* Timeline Container */
.timeline{
  position: relative;
  margin: 50px 0 120px;
  padding: 20px 0 50px;
}

/* Animierte Linie in der Mitte */
.timeline-line{
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom,
    #d4c9b8,
    var(--accent),
    #d4c9b8
  );
  background-size: 100% 200%;
  transform: translateX(-50%);
  opacity: 0.95;
  animation: timelineFlow 10s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes timelineFlow{
  0%   { background-position: 0 0; }
  100% { background-position: 0 100%; }
}

/* Timeline Item */
.timeline-item{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  margin: 90px 0;
  z-index: 1;

  /* ✅ NEU: Smooth states statt Pop-Keyframes */
  opacity: 0.55;
  transition: opacity 280ms ease;
}

/* Spiegelung bei geraden Einträgen */
.timeline-item:nth-child(even){
  flex-direction: row-reverse;
}

/* Text-Karte */
.timeline-content{
  position: relative;
  flex: 0 0 42%;
  background: #fff;
  border-radius: 22px;
  padding: 26px 28px 28px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 46px rgba(0,0,0,.12);

  /* ✅ NEU: Animieren wir nur die Karten (ruhiger als .timeline-item) */
  transform: translateY(12px) scale(0.99);
  opacity: 0.75;
  transition: transform 320ms ease, opacity 320ms ease, filter 320ms ease;
  will-change: transform, opacity;
}

.timeline-content h2{
  margin: 0 0 .8rem;
  font-size: 1.5rem;
  color: var(--accent);
}

.timeline-content p{
  margin: 0 0 .7rem;
  line-height: 1.9;
  font-size: 1.05rem;
}

/* Bild-Karte */
.timeline-media{
  position: relative;
  flex: 0 0 42%;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 46px rgba(0,0,0,.12);
  overflow: hidden;
  min-height: 230px;

  /* ✅ NEU: animierbar */
  transform: translateY(12px) scale(0.99);
  opacity: 0.75;
  transition: transform 320ms ease, opacity 320ms ease, filter 320ms ease;
  will-change: transform, opacity;
}

.timeline-media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* dezenter Bild-Overlay */
.timeline-media::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.25),
    rgba(0,0,0,0) 55%
  );
  opacity:.65;
  pointer-events:none;
}

/* Jahr-Badge in der Mitte */
.timeline-year{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 26px rgba(183,34,34,.45);
  z-index: 2;
  white-space: nowrap;
}

/* Pfeil von Text zur Mitte */
.timeline-content::before{
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  background: #fff;
  border: 1px solid var(--border);
  transform: translateY(-50%) rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before{
  right: -9px;
}

.timeline-item:nth-child(even) .timeline-content::before{
  left: -9px;
}

/* =========================================================
   ✅ Scroll-Effekt: in-view & active (smooth, kein Wackeln)
   ========================================================= */

/* Element ist im Viewport: normal sichtbar */
.timeline-item.in-view{
  opacity: 1;
}

.timeline-item.in-view .timeline-content,
.timeline-item.in-view .timeline-media{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* "Wo man steht": active (nahe Viewport-Mitte) */
.timeline-item.active .timeline-content,
.timeline-item.active .timeline-media{
  transform: translateY(0) scale(1.015);
  filter: saturate(1.05);
}

/* Optional: respektiere Reduced Motion */
@media (prefers-reduced-motion: reduce){
  .timeline-line{
    animation: none;
  }
  .timeline-item,
  .timeline-content,
  .timeline-media{
    transition: none;
    transform: none;
  }
}

/* Mobile Layout */
@media (max-width: 800px){

  .timeline-line{
    left: 22px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even){
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-left: 42px;
    margin: 60px 0;
  }

  .timeline-year{
    left: 22px;
    transform: translate(-50%, -50%);
  }

  .timeline-content,
  .timeline-media{
    width: 100%;
  }

  .timeline-media{
    min-height: 190px;
  }

  .timeline-content h2{
    font-size: 1.35rem;
  }

  .timeline-content p{
    font-size: 1rem;
  }

  .timeline-content::before{
    left: -9px;
    right: auto;
  }
}


/* ===============================================
   RECHTSTEXTE (Impressum / Datenschutz)
   =============================================== */
.legal{ max-width:136ch; margin:0 auto; font-size:1.05rem; }
.legal p,
.legal li{
  text-align:justify;
  text-justify:inter-word;
  hyphens:auto; -webkit-hyphens:auto; -ms-hyphens:auto;
  line-height:1.7;
  letter-spacing:.01em;
  word-spacing:.05em;
}
.legal h1{ margin:0 0 .6em; }
.legal h2{
  margin:1.6em 0 .4em;
  font-size:1.35rem;
  font-weight:800;
  color:var(--accent);
}
.legal h3{
  margin:1.2em 0 .3em;
  color:var(--accent);
}
.legal ol.sections{ counter-reset:sec; margin:0; padding-left:0; }
.legal ol.sections>li{
  list-style:none;
  counter-increment:sec;
  position:relative;
  padding-left:3.2em;
  margin:1.6em 0;
}
.legal ol.sections>li::before{
  content:counter(sec) ".";
  position:absolute; left:0; top:0; width:2.6em;
  font-weight:800; font-size:1.35rem; line-height:1.3;
  color:var(--accent);
}
.legal ol.alpha{ counter-reset:alpha; margin:.5em 0 0; padding-left:0; }
.legal ol.alpha>li{
  list-style:none;
  counter-increment:alpha;
  position:relative;
  padding-left:2.4em;
  margin:.6em 0;
}
.legal ol.alpha>li::before{
  content:counter(alpha,lower-alpha) ")";
  position:absolute; left:0; top:.05em; width:1.8em;
  font-weight:700; color:var(--muted);
}
.legal .term{ font-weight:700; }
.legal address{ white-space:pre-line; font-style:normal; }
@media (max-width:640px){ .legal{ font-size:1rem; } }



/* ===============================================
   MOBILE HERO TWEAKS
   =============================================== */
@media (max-width:640px){
  .home .hero{
    min-height:90svh;
    padding-top:calc(120px + 4vh);
    padding-bottom:120px;
  }
}

/* ===============================================
   WIDE-CARD (Höhe = Bildhöhe)
   =============================================== */

.wide-card{
  display:grid;
  grid-template-columns: 1fr 1fr;     /* 50/50 */
  align-items:stretch;                /* beide Spalten gleich hoch */
  overflow:hidden;
  border-radius:18px;
  background:#fff;
  border:1px solid var(--border);
  box-shadow:0 8px 22px rgba(0,0,0,.08);
  max-width:1200px;
  margin:40px auto;
  min-height:unset;                   /* WICHTIG: keine erzwungene Höhe */
}

.wide-card-left{
  position: relative;
  overflow: hidden;
}
.wide-card-left img{
  position: absolute;     /* Bild über die gesamte Spalte spannen */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* sauber zuschneiden, kein Verzerren */
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

.wide-card:hover .wide-card-left img{ transform:scale(1.05); }

/* ===============================================
   Rechte Seite der Wide-Card (Blocksatz + sauberes Layout)
   =============================================== */
.wide-card-right {
  padding: clamp(16px, 2.8vw, 40px) clamp(18px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: justify;             /* → Blocksatz */
  text-justify: inter-word;
  hyphens: auto;                   /* Trennung für schöne Blockkanten */
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.wide-card-right h2 {
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  text-align: left;                /* Überschrift bleibt linksbündig */
}

.wide-card-right p {
  margin-bottom: 1.6rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 55ch;
}

.wide-card-right .btn {
  align-self: flex-start;          /* Button bündig mit Textbeginn */
  margin-top: 0.4rem;
}


/* ===============================================
   Mobile: Bild oben – füllt Breite und bleibt proportional
   =============================================== */
@media (max-width:900px) {
  .wide-card {
    grid-template-columns: 1fr;
  }

  .wide-card-left {
    position: relative;
    height: clamp(220px, 55vw, 340px);   /* Dynamisch zwischen klein & groß */
  }

  .wide-card-left img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .wide-card-right {
    padding: 24px;
    text-align: justify;
    text-justify: inter-word;
    align-items: center;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
  }

  .wide-card-right h2 {
    text-align: center;
  }

  .wide-card-right .btn {
    align-self: center;
  }
}


/* ===============================================
   Vorteile-Bereich – maximal 2 Spalten & größer
   =============================================== */

/* Titel bleibt gleich */
.vorteile-title {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
    font-size: 32px;
    font-weight: 600;
}

/* Basis: max 2 Spalten (aktuelle Seite) */
.vorteile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));  /* max 2 */
    gap: 50px 80px;
    max-width: 1300px;
    margin: 0 auto;
    text-align: center;
}

/* Variante: max 3 Spalten (neue Seite) */
.vorteile-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* max 3 */
}

/* Tablet: bei 3er-Layout auf 2 Spalten runtergehen */
@media (max-width: 1100px) {
    .vorteile-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Handy: immer 1 Spalte, egal ob 2er oder 3er Layout */
@media (max-width: 800px) {
    .vorteile-grid,
    .vorteile-grid--3 {
        grid-template-columns: 1fr;
    }
}

/* Karten-Styles (für beide Layouts gleich) */
.vorteil-item {
    padding: 20px 10px;
}

.vorteil-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.vorteil-item h3 {
    font-size: 21px;
    margin-bottom: 14px;
    font-weight: 600;
}

.vorteil-item p {
    font-size: 17px;
    line-height: 1.6;
    color: #444;
    max-width: 500px;
    margin: 0 auto;
    text-align: justify;
}


/* Vorteile für Karriere-Seite*/
.vorteile-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Tablet */
@media (max-width: 1100px) {
    .vorteile-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Handy */
@media (max-width: 800px) {
    .vorteile-grid--4 {
        grid-template-columns: 1fr;
    }
}

/* ===============================================
   Fachbereiche – Slider / Slideshow
   =============================================== */

.fachbereich-title {
  text-align: center;
  margin: 80px 0 30px;
  font-size: 32px;
  font-weight: 600;
}

.fachbereich-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;

  /* wichtig: Variable hier setzen, damit Buttons sie auch "sehen" */
  --fach-img-w: clamp(280px, 60vw, 700px);
}

/* Track */
.fachbereich-track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Slide */
.fach-slide {
  min-width: 100%;
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Bild */
.fach-slide img {
  width: var(--fach-img-w);
  height: auto;
  display: block;
}

/* ===============================================
   Desktop/Tablet: Textbox oben AUF dem Bild
   - volle Bildbreite
   - direkt am oberen Rand
   - alles zentriert
   =============================================== */

.fach-text {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);

  width: var(--fach-img-w);
  box-sizing: border-box;

  /* kompakter */
  padding: clamp(7px, 0.9vw, 10px) clamp(10px, 1.2vw, 14px);

  /* weißer Kasten wie "am Anfang" (Cards) */
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
 

  /* Text schwarz */
  color: var(--ink);
  text-align: center;
}

/* Überschrift */
.fach-text h3 {
  margin: 0 0 0.2rem;
  font-weight: 600;
  font-size: clamp(0.95rem, 1vw + 0.7rem, 1.2rem);
  text-align: center;
  color: var(--ink);
}

/* Text */
.fach-text p {
  margin: 0;
  line-height: 1.35;
  font-size: clamp(0.82rem, 0.8vw + 0.6rem, 1rem);
  text-align: center;
  color: var(--ink);

  hyphens: none;
  -webkit-hyphens: none;
  -ms-hyphens: none;
}

/* ===============================================
   Mobile: Text unter das Bild, mittig
   =============================================== */
@media (max-width: 768px) {
  .fach-text {
    position: static;
    transform: none;
    width: var(--fach-img-w);
    margin-top: 12px;

    /* unten normaler weißer Kasten */
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;

    color: var(--ink);
    text-align: center;
  }

  .fach-text h3,
  .fach-text p {
    text-align: center;
    color: var(--ink);
  }
}

/* ===============================================
   Pfeile
   =============================================== */

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  font-size: clamp(20px, 4vw, 45px);
  padding: clamp(6px, 1.5vw, 10px) clamp(10px, 2.5vw, 18px);

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  border: none;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.2s;
  z-index: 10;
}

.slider-btn:hover {
  background: rgba(255, 255, 255, 0.85);
}

.slider-btn.left { left: 20px; }
.slider-btn.right { right: 20px; }

/* ===============================================
   Mobile: Bild breiter + Pfeile am Bildrand (4:3)
   =============================================== */
@media (max-width: 768px) {

  /* Bild am Handy größer */
  .fachbereich-slider{
    --fach-img-w: clamp(320px, 90vw, 900px);
  }

  /* Pfeile vertikal (leicht höher als mathematische Mitte, weil du sagtest "zu tief") */
  .slider-btn{
    top: calc(var(--fach-img-w) * 3 / 8 - 10px);
  }

  /* Pfeile an die Bildkanten */
  .slider-btn.left{
    left: calc(50% - (var(--fach-img-w) / 2));
  }

  .slider-btn.right{
    left: calc(50% + (var(--fach-img-w) / 2));
    right: auto;
    transform: translate(-100%, -50%);
  }
}

/* ===============================================
   Administerbereich – Job Listings
   =============================================== */

.job-body{
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s ease;
}


