/* =========================================================================
   Dental Studio Tabari – statischer Nachbau
   Werbeagentur Hoffmann
   ========================================================================= */

/* Fonts (lokal) */
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/roboto-300.ttf') format('truetype'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/roboto-400.ttf') format('truetype'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/roboto-500.ttf') format('truetype'); }
@font-face { font-family: 'Roboto'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/roboto-700.ttf') format('truetype'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 200; font-display: swap; src: url('../fonts/oswald-200.ttf') format('truetype'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 300; font-display: swap; src: url('../fonts/oswald-300.ttf') format('truetype'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/oswald-400.ttf') format('truetype'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/oswald-500.ttf') format('truetype'); }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/oswald-700.ttf') format('truetype'); }

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: rgba(18, 53, 143, 1); text-decoration: none; }
a:hover { color: rgba(18, 53, 143, 1); text-decoration: underline; }

/* CSS Variablen – Markenfarben */
:root {
  --c-primary:   #363D6A;   /* dunkles Blau-Lila */
  --c-accent:    #B0CB1F;   /* Lime */
  --c-accent-d:  #94aa19;
  --c-text:      #444444;
  --c-text-dark: #363D6A;
  --c-white:     #ffffff;
  --c-light:     #f8f8f8;
  --c-muted:     #c0c0c0;
  --header-h:    160px;
  --sidebar-w:   72px;
  --content-offset: 90px;   /* sidebar (72) + weisser Abstand (18) */
  --max-w:       1200px;
}

/* Body */
body {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--c-text);
  background: #fff;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  color: var(--c-text-dark);
  margin: 0;
  padding: 0;
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 500;
}
h1 { font-size: 70px; font-weight: 300; }
h2 { font-size: 45px; font-weight: 500; }
h3 { font-size: 30px; font-weight: 500; }
p  { margin: 0 0 1em 0; }

/* ============== Layout: Sidebar + Inhalt =============================== */

.page-wrap { position: relative; }

/* Sidebar links – grüne Säule */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--c-accent);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 100px;
}
.sidebar .social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.sidebar .social a {
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  transition: opacity 0.3s ease;
}
.sidebar .social a:hover { opacity: 0.75; text-decoration: none; }
.sidebar .vlabel {
  margin-top: 80px;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

/* Hauptcontainer (rechts neben Sidebar mit kleinem weissen Abstand) */
.main {
  margin-left: var(--content-offset);
  position: relative;
}

/* ============== Header ================================================== */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  /* sauberer weisser Header — kein Gradient, kein Verlauf, keine Transparenz */
  background: #fff;
  z-index: 98;
  display: flex;
  align-items: center;
  padding: 0 30px;
  transition: all 0.4s ease;
}
.site-header .header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
}
.site-header .logo {
  flex: 0 0 35%;
  max-width: 35%;
}
.site-header .main-nav {
  flex: 0 0 65%;
  max-width: 65%;
  display: flex;
  justify-content: flex-end;
  padding-top: 35px;
}
.site-header .logo a { display: inline-block; }
.site-header .logo img {
  width: auto;
  max-width: 100%;
  height: 127px;
  display: block;
}

/* Sticky-State (deaktiviert per JS — Live hat keinen Sticky-Header) */
.site-header.is-sticky {
  position: fixed;
  top: 0;
  left: var(--content-offset);
  height: 80px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0,0,0,.06);
}
.site-header.is-sticky .logo img { max-height: 50px; }

/* Hauptnavigation */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}
.main-nav a {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--c-text-dark);
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 0 20px;
  height: 40px;
  line-height: 40px;
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease, color .25s ease;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav li.active a,
.main-nav a.active {
  border-bottom-color: var(--c-accent);
  text-decoration: none;
  color: var(--c-text-dark);
}

/* Mobile Burger ausgeblendet auf Desktop */
.burger {
  display: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  background: var(--c-primary);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 22px;
  align-items: center;
  justify-content: center;
}

/* Mobile-Menü auf Desktop hart ausgeblendet (verhindert Bullet-Liste oben links) */
.mobile-menu { display: none; }

/* ============== Sektionen Allgemein ===================================== */

