/* =============================================
   DACHDECKEREI MEISTERBETRIEB – style.css
   ============================================= */

/* ---- Variables ---- */
:root {
  --red:        #8B1A1A;
  --red-dark:   #6B1313;
  --red-light:  #c0392b;
  --red-pale:   #f9e8e8;
  --bg-light:   #f5f3ef;
  --bg-white:   #ffffff;
  --bg-dark:    #1a1a1a;
  --bg-darker:  #111111;
  --text-dark:  #1c1c1c;
  --text-mid:   #555555;
  --text-light: #888888;
  --text-white: #f0ece6;
  --border:     #e2ddd6;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.07);
  --shadow-md:  0 6px 24px rgba(0,0,0,.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.18);
  --radius:     10px;
  --transition: 0.28s ease;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Source Sans 3', sans-serif;
  /* Aliases used in sub-page inline styles */
  --serif: var(--font-serif);
  --sans:  var(--font-sans);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }

.section-eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: .6rem;
}

.section-title { margin-bottom: .5rem; }

.section-divider {
  display: block;
  width: 52px;
  height: 3px;
  background: var(--red);
  margin: 1rem 0 1.5rem;
}

.section-divider.center { margin: 1rem auto 1.5rem; }

/* ---- Layout Helpers ---- */
.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

section { padding: 96px 0; }

.text-center { text-align: center; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--red);
  border-color: var(--red);
}
.btn-outline-dark:hover {
  background: var(--red);
  color: #fff;
}

/* ==============================
   NAVIGATION
   ============================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-dark);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.4); }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  width: 92%;
  max-width: 1280px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.logo-icon svg { width: 38px; height: 38px; }

.logo-img-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  overflow: visible;
  padding: 4px 0;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.logo-sub {
  font-size: .6rem;
  letter-spacing: .15em;
  color: var(--red-light);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
}

.nav-link {
  padding: .45rem .85rem;
  font-size: .88rem;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}
.nav-link.active { color: var(--red-light); }

.nav-cta {
  padding: .55rem 1.3rem;
  background: var(--red);
  color: #fff !important;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  margin-left: .5rem;
  transition: background var(--transition), transform var(--transition);
}
.nav-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.nav-cta-active { outline: 2px solid rgba(255,255,255,.4); outline-offset: 2px; }

/* Mobile group labels */
.mobile-group-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: .9rem 0 .2rem;
  border-bottom: none !important;
}
.mobile-sub {
  padding-left: .85rem !important;
  font-size: .88rem !important;
  color: rgba(255,255,255,.6) !important;
}
.mobile-menu [aria-current="page"] { color: var(--red-light) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger-line {
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
.hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: #111;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-menu.open { display: flex; }
.mobile-menu li { border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-menu a {
  display: block;
  padding: .75rem 0;
  color: rgba(255,255,255,.8);
  font-size: .95rem;
}
.mobile-menu .nav-cta {
  display: inline-flex;
  margin-top: .75rem;
  border-radius: 8px;
}

/* ==============================
   HERO
   ============================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/files/impressionen-dach.JPG') center/cover no-repeat;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,10,10,.78) 45%, rgba(10,10,10,.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 80px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--red);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  padding: .45rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero-badge i { font-size: .7rem; }

.hero h1 {
  color: #fff;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero h1 span {
  color: #e8a0a0;
  font-style: italic;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.82);
  max-width: 520px;
  margin-bottom: 2.4rem;
  line-height: 1.75;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero-scroll-dot {
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: 12px;
  position: relative;
}
.hero-scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  background: rgba(255,255,255,.6);
  border-radius: 50%;
  animation: scrollDot 2s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { top: 6px; opacity: 1; }
  80% { top: 22px; opacity: 0; }
}

/* ==============================
   STATS BAR
   ============================== */
.stats-bar {
  background: var(--red);
  padding: 0;
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.stat-item {
  padding: 2rem 1rem;
  border-right: 1px solid rgba(255,255,255,.18);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.78);
  margin-top: .25rem;
  font-weight: 400;
}

/* ==============================
   ABOUT / ÜBER UNS (Homepage Snippet)
   ============================== */
.about-section { background: var(--bg-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
}
.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  top: -16px; left: -16px;
  width: 80px; height: 80px;
  background: var(--bg-dark);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-serif);
}
.about-badge-icon { font-size: 1.6rem; line-height: 1; }
.about-badge-text { font-size: .6rem; text-align: center; margin-top: .2rem; color: rgba(255,255,255,.7); }
.about-years {
  position: absolute;
  bottom: -16px; right: -16px;
  background: var(--red);
  color: #fff;
  padding: 1rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}
.about-years span { display: block; font-size: .75rem; font-family: var(--font-sans); font-weight: 400; margin-top: .2rem; }

.about-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin: 1.5rem 0 2rem;
}
.about-bullet {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 500;
}
.about-bullet i { color: var(--red); font-size: .85rem; }

.about-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--red);
  font-weight: 600;
  font-size: .95rem;
  transition: gap var(--transition);
}
.about-link:hover { gap: .75rem; }

