/* ============================================================
   TWIN BAUÂ² â€” Komplette Fix-Patches (alle Ã„nderungen in einer Datei)
   
   Wird NACH polish.css geladen. EnthÃ¤lt:
     1. Modal: Hintergrund-Fix auf Mobile (kein Bleeding)
     2. Modal-Galerie: Bilder klar abgrenzen
     3. Modal-Galerie: 1 Spalte auf Mobile (statt 2)
     4. Logo: Ã¼berall einheitlich 48/40/36/30 px
     5. Logo-Hochzahl Â²: weiÃŸ im Footer, dunkel im Nav
     6. Footer-Texte auf Mobile: deutlich grÃ¶ÃŸer
   ============================================================ */


/* ------------------------------------------------------------
   1. MODAL â€” transparenter Hintergrund auf Mobile beheben
   
   styles.css Z. 1006 setzt max-height ohne overflow-y â†’ Card
   wird abgeschnitten, Inhalt rendert â€žschwebend" darunter.
   Wir aktivieren Scrollen und erzwingen soliden Hintergrund.
   ------------------------------------------------------------ */
.tb-modal-card {
  background: #EDEAE4 !important;
  background: var(--tb-bg) !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .tb-modal-card {
    max-height: calc(100vh - 24px) !important;
    overflow-y: auto !important;
  }
}

/* Backdrop-blur deaktivieren (rendert auf iOS Safari inkonsistent),
   stattdessen krÃ¤ftigerer dunkler Backdrop */
.tb-modal {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(14, 14, 14, 0.82) !important;
}


/* ------------------------------------------------------------
   2. MODAL-GALERIE â€” Bilder sauber abgrenzen
   ------------------------------------------------------------ */
.tb-modal-gallery .tb-placeholder {
  background: #DAD6CE;
  overflow: hidden;
}
.tb-modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* ------------------------------------------------------------
   3. MODAL AUF MOBILE/TABLET â€” alle Galerie-Fotos UNTEREINANDER
   
   polish.css Z. 528 erzwingt mit !important 2 Spalten.
   HÃ¶here SpezifitÃ¤t + breiterer Breakpoint (bis 768 px), damit
   auch groÃŸe Phones im Hochformat 1 Spalte zeigen.
   ------------------------------------------------------------ */
@media (max-width: 768px) {
  /* Body einspaltig */
  .tb-modal-body,
  .tb-modal .tb-modal-body,
  #projectModal .tb-modal-body {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  .tb-modal-list li {
    font-size: 15px;
    color: #161616;
  }

  /* Galerie: 1 Spalte */
  .tb-modal-gallery,
  .tb-modal .tb-modal-gallery,
  #projectModal .tb-modal-gallery,
  .tb-modal-card .tb-modal-gallery {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
  }

  /* Jedes Bild voll breit */
  .tb-modal-gallery > *,
  .tb-modal .tb-modal-gallery > *,
  #projectModal .tb-modal-gallery > *,
  .tb-modal-card .tb-modal-gallery > * {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
  }

  .tb-modal-gallery .tb-placeholder {
    aspect-ratio: 4 / 3 !important;
  }
}


/* ------------------------------------------------------------
   4. LOGO â€” Ã¼berall einheitlich, dezent
   
   Desktop (â‰¥ 1101 px):   32 px
   Tablet  (700â€“1100 px): 28 px
   Handy   (â‰¤  699 px):   24 px
   Mini    (â‰¤  380 px):   20 px
   ------------------------------------------------------------ */