.section {
  position: relative;
  width: 100%;
  padding: 80px 30px;
  overflow: hidden;
}
.section .container {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* Trenner / Divider */
.divider {
  display: inline-block;
  width: 6%;
  border-top: 2px solid var(--c-accent);
  margin: 15px 0;
}
.section-center { text-align: center; }
.section-center .divider { display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-primary);
  color: #fff !important;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  padding: 18px 32px;
  border: 0;
  border-radius: 50px;
  text-transform: none;
  cursor: pointer;
  transition: background .3s ease, transform .2s ease, box-shadow .3s ease;
  text-decoration: none !important;
  letter-spacing: 0.4px;
}
.btn:hover {
  background: #EC945D;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.12);
}
.btn-accent { background: var(--c-accent); color: #fff !important; }
.btn-accent:hover { background: var(--c-accent-d); }

/* ============== Hero (Startseite) ======================================= */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 70vh 30px 10vh 30px;
  background: url('../../images/iStock-1194029289.jpg') center top / cover no-repeat fixed;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(171deg, rgba(255,255,255,1) 21%, rgba(255,255,255,0.29) 63%);
  pointer-events: none;
  z-index: 1;
}
.hero .hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero h1 { font-size: 70px; font-weight: 300; color: var(--c-text-dark); }
.hero .hero-sub {
  font-size: 23px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--c-text-dark);
  font-weight: 400;
  margin-top: 15px;
}