/* ==============================
   SERVICES / LEISTUNGEN
   ============================== */
.services-section { background: var(--bg-light); }

.services-header {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3.5rem;
}
.services-header p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
  margin-top: .75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--red-pale);
}

.service-icon {
  width: 52px; height: 52px;
  background: var(--red-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon i { color: var(--red); font-size: 1.3rem; }

.service-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.service-card p { color: var(--text-mid); font-size: .88rem; line-height: 1.65; }

/* ==============================
   REFERENCES PREVIEW
   ============================== */
.references-section { background: var(--bg-white); }

.references-header {
  text-align: center;
  margin-bottom: 3rem;
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.ref-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.ref-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ref-card:hover img { transform: scale(1.06); }
.ref-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.72) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
.ref-tag {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 50px;
  margin-bottom: .5rem;
  width: fit-content;
}
.ref-card-overlay h3 { color: #fff; font-size: 1.05rem; }

.references-cta { text-align: center; }

/* ==============================
   CTA BANNER
   ============================== */
.cta-banner {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=1600&auto=format&fit=crop') center/cover no-repeat;
}
.cta-banner-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.72);
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.cta-banner h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: .75rem;
}
.cta-banner h2 span { color: #e8a0a0; font-style: italic; }
.cta-banner p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.cta-banner-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ==============================
   VALUES / WERTE
   ============================== */
.values-section { background: var(--bg-light); }

.values-header {
  text-align: center;
  margin-bottom: 3rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.value-icon {
  width: 56px; height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.value-icon i { color: #fff; font-size: 1.3rem; }
.value-card h3 { margin-bottom: .5rem; }
.value-card p { color: var(--text-mid); font-size: .88rem; line-height: 1.65; }

/* ==============================
   CERTIFICATIONS
   ============================== */
.certs-section { background: var(--bg-white); }
.certs-section .section-title { text-align: center; margin-bottom: 3rem; }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cert-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.cert-card:hover { border-color: var(--red); box-shadow: var(--shadow-sm); }
.cert-card i { font-size: 1.8rem; color: var(--red); display: block; margin-bottom: .75rem; }
.cert-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.cert-card span { font-size: .82rem; color: var(--text-light); }

/* ==============================
   FOOTER
   ============================== */
.site-footer { background: var(--bg-dark); color: var(--text-white); }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.4fr 1.6fr;
  gap: 3rem;
  padding: 64px 0 48px;
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand .footer-logo { margin-bottom: 1rem; }
.footer-brand .logo-name { color: #fff; }

.footer-tagline {
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: .6rem;
}
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--red); color: #fff; }

.footer-heading {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 1.25rem;
}

.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a {
  color: rgba(255,255,255,.65);
  font-size: .875rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: color var(--transition), gap var(--transition);
}
.footer-col ul a i { font-size: .65rem; color: var(--red-light); }
.footer-col ul a:hover { color: #fff; gap: .75rem; }

.footer-contact li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin-bottom: .9rem;
  font-size: .875rem;
  color: rgba(255,255,255,.65);
}
.footer-contact i {
  color: var(--red-light);
  margin-top: .2rem;
  flex-shrink: 0;
  width: 14px;
}
.footer-contact a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a {
  color: rgba(255,255,255,.45);
  transition: color var(--transition);
}
.footer-bottom a:hover { color: #fff; }

/* ==============================
   FADE-IN ANIMATIONS
   ============================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }
.fade-in-delay-4 { transition-delay: .4s; }
.fade-in-delay-5 { transition-delay: .5s; }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1100px) {
  .about-grid { gap: 48px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .certs-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .references-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 520px; margin: 0 auto; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .references-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

@media (max-width: 540px) {
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .cta-banner-actions { flex-direction: column; align-items: center; }
  .about-bullets { grid-template-columns: 1fr; }
}

/* ==============================
   FOOTER BADGES
   ============================== */
.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.65);
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 50px;
}
.footer-badge i { color: var(--red-light); font-size: .7rem; }

/* ==============================
   VAL-ICON (used in dach.php values grid)
   ============================== */
.val-icon {
  width: 52px; height: 52px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.2rem;
  color: #fff;
}

/* ==============================
   TEAM SECTION
   ============================== */
.team-section { background: var(--bg-white); padding: 96px 0; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  text-align: center;
  padding: 2rem 1.25rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.team-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  background: var(--bg-light);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.team-avatar img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
}
.team-initials {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
}
.team-card h3 { font-size: 1rem; margin-bottom: .3rem; }
.team-role {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: .5rem;
}
.team-card p { font-size: .82rem; color: var(--text-mid); line-height: 1.6; }

/* ==============================
   NAV DROPDOWNS
   ============================== */
.nav-dropdown { position: relative; display: flex; align-items: center; }

.nav-link-dd {
  cursor: default;
  user-select: none;
}

.nav-caret {
  font-size: .6rem;
  margin-left: .3rem;
  transition: transform .2s ease;
  display: inline-block;
}
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  background: #222;
  border-radius: 0 0 8px 8px;
  min-width: 200px;
  padding: .5rem 0;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 100;
}
.nav-dropdown:hover .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-sub li a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .875rem;
  color: rgba(255,255,255,.72);
  transition: color var(--transition), background var(--transition);
}
.nav-sub li a:hover { color: #fff; background: rgba(255,255,255,.07); }

/* Responsive team */
@media(max-width:900px){
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:540px){
  .team-grid { grid-template-columns: 1fr; }
}

/* ==============================
   PAGE HERO (alle Unterseiten)
   ============================== */
.page-hero {
  background: var(--bg-dark);
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .2;
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero h1 span.hero-italic { color: #e8a0a0; font-style: italic; }
.page-hero p { color: rgba(255,255,255,.72); font-size: 1.05rem; max-width: 580px; line-height: 1.75; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem;
  font-size: .8rem; color: rgba(255,255,255,.45);
  margin-bottom: 1.25rem; list-style: none; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.55); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--red-light); }
.breadcrumb i { font-size: .6rem; }

/* ==============================
   SUB-NAV (Über uns / Blech·Fassade·Dach)
   ============================== */
.sub-nav { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.sub-nav-inner {
  display: flex; flex-wrap: wrap;
  width: 92%; max-width: 1200px; margin: 0 auto;
}
.sub-nav a {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .9rem 1.1rem; font-size: .82rem; font-weight: 600;
  color: var(--text-mid); border-bottom: 3px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.sub-nav a:hover { color: var(--red); }
.sub-nav a.active { color: var(--red); border-bottom-color: var(--red); }

/* ==============================
   CONTENT BLOCKS (Unterseiten-Zweispalter)
   ============================== */
.content-section { padding: 80px 0; }
.content-section:nth-child(even) { background: var(--bg-light); }

.content-block {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}
.content-block.reverse { direction: rtl; }
.content-block.reverse > * { direction: ltr; }
.content-block img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); object-fit: cover; aspect-ratio: 4/3;
}
.content-text h2 { margin-bottom: .5rem; font-size: clamp(1.6rem, 2.5vw, 2.2rem); }
.content-text p { color: var(--text-mid); line-height: 1.8; margin-top: 1rem; }
.content-text p:first-of-type { margin-top: 0; }

/* Info box */
.info-box {
  background: var(--red-pale);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  font-size: .9rem; color: var(--text-dark); line-height: 1.7;
}
.info-box strong { color: var(--red); }

/* Detail list */
.detail-list { margin-top: 1.25rem; display: flex; flex-direction: column; gap: .6rem; list-style: none; }
.detail-list li {
  display: flex; gap: .75rem; align-items: flex-start;
  font-size: .9rem; color: var(--text-mid); line-height: 1.6;
}
.detail-list li i { color: var(--red); margin-top: .22rem; flex-shrink: 0; width: 14px; }

/* Img duo / stack */
.img-duo { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.img-duo img { aspect-ratio: 1/1; }
.img-stack { display: flex; flex-direction: column; gap: .75rem; }
.img-stack img { aspect-ratio: 16/9; }

/* ==============================
   GLOBAL CTA STRIP (Unterseiten)
   ============================== */
.cta-strip { background: var(--red); padding: 56px 0; text-align: center; }
.cta-strip h2 { color: #fff; font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin-bottom: .5rem; }
.cta-strip p { color: rgba(255,255,255,.8); margin-bottom: 1.75rem; line-height: 1.7; }
.cta-strip .btn-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn-white { background: #fff; color: var(--red); border: 2px solid #fff; font-weight: 700; }
.btn-white:hover { background: #f0e8e8; border-color: #f0e8e8; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-w { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-w:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ==============================
   PARTNER BADGES (Unterseiten)
   ============================== */
.partner-badges { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.partner-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: 8px; padding: .6rem 1rem;
  font-size: .85rem; font-weight: 600; color: var(--text-dark);
}
.partner-badge i { color: var(--red); }

/* ==============================
   TIMELINE (historie.php)
   ============================== */
.timeline-wrap { position: relative; max-width: 820px; margin: 3rem auto 0; }
.timeline-wrap::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border); transform: translateX(-50%);
}
.tl-item {
  display: grid; grid-template-columns: 1fr 48px 1fr;
  margin-bottom: 2.5rem; position: relative;
}
.tl-item:nth-child(odd)  .tl-card { grid-column: 3; grid-row: 1; }
.tl-item:nth-child(odd)  .tl-dot  { grid-column: 2; grid-row: 1; }
.tl-item:nth-child(odd)  .tl-year { grid-column: 1; grid-row: 1; justify-self: end; }
.tl-item:nth-child(even) .tl-card { grid-column: 1; grid-row: 1; }
.tl-item:nth-child(even) .tl-dot  { grid-column: 2; grid-row: 1; }
.tl-item:nth-child(even) .tl-year { grid-column: 3; grid-row: 1; justify-self: start; }
.tl-dot { display: flex; align-items: center; justify-content: center; align-self: start; margin-top: 1.1rem; }
.tl-dot-inner {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-white); border: 3px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: var(--text-light); z-index: 2; position: relative;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.tl-item.highlight .tl-dot-inner { background: var(--red); border-color: var(--red); color: #fff; }
.tl-year {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 900;
  color: var(--text-light); align-self: start; padding-top: 1.2rem; line-height: 1;
}
.tl-item.highlight .tl-year { color: var(--red); }
.tl-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.tl-card:hover { box-shadow: var(--shadow-md); }
.tl-item.highlight .tl-card { border-color: var(--red-pale); }
.tl-date { font-size: .75rem; color: var(--text-light); margin-bottom: .4rem; }
.tl-card h3 { font-size: 1rem; margin-bottom: .5rem; }
.tl-item.highlight .tl-card h3 { color: var(--red); }
.tl-card p { font-size: .875rem; color: var(--text-mid); line-height: 1.65; margin: 0; }

/* ==============================
   MANAGEMENT CARD (das-team.php)
   ============================== */
.management-card {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 3rem; align-items: center;
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.management-card:hover { box-shadow: var(--shadow-md); }
.mgmt-photo { position: relative; height: 100%; min-height: 320px; background: var(--bg-light); }
.mgmt-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.mgmt-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .85rem; border-radius: 50px; margin-bottom: 1rem;
}
.mgmt-body { padding: 2.5rem 2.5rem 2.5rem 0; }
.mgmt-body h2 { font-size: 1.9rem; margin-bottom: .2rem; }
.mgmt-role { font-size: .95rem; color: var(--red); font-weight: 600; margin-bottom: 1.25rem; display: block; }
.mgmt-since {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; color: var(--text-light);
  background: var(--bg-light); border-radius: 50px; padding: .3rem .85rem; margin-bottom: 1.25rem;
}
.mgmt-since i { color: var(--red); font-size: .75rem; }
.mgmt-duties { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.duty-tag {
  background: var(--red-pale); color: var(--red);
  font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 50px;
}

/* Fach cards */
.fach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.fach-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.fach-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--red-pale); }
.fach-photo { position: relative; aspect-ratio: 3/2; background: var(--bg-light); overflow: hidden; }
.fach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .5s ease; }
.fach-card:hover .fach-photo img { transform: scale(1.04); }
.fach-since-badge {
  position: absolute; bottom: .75rem; left: .75rem;
  background: rgba(0,0,0,.65); color: #fff;
  font-size: .72rem; font-weight: 600; padding: .3rem .7rem; border-radius: 50px;
  backdrop-filter: blur(4px); display: flex; align-items: center; gap: .35rem;
}
.fach-since-badge i { font-size: .65rem; color: var(--red-light); }
.fach-body { padding: 1.25rem 1.4rem 1.5rem; }
.fach-body h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.fach-role-line { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .75rem; flex-wrap: wrap; }
.fach-role { font-size: .82rem; color: var(--red); font-weight: 600; }
.fach-specialty { font-size: .72rem; font-weight: 600; background: var(--red-pale); color: var(--red); padding: .2rem .6rem; border-radius: 50px; white-space: nowrap; }
.fach-body p { font-size: .85rem; color: var(--text-mid); line-height: 1.65; }

/* Nach cards */
.nach-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 720px; }
.nach-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); display: flex; gap: 1.25rem; padding: 1.5rem; align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.nach-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.nach-avatar { flex-shrink: 0; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; background: var(--red-pale); display: flex; align-items: center; justify-content: center; }
.nach-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.nach-body h3 { font-size: 1rem; margin-bottom: .2rem; }
.nach-role { font-size: .78rem; color: var(--red); font-weight: 600; display: block; margin-bottom: .35rem; }
.nach-since { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; color: var(--text-light); }
.nach-since i { color: var(--red); font-size: .65rem; }

/* ==============================
   CONTACT FORM (kontakt.php)
   ============================== */
.form-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-sm);
}
.form-card h2 { font-size: 1.4rem; margin-bottom: .35rem; }
.form-sub { color: var(--text-mid); font-size: .875rem; margin-bottom: 2rem; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.form-group label { font-size: .82rem; font-weight: 700; color: var(--text-dark); }
.form-group label .req { color: var(--red); margin-left: .15rem; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .7rem 1rem; border: 1.5px solid var(--border);
  border-radius: 8px; font-family: var(--font-sans); font-size: .9rem;
  color: var(--text-dark); background: var(--bg-light);
  transition: border-color var(--transition), background var(--transition);
  width: 100%; box-sizing: border-box;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--red); background: #fff; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group .field-error { font-size: .78rem; color: var(--red); }
.form-group input.error,
.form-group textarea.error { border-color: var(--red); }
.privacy-note { font-size: .78rem; color: var(--text-light); line-height: 1.6; margin-top: .75rem; }
.privacy-note a { color: var(--red); }
.form-success {
  background: #e8f5e9; border: 1.5px solid #81c784;
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.75rem;
}
.form-success i { color: #2e7d32; font-size: 1.3rem; flex-shrink: 0; margin-top: .1rem; }
.form-success h3 { font-size: 1rem; color: #1b5e20; margin-bottom: .25rem; }
.form-success p { font-size: .85rem; color: #2e7d32; margin: 0; }

/* Contact info card */
.info-card { background: var(--bg-white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.info-card-header { background: var(--bg-dark); padding: 1rem 1.5rem; display: flex; align-items: center; gap: .65rem; }
.info-card-header i { color: var(--red-light); font-size: 1rem; }
.info-card-header h3 { color: #fff; font-size: .95rem; margin: 0; }
.info-card-body { padding: 1.4rem 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: .85rem; padding: .65rem 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: none; }
.ci-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--red-pale); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: .85rem; flex-shrink: 0; }
.ci-body { display: flex; flex-direction: column; }
.ci-lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-light); margin-bottom: .15rem; }
.ci-val { font-size: .9rem; color: var(--text-dark); font-weight: 500; }
.ci-val a { color: var(--text-dark); transition: color var(--transition); }
.ci-val a:hover { color: var(--red); }

/* ==============================
   RESPONSIVE – Unterseiten
   ============================== */
@media (max-width: 1000px) {
  .management-card { grid-template-columns: 220px 1fr; }
  .mgmt-body { padding: 1.75rem; }
}
@media (max-width: 800px) {
  .content-block,
  .content-block.reverse { grid-template-columns: 1fr; direction: ltr; gap: 2.5rem; }
  .fach-grid { grid-template-columns: repeat(2, 1fr); }
  .nach-grid { grid-template-columns: 1fr; max-width: 100%; }
  .timeline-wrap::before { left: 20px; }
  .tl-item { grid-template-columns: 48px 1fr; }
  .tl-item:nth-child(odd)  .tl-card,
  .tl-item:nth-child(even) .tl-card { grid-column: 2; grid-row: 2; }
  .tl-item:nth-child(odd)  .tl-dot,
  .tl-item:nth-child(even) .tl-dot  { grid-column: 1; grid-row: 1; }
  .tl-item:nth-child(odd)  .tl-year,
  .tl-item:nth-child(even) .tl-year { grid-column: 2; grid-row: 1; justify-self: start; padding-top: .9rem; padding-left: .5rem; }
  .management-card { grid-template-columns: 1fr; }
  .mgmt-photo { min-height: 260px; }
}
@media (max-width: 700px) {
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.75rem 1.25rem; }
}
@media (max-width: 540px) {
  .fach-grid { grid-template-columns: 1fr; }
  .sub-nav a { padding: .75rem .8rem; font-size: .78rem; }
}

/* ==============================
   GLOBAL MOBILE OVERFLOW FIX
   ============================== */
html, body { overflow-x: hidden; }

/* Alle Grids auf sehr kleinen Screens auf 1 Spalte */
@media (max-width: 400px) {
  .certs-grid,
  .team-grid,
  .values-grid,
  .fach-grid,
  .nach-grid,
  .benefit-grid,
  .directions-grid,
  .partner-grid,
  .ref-grid,
  .photo-grid { grid-template-columns: 1fr !important; }
}

/* Nav-Sub darf nicht über den Viewport ragen */
.nav-sub {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