/* Basis: Desktop 32 px */
.tb-logo,
.tb-nav .tb-logo,
.tb-footer .tb-logo-light,
.tb-footer .tb-logo {
  font-size: 32px !important;
  letter-spacing: 0.22em !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

/* Hochzahl Â² â€” GrÃ¶ÃŸe + Position */
.tb-logo sup,
.tb-nav .tb-logo sup,
.tb-footer .tb-logo-light sup,
.tb-footer .tb-logo sup {
  font-size: 0.45em !important;
  top: -0.45em !important;
  margin-left: 4px !important;
  font-weight: 500 !important;
}

/* Hochzahl Â² im Footer â†’ WEISS (war gelb) */
.tb-footer .tb-logo-light sup,
.tb-footer .tb-logo sup {
  color: #ffffff !important;
}

/* Hochzahl Â² im Nav â†’ dunkel (passt zu hellem Nav-Hintergrund) */
.tb-nav .tb-logo sup {
  color: #0E0E0E !important;
}

/* Footer-Logo Spacing */
.tb-footer .tb-logo-light {
  margin-bottom: 20px !important;
  display: inline-block !important;
}

/* Nav-HÃ¶he Desktop */
@media (min-width: 1101px) {
  .tb-nav-inner {
    min-height: 72px !important;
  }
}

/* Tablet: 28 px */
@media (min-width: 700px) and (max-width: 1100px) {
  .tb-logo,
  .tb-nav .tb-logo,
  .tb-footer .tb-logo-light,
  .tb-footer .tb-logo {
    font-size: 28px !important;
    letter-spacing: 0.20em !important;
  }
}

/* Handy: 24 px */
@media (max-width: 699px) {
  .tb-logo,
  .tb-nav .tb-logo,
  .tb-footer .tb-logo-light,
  .tb-footer .tb-logo {
    font-size: 24px !important;
    letter-spacing: 0.16em !important;
  }
  .tb-nav-inner {
    min-height: 56px !important;
  }
  /* Footer-Logo auf Mobile GRÃ–SSER als Nav-Logo (mehr Platz, prominenter) */
  .tb-footer .tb-logo-light,
  .tb-footer .tb-logo {
    font-size: 38px !important;
    letter-spacing: 0.20em !important;
    margin-bottom: 18px !important;
  }
}

/* Mini-Handy: 20 px */
@media (max-width: 380px) {
  .tb-logo,
  .tb-nav .tb-logo,
  .tb-footer .tb-logo-light,
  .tb-footer .tb-logo {
    font-size: 20px !important;
    letter-spacing: 0.14em !important;
  }
  /* Auch Mini-Handy: Footer-Logo bleibt prominenter */
  .tb-footer .tb-logo-light,
  .tb-footer .tb-logo {
    font-size: 32px !important;
    letter-spacing: 0.18em !important;
  }
}


/* ------------------------------------------------------------
   5. FOOTER-TEXTE auf Mobile â€” deutlich grÃ¶ÃŸer fÃ¼r Lesbarkeit
   
   Vorher: Ãœberschriften 10 px (winzig), Links 13 px.
   Jetzt:  Ãœberschriften 14 px, Links 17 px, Tagline 15 px.
   ------------------------------------------------------------ */
@media (max-width: 699px) {

  /* Tagline unter dem Logo */
  .tb-footer-tag {
    font-size: 15px !important;
    line-height: 1.6 !important;
    margin-bottom: 12px !important;
  }

  /* Spalten-Ãœberschriften (LEISTUNGEN / UNTERNEHMEN / KONTAKT) */
  .tb-footer-h {
    font-size: 14px !important;
    letter-spacing: 0.18em !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
  }

  /* Links und Text-Spans in den Spalten */
  .tb-footer a,
  .tb-footer span {
    font-size: 17px !important;
    line-height: 1.8 !important;
    padding: 4px 0 !important;
  }

  /* Bottom-Zeile (Copyright + Impressum/Datenschutz) */
  .tb-footer-bottom,
  .tb-footer-bottom span,
  .tb-footer-bottom a {
    font-size: 13px !important;
  }
}


/* ------------------------------------------------------------
   6. STICKY NAV auf Mobile â€” MenÃ¼ klebt immer oben
   
   Das Nav ist auf Desktop schon sticky. Wir erzwingen es auch
   auf Mobile mit solidem Hintergrund.
   ------------------------------------------------------------ */
.tb-nav {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  background: #EDEAE4 !important;
  background: var(--tb-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* ------------------------------------------------------------
   CLIENT UPDATE â€” Mai 2026
   1. Logo etwas grÃ¶ÃŸer auf Desktop
   2. Social-Icons (Instagram / TikTok) im Nav
   3. Mobile: Texte kÃ¼rzen fÃ¼r bessere Lesbarkeit
   ------------------------------------------------------------ */

/* --- 1. Logo grÃ¶ÃŸer auf Desktop (ab 1101px) --- */
@media (min-width: 1101px) {
  .tb-logo,
  .tb-nav .tb-logo,
  .tb-footer .tb-logo-light,
  .tb-footer .tb-logo {
    font-size: 38px !important;
    letter-spacing: 0.22em !important;
  }
  .tb-nav-inner {
    min-height: 80px !important;
  }
}

/* --- 2. Social-Icons im Nav --- on-brand: ohne Border, sauber, mit Amber-Hover */
.tb-nav .tb-nav-social {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  gap: 4px;
  margin-right: 8px;
  padding-right: 14px;
  border-right: 1px solid rgba(0, 0, 0, 0.10);
  flex: 0 0 auto;
}
.tb-nav .tb-nav-social-link {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  flex: 0 0 36px !important;
  border-radius: 8px;
  color: #161616 !important;
  color: var(--tb-ink) !important;
  background: transparent;
  border: 0;
  padding: 0;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
  text-decoration: none;
}
.tb-nav .tb-nav-social-link:hover {
  color: #C9962A !important;
  color: var(--tb-accent) !important;
  background: rgba(201, 150, 42, 0.10);
  transform: translateY(-1px);
}
.tb-nav .tb-nav-social-link svg {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  display: block !important;
  flex: 0 0 auto !important;
}

/* Auf Tablet/Mobil: Social-Icons bleiben im Header sichtbar,
   direkt links neben dem Burger-Button.
   Der Logo hat margin-right:auto und schiebt diese Gruppe nach rechts. */
@media (max-width: 1100px) {
  .tb-nav .tb-nav-social,
  header.tb-nav .tb-nav-social {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-left: 0 !important;
    margin-right: 8px !important;
    padding-right: 12px !important;
    border-right: 1px solid rgba(0, 0, 0, 0.12) !important;
  }
  .tb-nav .tb-nav-burger,
  header.tb-nav .tb-nav-burger {
    margin-left: 0 !important;
  }
}
@media (max-width: 480px) {
  .tb-nav .tb-nav-social,
  header.tb-nav .tb-nav-social {
    gap: 2px;
    margin-right: 6px !important;
    padding-right: 8px !important;
  }
  .tb-nav .tb-nav-social-link {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    flex: 0 0 34px !important;
  }
}

/* --- 3. Mobile: lÃ¤ngere Texte kÃ¼rzen --- */
@media (max-width: 699px) {
  /* Hero-Sub Text kÃ¼rzen */
  .tb-hero-sub .tb-hide-mobile,
  .tb-body .tb-hide-mobile,
  .tb-section-sub .tb-hide-mobile {
    display: none !important;
  }

  /* Ãœber-uns: zweiten Absatz auf Mobile ausblenden */
  #ueber-uns .tb-body + .tb-body {
    display: none !important;
  }

  /* Service-Beschreibungen etwas kompakter */
  .tb-service-blurb {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  /* Hero-Subtitle kompakter */
  .tb-hero-sub {
    font-size: 15px !important;
    line-height: 1.55 !important;
  }

  /* Section-Untertitel kompakter */
  .tb-section-sub {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  /* Kontakt-Beschreibung kompakter */
  #kontakt .tb-body {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  /* Warum-Wir Body kompakter */
  .tb-why-body {
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
}


/* ------------------------------------------------------------
   7. FIXED NAV â€” MenÃ¼ bleibt beim Scrollen oben
   
   Sticky funktioniert wegen overflow-x: hidden auf html nicht
   zuverlÃ¤ssig. Wir setzen das Nav daher auf position: fixed,
   was in jedem Browser und auch auf iOS stabil funktioniert.
   Body bekommt entsprechenden padding-top, damit der Inhalt
   nicht unter dem Nav verschwindet.
   ------------------------------------------------------------ */
header.tb-nav,
.tb-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
  background: #EDEAE4 !important;
  background: var(--tb-bg) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 2px 12px rgba(0,0,0,0.04);
}

/* Body braucht padding-top, damit der erste Inhalt nicht unter dem fixen Nav liegt */
body {
  padding-top: 80px !important;
}
@media (max-width: 1100px) {
  body {
    padding-top: 72px !important;
  }
}
@media (max-width: 699px) {
  body {
    padding-top: 56px !important;
  }
}

/* Scroll-Offset fÃ¼r Anker-Links, damit Section-Titel nicht unter dem fixen Nav landen */
section[id],
[id="top"],
[id="ueber-uns"],
[id="leistungen"],
[id="projekte"],
[id="warum"],
[id="stimmen"],
[id="kontakt"] {
  scroll-margin-top: 90px;
}
@media (max-width: 699px) {
  section[id],
  [id="top"],
  [id="ueber-uns"],
  [id="leistungen"],
  [id="projekte"],
  [id="warum"],
  [id="stimmen"],
  [id="kontakt"] {
    scroll-margin-top: 66px;
  }
}

/* Mobiles MenÃ¼ darf scrollbar werden, falls Inhalt hÃ¶her als Viewport */
@media (max-width: 1100px) {
  .tb-nav-mobile {
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}


/* ------------------------------------------------------------
   8. ICON-HÃ„RTUNG â€” sicherstellen, dass ALLE SVG-Icons
   ihre festgelegten MaÃŸe behalten
   
   Das polish.css setzt `svg { max-width: 100%; height: auto }`
   global. Das bricht SVGs in flex-Containern auf. Hier sichern
   wir alle bekannten Icon-Klassen explizit ab.
   ------------------------------------------------------------ */

/* Kontakt-Icons (Telefon, Mail, Ort) â€” explizit fixiert */
.tb-contact-icon {
  width: 22px !important;
  height: 22px !important;
  max-width: 22px !important;
  max-height: 22px !important;
  min-width: 22px;
  flex-shrink: 0;
  display: block;
}

/* Sicherheitsnetz: alle Nav-Social SVGs nie grÃ¶ÃŸer als ihr Container */
.tb-nav-social-link svg {
  flex-shrink: 0 !important;
}

/* Dot- und Tick-Elemente sind divs, brauchen aber flex-shrink, falls
   sie in flex-Containern stehen */
.tb-dot,
.tb-service-tick {
  flex-shrink: 0;
}