/* Leistungen Hero – Bild + dunkles Overlay + Spitze nach unten */
.leistungen-hero {
  position: relative;
  min-height: 100vh;
  padding: calc(var(--header-h) + 60px) 30px 140px;
  background: url('../../images/peter-kasprzyk-U1gvhqVQ2kQ-unsplash.jpeg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Spitze nach UNTEN (V-Form unten Mitte) */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 80px), 50% 100%, 0 calc(100% - 80px));
}
.leistungen-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
  z-index: 1;
}
.karriere-hero {
  background-image: url('../../images/jonathan-borba-W9YEY6G8LVM-unsplash.jpeg');
  background-position: center center;
}
/* dunkel überlagert, Bild aber sichtbar — nicht komplett schwarz */
.karriere-hero::before { background: rgba(0, 0, 0, 0.55); }
/* Karriere-CTA-Block: schlicht weiß, kein Overlay-Schleier */
.karriere-cta {
  background: #fff;
  text-align: center;
}
.karriere-cta h2 { color: var(--c-text-dark); }
.karriere-cta .divider { width: 130px; border-top: 2px solid var(--c-accent); }
.karriere-cta p { color: #444; line-height: 1.7; }
.karriere-cta a { color: var(--c-primary); }
.leistungen-hero .container {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  text-align: center;
}
.leistungen-hero .hero-pre,
.leistungen-hero .hero-post {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.2;
  margin: 0;
}
.leistungen-hero h1 {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 140px;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1;
  margin: 12px 0;
  /* native deutsche Worttrennung — keine Spans, kein JS-Splitten */
  hyphens: auto;
  -webkit-hyphens: auto;
  word-break: normal;
  overflow-wrap: break-word;
}
.leistungen-hero .divider {
  display: inline-block;
  width: 130px;
  border-top: 4px solid var(--c-accent);
  margin-top: 30px;
}
.leistungen-hero .hero-cta { margin-top: 30px; text-align: center; }
.leistungen-hero .hero-cta .btn { font-size: 16px; padding: 12px 36px; }

/* ----- Hero-Einblendungs-Animation (Leistungen + Karriere) ----- */
.leistungen-hero .hero-pre,
.leistungen-hero .hero-post,
.leistungen-hero .hero-cta,
.leistungen-hero .divider { opacity: 1; }
.js .leistungen-hero .hero-pre {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp .6s ease forwards .1s;
}
.js .leistungen-hero .hero-post {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp .6s ease forwards 1.1s;
}
.js .leistungen-hero .divider {
  opacity: 0; transform: scaleX(0); transform-origin: center;
  animation: heroDivider .5s ease forwards 1.3s;
}
.js .leistungen-hero .hero-cta {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp .6s ease forwards 1.5s;
}
/* Standardzustand sichtbar (Fallback ohne JS) */
.leistungen-hero .hero-pre,
.leistungen-hero .hero-post,
.leistungen-hero .hero-cta,
.leistungen-hero .divider { opacity: 1; }

/* Mit JS: Pre/Post/CTA/Divider gestaffelt einblenden (auf allen Viewports) */
.js .leistungen-hero .hero-pre {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp .6s ease forwards .1s;
}
.js .leistungen-hero .hero-post {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp .6s ease forwards 1.1s;
}
.js .leistungen-hero .divider {
  opacity: 0; transform: scaleX(0); transform-origin: center;
  animation: heroDivider .5s ease forwards 1.3s;
}
.js .leistungen-hero .hero-cta {
  opacity: 0; transform: translateY(20px);
  animation: heroFadeUp .6s ease forwards 1.5s;
}

/* Mobile + Tablet: einfacher H1-Fade — native Worttrennung bleibt aktiv */
.js .leistungen-hero h1 {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp .7s ease forwards .35s;
}

/* Desktop ab 1025px: Buchstaben-Wave (Letter-Splitting nur hier) */
@media (min-width: 1025px) {
  .js .leistungen-hero h1.is-letterized {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .js .leistungen-hero h1.is-letterized .h1-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: heroLetter .55s cubic-bezier(.2,.7,.3,1.2) forwards;
  }
}

@keyframes heroDivider {
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes heroLetter {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDivider {
  to { opacity: 1; transform: scaleX(1); }
}
@keyframes heroLetter {
  to { opacity: 1; transform: translateY(0); }
}

/* Leistungen Inhalt */
.leistungen-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 50px;
}
.leistungen-text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 33px;
  font-weight: 200;
  color: var(--c-text-dark);
  text-transform: uppercase;
  margin: 0 0 25px;
  line-height: 1.25;
}
.leistungen-text p { color: #444; line-height: 1.7; margin-bottom: 1em; }
.leistungen-image img {
  width: 100%;
  height: auto;
  display: block;
  background: #f0f0f0;
}
.leistungen-bullets-wrap { margin: 30px auto 50px; }
.leistungen-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  gap: 12px 50px;
}
.leistungen-bullets li {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  padding: 14px 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  font-size: 18px;
  color: var(--c-text-dark);
}
.leistungen-bullets li i {
  color: #fff;
  background: var(--c-accent);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.leistungen-claim {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 33px;
  color: var(--c-text-dark);
  text-transform: uppercase;
  margin: 30px 0 0;
  line-height: 1.2;
}

/* 3-Bilder-Reihe Unterseiten */
.three-imgs-section { padding: 30px 30px 60px; }
.three-imgs-section .three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.three-imgs-section .three-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* USP Block dunkelblau */
.leistungen-usp {
  background: rgb(54, 61, 106);
  padding: 60px 30px;
}
.leistungen-usp .container { max-width: var(--max-w); margin: 0 auto; }
.leistungen-usp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}
.leistungen-usp-grid .usp-item {
  display: flex;
  align-items: center;
  gap: 20px;
}
.leistungen-usp-grid .usp-item i {
  color: #fff;
  font-size: 38px;
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}
/* erstes Icon: weisses Häkchen in vollflächigem weissen Kreis-Outline */
.leistungen-usp-grid .usp-item .usp-icon-circle {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  border-radius: 50%;
}
.leistungen-usp-grid .usp-item .usp-icon-circle i {
  width: auto;
  font-size: 26px;
  color: #fff;
}
.leistungen-usp-grid .usp-item p {
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  margin: 0;
  line-height: 1.4;
}

/* Generischer Page-Hero (Unterseiten) */
.page-hero {
  position: relative;
  min-height: 60vh;
  padding: 30vh 30px 10vh 30px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(171deg, rgba(255,255,255,1) 21%, rgba(255,255,255,0.29) 63%);
  pointer-events: none;
  z-index: 1;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: 60px; font-weight: 300; }
.page-hero .hero-sub {
  font-size: 21px;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin-top: 15px;
}

/* ============== Blurbs ================================================== */

.blurbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin: 50px 0;
}
.blurb { text-align: center; }
.blurb img {
  margin: 0 auto 30px auto;
  height: 110px;
  width: auto;
  max-width: 100%;
  display: block;
}
.blurb h3 {
  color: var(--c-accent);
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.3px;
  font-family: 'Oswald', sans-serif;
}
.blurb p { font-size: 16px; color: var(--c-text); line-height: 1.6; }

/* H2 Zertifizierungen Center grün */
.zert-line {
  text-align: center;
  font-size: 27px;
  color: var(--c-accent) !important;
  font-weight: 500;
  margin: 50px auto 0;
  max-width: 1100px;
}

/* ============== Section: PROFESSIONELLE ZAHNTECHNIK ===================== */

.section-profession {
  background: url('../../images/zahnarztstuhl.jpg') center / cover no-repeat fixed;
  text-align: left;
}
.section-profession::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.81);
  z-index: 1;
  pointer-events: none;
}
.section-profession .container { max-width: 1000px; position: relative; z-index: 2; }
.content-section .container { position: relative; z-index: 2; }
.section-profession h2 { color: var(--c-text-dark); font-size: 45px; }
.section-profession .h2-sub { font-size: 25px; font-weight: 200; margin-top: -10px; }
.section-profession .divider { width: 15%; margin: 25px 0 20px; }
.section-profession .text-block { font-size: 18px; line-height: 1.7; color: var(--c-text); }
.section-profession .btn-wrap { text-align: right; margin-top: 30px; }

/* ============== Section: Präzision (50/50) ============================== */

.section-precision {
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.section-precision > div { padding: 0; }
.section-precision .left {
  background: var(--c-primary);
  color: #fff;
  padding: 100px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section-precision .left h2 { color: #fff; }
.section-precision .left p,
.section-precision .left div { color: #fff; }
.section-precision .right {
  background: url('../../images/slide_3_zro2.jpg') center / cover no-repeat;
  min-height: 380px;
}

/* ============== Footer ================================================== */

.site-footer {
  position: relative;
  padding: 81px 30px;
  background: #f6f6f6;
  text-align: center;
}
.site-footer h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 39px;
  color: var(--c-accent);
  text-align: center;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.site-footer p {
  color: #333;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  margin: 0 0 18px;
}
/* alle Links im Footer grün — auch E-Mail im Adressabsatz */
.site-footer p a,
.site-footer .footer-links a {
  color: var(--c-accent) !important;
  text-decoration: none;
}
.site-footer p a:hover,
.site-footer .footer-links a:hover {
  color: var(--c-accent-d) !important;
  text-decoration: underline;
}
.site-footer .footer-links a {
  margin: 0 6px;
  font-size: 16px;
}
.site-footer .footer-links a:hover { text-decoration: underline; }
.site-footer .copyright {
  font-size: 12px;
  color: var(--c-muted);
  padding-top: 15px;
}
.site-footer .copyright a { color: var(--c-muted); }
.site-footer .copyright a:hover { color: var(--c-accent); text-decoration: underline; }

/* ============== Page-Title (Unterseiten ohne Hero) ===================== */

.page-title-section {
  padding: calc(var(--header-h) + 60px) 30px 30px;
  background: #fff;
}
.page-title-section .container { max-width: var(--max-w); margin: 0 auto; }
.page-title-section h1 {
  font-size: 45px;
  font-weight: 700;
  color: var(--c-text-dark);
  text-transform: uppercase;
  margin: 0 0 0;
  letter-spacing: 0.5px;
}
.page-title-section .divider {
  display: inline-block;
  width: 130px;
  border-top: 2px solid var(--c-accent);
  margin: 24px 0 0;
}

/* ============== About-Layout (Über Tabari) ============================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-text p { margin-bottom: 1.2em; line-height: 1.6; color: #444; }
.about-text .about-vorteile-label { margin: 25px 0 5px; font-weight: 400; color: #444; }
.about-text .about-vorteile { padding-left: 22px; margin: 0 0 1em; }
.about-text .about-vorteile li { list-style: disc; margin-bottom: 6px; line-height: 1.6; }
.about-text h2 {
  font-size: 45px;
  font-weight: 500;
  color: var(--c-text-dark);
  text-transform: uppercase;
  margin: 0 0 4px;
}
.about-text .lead-sub { font-size: 18px; color: #444; margin: 0 0 4px; }
.about-text .divider { display: inline-block; width: 130px; border-top: 2px solid var(--c-accent); margin: 18px 0 25px; }
.about-figure { width: 100%; }
.about-figure figure { margin: 0; }
.about-figure img {
  width: 100%;
  height: auto;
  display: block;
  background: #f1f1f1;
}
.about-figure figcaption {
  font-size: 16px;
  color: #444;
  margin-top: 18px;
  line-height: 1.5;
}

.about-three-images { padding-top: 0; }
.about-three-images .three-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-three-images .three-grid img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  display: block;
}

/* Dunkelblauer "Flexibel und Zuverlässig" Block */
.section-flexibel {
  background: rgb(54, 61, 106);
  color: #fff;
  padding: 80px 30px;
}
.section-flexibel .container { max-width: var(--max-w); margin: 0 auto; }
.section-flexibel h2 {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  font-size: 45px;
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.section-flexibel h3 {
  font-family: 'Oswald', sans-serif;
  font-weight: 400;
  font-size: 21px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 20px;
  line-height: 1.3;
}
.section-flexibel .divider { display: inline-block; width: 130px; border-top: 2px solid var(--c-accent); margin: 0 0 30px; }
.section-flexibel p { color: #fff; line-height: 1.7; margin-bottom: 1em; max-width: 1100px; }

.btn-wrap-center { text-align: center; margin-top: 30px; }
.btn-outline-light {
  background: transparent !important;
  border: 1px solid #fff !important;
  color: #fff !important;
  padding: 16px 32px !important;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}
.btn-outline-light:hover { background: #fff !important; color: var(--c-text-dark) !important; }

/* ============== Rechtliche Seiten (Impressum, Datenschutz) ============= */

.legal-content { padding-top: 20px; padding-bottom: 80px; }
.legal-content > .container { max-width: var(--max-w) !important; }
.legal-content p { font-size: 16px; line-height: 1.6; margin-bottom: 14px; color: #444; }
.legal-content h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 21px;
  font-weight: 300;
  color: var(--c-text-dark);
  text-transform: uppercase;
  margin: 35px 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-accent);
  letter-spacing: 0.5px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content b, .legal-content strong { font-weight: 700; color: var(--c-text-dark); }

/* ============== Inhalt-Standardseiten =================================== */

.content-section {
  padding: 80px 30px;
  background: #fff;
}
.content-section .container { max-width: 1100px; margin: 0 auto; }
.content-section h2 { margin-bottom: 20px; }
.content-section h3 {
  margin-top: 30px;
  margin-bottom: 14px;
  color: var(--c-accent);
  font-size: 24px;
  text-transform: none;
  font-weight: 500;
}
.content-section p { margin-bottom: 1.2em; }
.content-section ul { padding-left: 22px; margin-bottom: 1.2em; }
.content-section ul li { margin-bottom: 6px; }

/* Leistungs-Boxen */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  margin-top: 40px;
}
.leistungen-grid .leistung {
  border-top: 6px solid var(--c-accent);
  padding-top: 24px;
  background: #fff;
}
.leistungen-grid .leistung img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  margin-bottom: 18px;
}
.leistungen-grid .leistung h3 {
  font-family: 'Oswald', sans-serif;
  color: var(--c-text-dark);
  font-size: 22px;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.leistungen-grid .leistung p { font-size: 16px; line-height: 1.6; }

/* USPs (3 Spalten Aussagen) */
.usp-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 50px 0;
}
.usp-row .usp {
  text-align: center;
  padding: 30px 20px;
  background: #f8f8f8;
  border-top: 4px solid var(--c-accent);
}
.usp-row .usp i {
  color: var(--c-accent);
  font-size: 38px;
  margin-bottom: 18px;
  display: inline-block;
}
.usp-row .usp h4 {
  font-family: 'Oswald', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--c-text-dark);
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* Team / Inhaber */
.inhaber {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
  margin: 60px 0;
}
.inhaber img {
  width: 100%;
  border-radius: 8px;
  background: #eee;
}

/* ============== Galerie ================================================= */

.gallery-cat-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 300;
  font-size: 21px;
  color: var(--c-text-dark);
  text-transform: uppercase;
  margin: 40px 0 18px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-accent);
  letter-spacing: 0.5px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

/* Bildergalerie-Slider mit Dots wie auf Live */
.gallery-section { padding: 30px 30px 60px; }
.gallery-slider {
  position: relative;
  margin: 0 0 50px;
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
}
.gallery-slider.is-dragging { cursor: grabbing; }
.gallery-slider.is-dragging .gallery-track { transition: none; }
.gallery-track {
  display: flex;
  gap: 22px;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.gallery-track > a {
  /* visible-Variable: 3 (Desktop) / 2 (Tablet) / 1 (Mobile) – siehe Media-Queries */
  flex: 0 0 calc((100% - 22px * (var(--gv, 3) - 1)) / var(--gv, 3));
  display: block;
  position: relative;
  overflow: hidden;
  background: #f1f1f1;
  -webkit-user-drag: none;
}
@media (min-width: 768px) and (max-width: 992px) {
  .gallery-slider:not(.single-slider) { --gv: 2; }
}
@media (max-width: 767px) {
  .gallery-slider:not(.single-slider) { --gv: 1; }
}
.gallery-track > a img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
  pointer-events: none;
}
.gallery-track > a:hover img { transform: scale(1.05); }
.gallery-slider.is-dragging .gallery-track > a:hover img { transform: none; }
/* Single-Slider (1 Bild gleichzeitig — z.B. Leistungen rechts) */
.single-slider .gallery-track > a { flex: 0 0 100%; }
.single-slider .gallery-track > a img { height: 380px; }
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}
.gallery-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cfd0d6;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background .2s;
}
.gallery-dots button.is-active { background: #6e7595; }
.gallery-dots button:hover { background: var(--c-accent); }
.gallery-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  background: #f1f1f1;
}
.gallery-grid a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(54, 61, 106, 0);
  transition: background .3s;
}
.gallery-grid a:hover::after { background: rgba(54, 61, 106, .25); }
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery-grid a:hover img { transform: scale(1.06); }

/* Lightbox */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 30px;
}
.lb-overlay.is-open { display: flex; }
.lb-overlay img { max-width: 90vw; max-height: 88vh; }
.lb-overlay .lb-close {
  position: absolute; top: 20px; right: 30px;
  font-size: 36px; color: #fff; cursor: pointer; background: transparent; border: 0;
}
.lb-overlay .lb-prev,
.lb-overlay .lb-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); color: #fff;
  border: 0; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 24px;
}
.lb-overlay .lb-prev { left: 20px; }
.lb-overlay .lb-next { right: 20px; }

/* ============== Kontakt: dunkelblaue Box ============================== */

.kontakt-darkbox {
  background: rgb(54, 61, 106);
  padding: 30px;
  color: #fff;
}
.kontakt-darkbox .kontakt-map {
  position: relative;
  width: 100%;
  padding-bottom: 78%;   /* groesseres Karten-Verhaeltnis, damit Firmenbox + Bewertung sichtbar sind */
  height: 0;
  margin-bottom: 25px;
  background: #f0f0f0;
}
.kontakt-darkbox .kontakt-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.kontakt-darkbox .kontakt-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kontakt-darkbox .kontakt-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
}
.kontakt-darkbox .kontakt-list li i {
  color: #fff;
  font-size: 20px;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}
.kontakt-darkbox .kontakt-list li a {
  color: #fff;
  text-decoration: none;
}
.kontakt-darkbox .kontakt-list li a:hover { color: var(--c-accent); }

/* ============== Kontakt-Formular ======================================== */

.kontakt-grid {
  display: grid;
  /* ausgewogene Spalten: Formular minimal schmaler, Kartenbox breiter */
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  margin-top: 40px;
}
.kontakt-info h3 {
  color: var(--c-text-dark);
  text-transform: uppercase;
  font-size: 24px;
  margin-bottom: 16px;
}
.kontakt-info p { margin-bottom: 8px; }
.kontakt-info a { color: var(--c-primary); }

.kontakt-form .field { margin-bottom: 22px; }
.kontakt-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: #444; }
.kontakt-form input,
.kontakt-form textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  padding: 18px 20px;
  border: 1px solid #d6d6d6;
  border-radius: 0;
  background: #fff;
  transition: border-color .2s ease;
}
.kontakt-form input::placeholder,
.kontakt-form textarea::placeholder { color: #999; opacity: 1; }
.kontakt-form .btn { font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; padding: 14px 38px; }
.kontakt-form input:focus,
.kontakt-form textarea:focus { outline: none; border-color: var(--c-accent); }
.kontakt-form textarea { min-height: 160px; resize: vertical; }
.kontakt-form .form-error,
.kontakt-form .field.has-error input,
.kontakt-form .field.has-error textarea { border-color: #d23131; }
.kontakt-form .form-error { color: #d23131; font-size: 14px; margin-top: 4px; display: none; }
.kontakt-form .field.has-error .form-error { display: block; }
.kontakt-form .checkbox { display: flex; gap: 10px; align-items: flex-start; }
.kontakt-form .checkbox input { width: auto; margin-top: 4px; }
.kontakt-form .checkbox label { font-size: 14px; line-height: 1.5; margin: 0; }
.kontakt-form .honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.kontakt-form .form-status { margin-top: 16px; padding: 14px 18px; border-radius: 6px; display: none; }
.kontakt-form .form-status.is-success { background: #e8f5d6; color: #3a5a0e; display: block; }
.kontakt-form .form-status.is-error { background: #fbe2e2; color: #841717; display: block; }
.kontakt-form .form-status.is-info { background: #f0eaf6; color: #3b1f5b; display: block; }

/* ============== Scroll-To-Top ========================================== */

.scroll-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--c-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, transform .3s;
  z-index: 999;
  cursor: pointer;
  border: 0;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.scroll-top.is-visible { opacity: 0.95; visibility: visible; }
.scroll-top:hover { background: #EC945D; transform: translateY(-3px); text-decoration: none; }

/* ============== Reveal Animation ======================================= */

/* Reveal-Animation komplett deaktiviert — Live hat keine globalen Reveal-Effekte */
.reveal { opacity: 1 !important; transform: none !important; }
.hero .hero-inner,
.page-hero .container { opacity: 1 !important; transform: none !important; }

/* ============== Responsive Anpassungen ================================= */

/* Tablet/kleiner Desktop bis 1024px – Mobilmenü aktivieren */
@media (max-width: 1024px) {
  :root { --header-h: 110px; --sidebar-w: 60px; --content-offset: 75px; }

  .site-header .main-nav,
  .main-nav { display: none !important; }
  .burger { display: inline-flex !important; }

  .site-header { padding: 0 25px; height: var(--header-h); }
  .site-header .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  .site-header .logo {
    flex: 0 1 auto;
    max-width: none;
  }
  .site-header .logo img { height: 80px; max-height: 80px; }
  .site-header.is-sticky .logo img { height: 45px; max-height: 45px; }
  .burger {
    margin-left: auto;
    flex: 0 0 auto;
  }

  /* Mobiles Off-Canvas Menü */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(54, 61, 106, 0.98);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 30px 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
    overflow-y: auto;
  }
  .mobile-menu.is-open { transform: translateX(0); }
  .mobile-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px; height: 40px;
    background: transparent; color: #fff; border: 0;
    font-size: 28px; cursor: pointer;
  }
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .mobile-menu .main-mobile-list li { margin-bottom: 4px; }
  .mobile-menu .main-mobile-list a {
    display: block;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 22px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 14px 10px;
    text-decoration: none;
    transition: color .2s, background .2s;
  }
  .mobile-menu .main-mobile-list a:hover,
  .mobile-menu .main-mobile-list .active a { color: var(--c-accent); }
  .mobile-menu .legal-list { margin-top: 30px; }
  .mobile-menu .legal-list a {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    padding: 4px 8px;
    display: inline-block;
  }
  .menu-open { overflow: hidden; }
}

/* Desktop unter 1400px etwas schmaler – Header eng */
@media (min-width: 1025px) and (max-width: 1400px) {
  .site-header { padding: 0 30px; }
  .main-nav a { font-size: 14px; padding: 0 8px; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .site-header .logo img { max-height: 90px; }
  .main-nav a { font-size: 13px; padding: 0 6px; letter-spacing: 0; }
}

/* Tablet Hochformat / kleiner Desktop */
@media (max-width: 992px) {
  h1 { font-size: 50px; }
  h2 { font-size: 36px; }
  .hero { padding: 22vh 25px 12vh; min-height: 80vh; background-attachment: scroll; }
  .hero h1 { font-size: 50px; }
  .hero .hero-sub { font-size: 19px; }
  .page-hero { background-attachment: scroll; padding: 22vh 25px 8vh; min-height: 50vh; }
  .page-hero h1 { font-size: 44px; }
  .section-profession { background-attachment: scroll; }
  .blurbs { gap: 40px; }
  .leistungen-grid { gap: 30px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet Hochformat / großes Smartphone */
@media (max-width: 767px) {
  :root { --sidebar-w: 0px; --header-h: 90px; --content-offset: 0px; }

  .sidebar { display: none; }
  .main { margin-left: 0; }
  .site-header { left: 0; padding: 0 20px; height: 100px; }
  .site-header.is-sticky { left: 0; }
  /* Mobile-Logo deutlich grösser, sauber proportional */
  .site-header .logo img {
    height: auto !important;
    width: clamp(155px, 45vw, 200px);
    max-height: none;
  }
  .site-header.is-sticky .logo img { height: 45px !important; width: auto; max-height: 45px; }
  /* Burger weiterhin sichtbar + rechtsbündig nach Logo-Vergrösserung */
  .burger {
    display: inline-flex !important;
    flex-shrink: 0;
    margin-left: auto;
  }
  .site-header .header-inner {
    flex-wrap: nowrap;
    width: 100%;
  }

  .section { padding: 50px 20px; }
  .content-section { padding: 50px 20px; }
  .section-profession { padding: 50px 20px; }

  .hero {
    padding: 28vh 22px 12vh 22px;
    min-height: 88vh;
  }
  .hero h1 { font-size: 36px; line-height: 1.15; }
  .hero .hero-sub { font-size: 16px; letter-spacing: 0.6px; }
  .page-hero { padding: 22vh 22px 10vh; min-height: 60vh; }
  .page-hero h1 { font-size: 34px; }
  .page-hero .hero-sub { font-size: 16px; }

  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  .blurbs { grid-template-columns: 1fr; gap: 40px; margin: 30px 0; }
  /* mobil: native Proportionen erhalten — Höhe nicht erzwingen */
  .blurb img {
    height: auto;
    width: auto;
    max-width: 50%;
    max-height: 110px;
    object-fit: contain;
  }
  .zert-line { font-size: 20px; padding: 0 10px; }

  .section-profession h2 { font-size: 28px; line-height: 1.25; }
  .section-profession .h2-sub { font-size: 18px; line-height: 1.45; margin-top: 10px; }
  .section-profession .text-block { line-height: 1.7; }
  .section-profession .btn-wrap { text-align: center; }

  .section-precision { grid-template-columns: 1fr; }
  .section-precision .left { padding: 50px 25px; }
  .section-precision .right { min-height: 280px; }

  .leistungen-grid { grid-template-columns: 1fr; gap: 30px; }
  .leistungen-grid .leistung img { height: 200px; }

  .usp-row { grid-template-columns: 1fr; gap: 24px; }

  .inhaber { grid-template-columns: 1fr; gap: 25px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery-grid img { height: 150px; }
  .gallery-cat-title { font-size: 24px; margin-top: 35px; }

  .page-title-section { padding: calc(var(--header-h) + 30px) 20px 20px; }
  .page-title-section h1 { font-size: 36px; }
  .leistungen-hero { padding: calc(var(--header-h) + 30px) 20px 100px; min-height: 80vh; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 50% 100%, 0 calc(100% - 60px)); }
  .leistungen-hero h1 {
    font-size: 14vw;
    line-height: 1.05;
    /* native Trennung — Browser entscheidet */
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
  }
  .leistungen-hero .hero-pre, .leistungen-hero .hero-post { font-size: 14px; letter-spacing: 1px; }
  .leistungen-hero .hero-cta .btn { padding: 10px 30px; font-size: 14px; }

  .leistungen-grid-2col { grid-template-columns: 1fr; gap: 30px; }
  .leistungen-text h2 { font-size: 24px; }
  /* mobil: einspaltig, Spaltenfluss zurücksetzen, kein Overflow */
  .leistungen-bullets {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
    gap: 10px !important;
    width: 100%;
    max-width: 100%;
  }
  .leistungen-bullets li {
    font-size: 15px;
    padding: 12px 16px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .leistungen-claim { font-size: 24px; }
  .three-imgs-section .three-grid { grid-template-columns: 1fr; gap: 14px; }
  .leistungen-usp-grid { grid-template-columns: 1fr; gap: 25px; }
  .leistungen-usp-grid .usp-item p { font-size: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .about-text h2 { font-size: 30px; }
  .about-three-images .three-grid { grid-template-columns: 1fr; gap: 14px; }
  .section-flexibel { padding: 50px 20px; }
  .section-flexibel h2 { font-size: 28px; }
  .section-flexibel h3 { font-size: 16px; }

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

  .site-footer { padding: 50px 20px; }
  .site-footer h3 { font-size: 28px; }
  .site-footer p { font-size: 14px; }

  .scroll-top { width: 44px; height: 44px; right: 14px; bottom: 14px; }
}

/* Sehr kleine Smartphones */
@media (max-width: 430px) {
  .site-header { padding: 0 15px; }
  .site-header .logo img { max-height: 55px; }
  .hero { padding: 24vh 18px 10vh; }
  .hero h1 { font-size: 30px; }
  .hero .hero-sub { font-size: 14px; }
  .section { padding: 40px 16px; }
  .content-section { padding: 40px 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gallery-grid img { height: 130px; }
  .btn { padding: 14px 24px; font-size: 15px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 26px; }
  .site-header .logo img { max-height: 48px; }
  h2 { font-size: 24px; }
}

/* Print – simple */
@media print {
  .sidebar, .site-header, .scroll-top, .site-footer { display: none; }
  .main { margin: 0; }
}
