/* === DESIGN SYSTEM === */
:root {
  --blue: #1A2B5E;
  --gold: #C9A84C;
  --white: #FFFFFF;
  --gray-light: #F5F5F5;
  --gray-mid: #E8E8E8;
  --text: #2D2D2D;
  --text-muted: #6B6B6B;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(26, 43, 94, 0.10);
  --shadow-hover: 0 8px 40px rgba(26, 43, 94, 0.18);
  --transition: 0.3s ease;
  --max-width: 1200px;
  --color-success: #1a7a3c;
  --color-error: #c0392b;
  --navbar-h: 122px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.6; }
img { display: block; width: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--blue); }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--blue); }
h3 { font-size: 1.25rem; color: var(--blue); }

/* === LAYOUT === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); }
section { padding: var(--space-xl) 0; }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.875rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  transition: all var(--transition); white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-gold:hover { background: #b8923e; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* === SECTION HEADER === */
.section-header { text-align: center; max-width: 760px; margin: 0 auto var(--space-lg); }
.section-sub { margin-top: var(--space-sm); color: var(--text-muted); font-size: 1.1rem; }

/* === SCROLL ANIMATIONS === */
.animate-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* === NAVBAR === */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-mid);
  transition: all var(--transition);
}
#navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 1rem 2rem;
  display: flex; align-items: center; gap: 2rem;
}
.nav-logo { flex-shrink: 0; display: flex; align-items: center; }
.nav-logo-img { height: 90px; width: auto; object-fit: contain; display: block; }
.nav-links { display: flex; gap: 1.75rem; margin: 0 auto; }
.nav-links a { font-weight: 500; color: var(--text); transition: color var(--transition); }
.nav-links a:hover { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.nav-phone { font-weight: 600; color: var(--blue); }
.nav-toggle { display: none; font-size: 1.5rem; color: var(--blue); }

/* ============================================================
   SITE BANNER
   ============================================================ */

#site-banner {
  margin-top: var(--navbar-h, 72px);
  width: 100%;
  overflow: hidden;
  line-height: 0;
}
.site-banner-img {
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0f1e3d;
}
@media (max-width: 768px) {
  .site-banner-img { max-height: 45vw; }
}

/* ============================================================
   CINEMATIC BOOK INTRO (legacy, unused)
   ============================================================ */

#book-intro {
  height: 360vh;
  position: relative;
}

.bi-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #040b18;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ambient glow atmosphere */
.bi-sticky::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(10,20,50,0.9) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 55% 50%, rgba(26,43,94,0.35) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.bi-scene {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
  perspective-origin: 50% 45%;
  z-index: 1;
}

/* Gold glow emanating from book (opacity driven by JS) */
.bi-glow {
  position: absolute;
  width: 460px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(201,168,76,0.14) 0%, transparent 68%);
  pointer-events: none;
  filter: blur(40px);
  opacity: 0;
  will-change: opacity;
  z-index: 0;
}

/* ---- PHOTO-BASED BOOK ---- */
.bi-book-photo {
  position: relative;
  width: 380px;
  height: 450px;
  will-change: transform;
  filter: drop-shadow(0 50px 90px rgba(0,0,0,0.75)) drop-shadow(0 10px 30px rgba(0,0,0,0.4));
  transform: translateY(40px) scale(0.90); /* resting position, JS takes over */
}
.bi-bk-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  will-change: opacity;
}
.bi-bk-closed { opacity: 1; z-index: 2; }
.bi-bk-open   { opacity: 0; z-index: 1; }

/* Rechtsgebiete overlay on the right page of the open book */
.bi-rp-overlay {
  position: absolute;
  top: 10%;
  right: 4%;
  width: 45%;
  height: 68%;
  z-index: 3;
  overflow: hidden;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity;
  background: rgba(253,248,236,0.0); /* transparent — uses .bi-rp background */
}

/* ---- BOOK WRAPPER (legacy — kept for safety) ---- */
.bi-book-wrap {
  position: relative;
  width: 280px;
  height: 380px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 50px 90px rgba(0,0,0,0.8)) drop-shadow(0 0 30px rgba(201,168,76,0.08));
  will-change: transform;
}

/* Spine — left face of the book (width = book depth = thickness) */
.bi-spine {
  position: absolute;
  top: 0;
  left: -62px;
  width: 62px;
  height: 100%;
  background: linear-gradient(180deg, #030810 0%, #090f1e 45%, #1A2B5E 100%);
  transform-origin: right center;
  transform: rotateY(-90deg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px 0 0 3px;
}
.bi-spine::after {
  content: '';
  position: absolute;
  right: 0; top: 8%; bottom: 8%; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(201,168,76,0.35), transparent);
}
.bi-spine span {
  color: rgba(201,168,76,0.42);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

/* Top face — shows book thickness from above */
.bi-top-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 62px; /* matches spine width = book depth */
  background: repeating-linear-gradient(
    to right,
    #f7f1e3 0px, #ede4ca 1px, #f5eedc 2px, #f0e8d4 3px
  );
  transform-origin: top center;
  transform: rotateX(-90deg);
  opacity: 0.65;
  border-top: 1px solid rgba(201,168,76,0.2);
}

/* Pages body — the blue back plate with page edges */
.bi-pages-body {
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #1a2b5e 0%, #0d1936 60%, #060d1a 100%);
  border-radius: 0 5px 5px 0;
}
/* Right-side page texture edge */
.bi-pages-body::after {
  content: '';
  position: absolute;
  top: 5px; bottom: 5px; right: -5px;
  width: 9px;
  background: repeating-linear-gradient(
    to bottom,
    #f5eedc 0px, #ede4ca 1px, #f5eedc 2px, #f0e8d4 3px
  );
  border-radius: 0 2px 2px 0;
  opacity: 0.45;
}

/* Open book pages — revealed when cover opens */
.bi-open-spread {
  position: absolute;
  inset: 5px 5px 5px 5px;
  display: flex;
  background: #fdf8ec;
  border-radius: 0 3px 3px 0;
  overflow: hidden;
  box-shadow: inset 2px 0 8px rgba(0,0,0,0.06);
}
.bi-page { flex: 1; padding: 1.15rem 0.85rem; }
.bi-page-l { border-right: 1px solid rgba(26,43,94,0.09); }
.bi-pg-head {
  font-size: 0.38rem; font-weight: 700; color: var(--blue);
  text-transform: uppercase; letter-spacing: 0.07em;
  border-bottom: 1px solid rgba(201,168,76,0.5);
  padding-bottom: 0.3rem; margin-bottom: 0.45rem;
}
.bi-pg-ref {
  font-family: var(--font-display); font-size: 0.58rem; font-weight: 700;
  color: var(--blue); margin: 0.4rem 0 0.1rem;
}
.bi-pg-body { font-size: 0.37rem; color: #555; line-height: 1.55; }

/* ---- FRONT COVER ---- */
.bi-front {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  will-change: transform;
}
.bi-front-a {
  position: absolute;
  inset: 0;
  border-radius: 0 5px 5px 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(148deg, #1e347a 0%, #0d1936 55%, #060d1a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 2rem 1.5rem;
  box-shadow: 3px 0 30px rgba(0,0,0,0.7), inset 0 0 80px rgba(20,40,90,0.25);
}
/* Inner gold frame on cover */
.bi-front-a::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(201,168,76,0.14);
  border-radius: 0 3px 3px 0;
  pointer-events: none;
}
.bi-front-b {
  position: absolute;
  inset: 0;
  border-radius: 0 5px 5px 0;
  background: linear-gradient(155deg, #f0e8d0 0%, #e0d4b0 100%);
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bi-seal {
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--gold);
  text-shadow: 0 0 40px rgba(201,168,76,0.55), 0 0 90px rgba(201,168,76,0.2);
  line-height: 1;
}
.bi-firm-name {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.1em;
}
.bi-firm-type {
  color: rgba(201,168,76,0.52);
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
}
.bi-divider-h {
  width: 55px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(201,168,76,0.48), transparent);
}
.bi-firm-areas {
  color: rgba(255,255,255,0.28);
  font-size: 0.48rem;
  text-align: center;
  line-height: 2.1;
  letter-spacing: 0.04em;
}

/* ---- TURNING PAGES (right side of open book) ---- */
.bi-rp-stage {
  position: relative;
  overflow: hidden;
  perspective: 600px;
}
.bi-rp {
  position: absolute;
  inset: 0;
  padding: 0.9rem 0.7rem;
  background: linear-gradient(160deg, rgba(253,248,236,0.96) 0%, rgba(245,238,220,0.96) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  opacity: 0;
  transform: rotateY(90deg);
  transform-origin: left center;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.12s ease;
  backface-visibility: hidden;
}
.bi-rp.active {
  opacity: 1;
  transform: rotateY(0deg);
  pointer-events: auto;
  transition:
    transform 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.12s ease;
}
.bi-rp.exiting {
  opacity: 0;
  transform: rotateY(-90deg);
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.55, 0, 1, 1),
    opacity 0.15s ease 0.28s;
}
.bi-rp-symbol {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(26,43,94,0.14);
  line-height: 1;
}
.bi-rp-name {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  line-height: 1.2;
  border-bottom: 1px solid rgba(201,168,76,0.55);
  padding-bottom: 0.3rem;
  width: 100%;
  text-align: center;
}
.bi-rp-tags {
  font-size: 0.34rem;
  color: #666;
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ---- LAW PARTICLES ---- */
.bi-particles {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  z-index: 20;
}
.bi-p {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(10,20,45,0.92);
  border: 1px solid rgba(201,168,76,0.22);
  border-left: 3px solid var(--gold);
  padding: 0.35rem 0.85rem 0.35rem 0.75rem;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 24px rgba(0,0,0,0.65), 0 0 20px rgba(201,168,76,0.06);
}

/* ---- SCROLL HINT ---- */
.bi-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255,255,255,0.33);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 10;
  will-change: opacity;
}
.bi-hint svg { animation: biHintBounce 2.2s ease-in-out infinite; }
.bi-hint-dot { animation: biHintDot 2.2s ease-in-out infinite; }
@keyframes biHintBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes biHintDot {
  0%, 100% { opacity: 1; cy: 4.5; }
  50% { opacity: 0.4; }
}

/* Navbar — dark mode over book intro */
#navbar.bi-dark {
  background: rgba(4,11,24,0.72) !important;
  border-bottom-color: rgba(201,168,76,0.16) !important;
}
#navbar.bi-dark .nav-links a { color: rgba(255,255,255,0.75); }
#navbar.bi-dark .nav-links a:hover { color: var(--gold); }
#navbar.bi-dark .nav-phone { color: rgba(255,255,255,0.88); }
#navbar.bi-dark .btn-outline { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.8); }

/* ============================================================
   HERO
   ============================================================ */

/* === HERO === */
#hero {
  min-height: 82vh; display: flex; align-items: center;
  padding-top: var(--navbar-h);
  background:
    linear-gradient(to right, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.93) 42%, rgba(255,255,255,0.55) 72%, rgba(255,255,255,0.08) 100%),
    url('assets/banner.png') center center / cover no-repeat;
}
.hero-content { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-md); display: flex; align-items: center; gap: var(--space-lg); }
.hero-text { flex: 0 0 55%; }
.hero-eyebrow { color: var(--gold); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.hero-text h1 { margin-bottom: var(--space-md); }
.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: var(--space-md); max-width: 540px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-portrait-wrap { flex: 1; display: flex; justify-content: center; align-items: flex-end; }
.hero-portrait {
  width: auto; max-width: 380px; height: 480px;
  object-fit: cover; object-position: top center;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(26,43,94,0.15);
  display: block;
  filter: brightness(0.93) contrast(0.88) saturate(0.9);
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* === 3D BOOK SCENE === */
.book-scene {
  width: 100%; height: 100%; min-height: 500px;
  background: linear-gradient(140deg, #050d1f 0%, #0d1936 40%, #1A2B5E 100%);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center; gap: 2rem;
  padding: 2rem; overflow: hidden; position: relative;
}
.book-scene::before {
  content: '';
  position: absolute; inset: 0; border-radius: 16px;
  background: radial-gradient(ellipse 60% 60% at 60% 40%, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* 3D wrapper with perspective */
.book3d-wrapper {
  perspective: 1400px; flex-shrink: 0;
}
.book3d {
  width: 240px; height: 320px;
  position: relative; transform-style: preserve-3d;
  transform: rotateX(6deg) rotateY(-28deg);
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.7));
}

/* Spine */
.book3d-spine {
  position: absolute;
  width: 28px; height: 320px;
  left: -28px; top: 0;
  background: linear-gradient(to right, #060e1e, #0d1936);
  transform-origin: right center;
  transform: rotateY(-90deg) translateX(-14px);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px 0 0 2px;
}
.book3d-spine span {
  color: rgba(201,168,76,0.6); font-size: 0.55rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  writing-mode: vertical-rl; transform: rotate(180deg);
}

/* Book body (cover + pages) */
.book3d-body {
  position: relative; width: 240px; height: 320px;
  border-radius: 0 4px 4px 0;
  box-shadow: 4px 0 0 0 rgba(201,168,76,0.25), inset -3px 0 12px rgba(0,0,0,0.3);
}

/* Cover shown behind pages */
.book3d-cover-art {
  position: absolute; inset: 0;
  background: linear-gradient(155deg, #1A2B5E 0%, #0d1936 100%);
  border-radius: 0 4px 4px 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.5rem; z-index: 0;
}
.book3d-cover-symbol {
  font-family: var(--font-display); font-size: 4rem; color: var(--gold);
  text-shadow: 0 0 30px rgba(201,168,76,0.5); line-height: 1;
}
.book3d-cover-title {
  font-family: var(--font-display); color: var(--white); font-size: 0.85rem;
  font-weight: 700; text-align: center; letter-spacing: 0.05em;
}
.book3d-cover-sub {
  color: rgba(201,168,76,0.7); font-size: 0.6rem; letter-spacing: 0.08em;
  text-align: center; line-height: 1.6;
}

/* Pages container */
.book3d-pages {
  position: absolute; inset: 6px 4px 6px 6px;
  border-radius: 0 3px 3px 0; overflow: hidden;
  z-index: 1;
}

/* Individual page */
.book3d-page {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #fdf8ec 0%, #f5eedc 100%);
  border-radius: 0 3px 3px 0;
  display: flex; flex-direction: column;
  padding: 1.75rem 1.5rem; gap: 0.4rem;
  opacity: 0;
  transform: rotateY(90deg);
  transform-origin: left center;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}
.book3d-page.active {
  opacity: 1; transform: rotateY(0deg); pointer-events: auto;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}
.book3d-page.exiting {
  opacity: 0; transform: rotateY(-90deg); pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.6, 0, 1, 1), opacity 0.15s ease 0.3s;
}

.page-deco-para {
  font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  color: rgba(26,43,94,0.15); line-height: 1;
}
.page-law-ref {
  font-size: 0.7rem; font-weight: 700; color: var(--gold);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.page-rule {
  width: 40px; height: 2px; background: var(--gold); margin: 0.5rem 0;
  border-radius: 2px;
}
.page-law-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  color: var(--blue); line-height: 1.2;
}
.page-law-desc {
  font-size: 0.75rem; color: #6b6b6b; line-height: 1.5; font-style: italic;
  margin-top: 0.25rem;
}
.page-corner-fold {
  position: absolute; bottom: 0; right: 0;
  width: 0; height: 0;
  border-left: 28px solid transparent;
  border-bottom: 28px solid rgba(201,168,76,0.25);
}

/* Laws list (right side of scene) */
.book-laws-list {
  display: flex; flex-direction: column; gap: 0.6rem;
}
.book-law-item {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 500; color: rgba(255,255,255,0.4);
  cursor: pointer; transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}
.book-law-item:hover { color: rgba(255,255,255,0.7); }
.book-law-item.active { color: var(--white); transform: translateX(4px); }
.law-bullet {
  font-family: var(--font-display); font-size: 0.9rem; color: rgba(201,168,76,0.4);
  transition: color 0.3s ease;
}
.book-law-item.active .law-bullet { color: var(--gold); }

/* ============================================================
   PARTNER & MITGLIEDSCHAFTEN LOGO-BANNER
   ============================================================ */
#partner-logos {
  padding: 0;
  background: linear-gradient(180deg, #060d1a 0%, #0d1936 100%);
  border-top: 1px solid rgba(201,168,76,0.14);
  border-bottom: 1px solid rgba(201,168,76,0.14);
}

.partner-strip {
  overflow: hidden;
  padding: 1.5rem 2rem;
}

.partner-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2.5rem;
  flex-shrink: 0;
}

.partner-logo-img {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  filter: invert(1) grayscale(0.2) opacity(0.65);
  transition: filter 0.3s ease;
}

.partner-logo-img:hover {
  filter: invert(1) grayscale(0) opacity(1);
}

.partner-divider {
  width: 1px;
  height: 32px;
  background: rgba(201,168,76,0.22);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .partner-logo-item { padding: 0.5rem 1.2rem; }
  .partner-logo-img { height: 32px; }
  .partner-divider { display: none; }
}

/* === TRUST BAR === */
#trust { background: var(--gray-light); padding: var(--space-lg) 0; }
.trust-items { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: var(--space-md); margin-bottom: var(--space-sm); }
.trust-item { display: flex; align-items: center; gap: 0.75rem; }
.trust-item-google { flex-direction: row; }
.trust-item-badge { padding: 0.25rem 0; }
.trust-stars { color: var(--gold); font-size: 1.25rem; }
.trust-label { font-weight: 600; color: var(--blue); line-height: 1.4; }
.trust-label-sub { font-weight: 400; font-size: 0.85em; color: var(--text-muted); }
.trust-badge-img {
  height: 88px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 3px 12px rgba(0,0,0,0.18));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.trust-badge-img:hover {
  transform: translateY(-3px) scale(1.04);
  filter: drop-shadow(0 6px 20px rgba(201,168,76,0.35));
}
.trust-sub { text-align: center; color: var(--text-muted); font-style: italic; margin-top: var(--space-sm); }

/* Qualifikations-Badges über Testimonials */
.quali-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-mid);
  border-bottom: 1px solid var(--gray-mid);
}
.quali-badge-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.15));
  transition: transform 0.3s ease, filter 0.3s ease;
}
.quali-badge-img:hover {
  transform: translateY(-4px) scale(1.05);
  filter: drop-shadow(0 8px 24px rgba(201,168,76,0.4));
}

/* ============================================================
   BLOG WEITERLESEN BUTTON
   ============================================================ */
.blog-read-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  color: var(--gold);
  font-weight: 600;
  transition: color var(--transition);
  text-align: left;
}
.blog-read-btn:hover { text-decoration: underline; color: #b8923e; }

/* ============================================================
   3D ARTIKEL-MODAL
   ============================================================ */
.art-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.art-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.art-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(4,11,24,0.82);
  cursor: pointer;
}
.art-modal-scene {
  position: relative;
  z-index: 1;
  perspective: 1400px;
  width: min(760px, 95vw);
  max-height: 90vh;
}
.art-modal-book {
  display: flex;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
}
.art-modal-spine {
  width: 22px;
  min-height: 100%;
  background: linear-gradient(180deg, #0d1936, #1A2B5E, #0d1936);
  border-radius: 4px 0 0 4px;
  flex-shrink: 0;
  box-shadow: inset -3px 0 8px rgba(0,0,0,0.4);
}
.art-modal-spine::after {
  content: 'Yendi & Partner';
  display: block;
  color: rgba(201,168,76,0.5);
  font-size: 0.45rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 1rem 0.3rem;
}
.art-modal-page {
  background: linear-gradient(160deg, #fdf8ec 0%, #f5eedc 100%);
  border-radius: 0 8px 8px 0;
  padding: 3rem 3rem 3rem 2.5rem;
  max-height: 88vh;
  overflow-y: auto;
  transform-origin: left center;
  transform: rotateY(-88deg);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  flex: 1;
}
.art-modal.open .art-modal-page {
  transform: rotateY(0deg);
}
.art-modal-close {
  position: sticky;
  top: 0;
  float: right;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
  z-index: 1;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.art-modal-close:hover { background: var(--gold); }
.art-modal-inner { clear: both; }
.art-modal-inner .art-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.art-modal-inner h2 {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.3;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(201,168,76,0.4);
  padding-bottom: 1rem;
}
.art-modal-inner h3 {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}
.art-modal-inner p { color: #444; line-height: 1.8; margin-bottom: 1rem; font-size: 0.95rem; }
.art-modal-inner ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.art-modal-inner ol li { color: #444; line-height: 1.8; margin-bottom: 0.75rem; font-size: 0.95rem; }
.art-modal-inner strong { color: var(--blue); }
.art-modal-footer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201,168,76,0.35);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* === LEISTUNGEN === */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.service-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.service-card img { height: 200px; }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { margin-bottom: 0.5rem; }
.service-tagline { color: var(--gold); font-size: 0.9rem; font-style: italic; margin-bottom: 1rem; }
.service-card-body ul { margin-bottom: 1rem; }
.service-card-body ul li { color: var(--text-muted); padding: 0.25rem 0; padding-left: 1rem; position: relative; }
.service-card-body ul li::before { content: '–'; position: absolute; left: 0; color: var(--gold); }
.service-link { color: var(--gold); font-weight: 600; transition: color var(--transition); }
.service-link:hover { text-decoration: underline; }

/* === BILD-FALLBACKS === */
img[src="assets/niyazi.png"],
img[src="assets/arbeitsrecht.png"],
img[src="assets/hero.png"],
img[src="assets/blog-1.png"],
img[src="assets/blog-2.png"],
img[src="assets/blog-3.png"] {
  background: linear-gradient(135deg, var(--blue) 0%, #2a4a8a 100%);
}
.img-placeholder {
  width: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.75rem;
  background: linear-gradient(135deg, #0d1936 0%, var(--blue) 100%);
  color: var(--gold); border-radius: 8px;
}
.img-placeholder-initials {
  font-family: var(--font-display); font-size: 3rem; font-weight: 700;
  width: 96px; height: 96px; border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,168,76,0.1);
}
.img-placeholder-label {
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(201,168,76,0.7);
}
.img-placeholder-icon {
  font-size: 2.5rem; opacity: 0.5;
}

/* === ÜBER UNS === */
#ueber-uns { background: var(--blue); }
#ueber-uns .section-header h2 { color: var(--white); }
#ueber-uns .section-sub { color: rgba(255,255,255,0.75); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.team-card { background: rgba(255,255,255,0.08); border-radius: 12px; padding: var(--space-md); border: 1px solid rgba(255,255,255,0.15); }
.team-img { height: 380px; border-radius: 8px; margin-bottom: var(--space-sm); object-fit: cover; object-position: top center; }
.team-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 0.25rem; }
.team-title { color: var(--gold); font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }
.team-bio { color: rgba(255,255,255,0.8); line-height: 1.7; }

/* === PROZESS === */
#prozess { background: var(--gray-light); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-bottom: var(--space-lg); }
.step { background: var(--white); padding: var(--space-md); border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.step-number { width: 56px; height: 56px; background: var(--gold); color: var(--white); font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-sm); }
.step h3 { margin-bottom: 0.75rem; }
.step p { color: var(--text-muted); }
.prozess-cta { text-align: center; }

/* === TESTIMONIALS === */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.4s ease; }
.testimonial { min-width: 100%; padding: var(--space-md); background: var(--gray-light); border-radius: var(--radius); text-align: center; }
.stars { color: var(--gold); font-size: 1.25rem; margin-bottom: 1rem; }
.testimonial-text { font-size: 1.1rem; color: var(--text); font-style: italic; max-width: 700px; margin: 0 auto var(--space-sm); line-height: 1.8; }
.testimonial-author { color: var(--text-muted); font-weight: 600; }
.carousel-controls { display: flex; justify-content: center; gap: 1rem; margin-top: var(--space-md); }
.carousel-btn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--blue); color: var(--blue); font-size: 1.25rem; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.carousel-btn:hover { background: var(--blue); color: var(--white); }
.google-link { text-align: center; margin-top: var(--space-md); }

/* === BLOG === */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); }
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-card img { height: 220px; }
.blog-card-body { padding: 1.5rem; }
.blog-tag { display: inline-block; background: var(--gold); color: var(--white); font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 20px; margin-bottom: 0.75rem; text-transform: uppercase; }
.blog-card-body h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.blog-meta { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; }

/* === FAQ === */
#faq { background: var(--gray-light); padding: var(--space-xl) 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2rem; }
.faq-item { background: var(--white); border-radius: var(--radius); border: 1px solid var(--gray-mid); overflow: hidden; }
.faq-item summary {
  padding: 1.1rem 1.5rem; font-weight: 600; font-size: .97rem; color: var(--blue);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; color: var(--gold); font-weight: 400; flex-shrink: 0; margin-left: 1rem; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] { border-color: var(--gold); }
.faq-item p { padding: 0 1.5rem 1.2rem; color: var(--text-muted); line-height: 1.75; margin: 0; font-size: .93rem; }
@media (max-width: 768px) { .faq-grid { grid-template-columns: 1fr; } }

/* === WHATSAPP BUTTON === */
.whatsapp-btn {
  position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 999;
  background: #25D366; color: #fff;
  display: flex; align-items: center; gap: .55rem;
  padding: .7rem 1.2rem .7rem .9rem;
  border-radius: 50px; box-shadow: 0 4px 20px rgba(0,0,0,.22);
  text-decoration: none; font-weight: 600; font-size: .88rem;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.whatsapp-btn-label { white-space: nowrap; }
@media (max-width: 480px) { .whatsapp-btn-label { display: none; } .whatsapp-btn { padding: .8rem; border-radius: 50%; } }

/* === KONTAKT === */
#kontakt { background: var(--white); }

/* Schnelloptionen-Buttons */
.kontakt-schnell {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.kontakt-schnell-btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--gray-light);
  border: 2px solid var(--gray-mid);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
  cursor: pointer;
}
.kontakt-schnell-btn:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.ks-icon { font-size: 1.3rem; flex-shrink: 0; }
.ks-label { line-height: 1.3; }
@media (max-width: 768px) {
  .kontakt-schnell { flex-direction: column; }
  .kontakt-schnell-btn { min-width: unset; width: 100%; }
}
.kontakt-grid { display: grid; grid-template-columns: 1fr 380px; gap: var(--space-lg); }
.kontakt-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-group label { font-weight: 600; color: var(--blue); font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  padding: 0.75rem 1rem; border: 1.5px solid var(--gray-mid); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 1rem; color: var(--text);
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); }
.form-check { display: flex; gap: 0.75rem; align-items: flex-start; }
.form-check input { margin-top: 3px; accent-color: var(--gold); }
.form-check label { font-size: 0.875rem; color: var(--text-muted); }
.form-check a { color: var(--gold); text-decoration: underline; }
.form-success { color: var(--color-success); font-weight: 600; }
.form-error { color: var(--color-error); }
.form-hinweis {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--gray-mid);
  padding-top: 0.75rem;
  line-height: 1.5;
  font-style: italic;
}
.hidden { display: none; }
.kontakt-info h3 { color: var(--blue); margin-bottom: var(--space-sm); font-family: var(--font-display); }
.kontakt-info p { margin-bottom: 1rem; color: var(--text-muted); line-height: 1.7; }
.kontakt-info a { color: var(--blue); font-weight: 600; }
.kontakt-info a:hover { color: var(--gold); }
.kontakt-map { margin-top: var(--space-sm); border-radius: var(--radius); overflow: hidden; }

/* === FOOTER === */
#footer { background: var(--blue); color: rgba(255,255,255,0.8); padding: var(--space-lg) 0 var(--space-md); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--space-lg); margin-bottom: var(--space-lg); }
.footer-logo-img { height: 80px; width: auto; object-fit: contain; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { color: var(--gold); font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; }
.footer-links ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact p { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-social { margin-top: 1.2rem; display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.22);
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: visible;
  position: relative;
}
.social-icon img { width: 32px; height: 32px; object-fit: contain; display: block; }
.social-icon:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 6px 18px rgba(201,168,76,.35); }
.social-icon-btn { border: none; cursor: pointer; padding: 0; font-family: inherit; }

/* Tooltip beim Hover */
.social-icon::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  padding: 0.32rem 0.7rem;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 20;
}
/* kleines Dreieck unter dem Tooltip */
.social-icon::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: var(--blue);
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 20;
}
.social-icon:hover::after,
.social-icon:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* Kontakt-Sektion Social Icons — heller Hintergrund */
.kontakt-social .social-icon { background: var(--gray-light); border-color: var(--gray-mid); }
.kontakt-social .social-icon img { filter: none; }
.kontakt-social .social-icon:hover { background: var(--gold); border-color: var(--gold); }
.kontakt-social .social-icon:hover img { filter: brightness(0) invert(1); }
.footer-bottom { padding-top: var(--space-md); font-size: 0.875rem; }
.footer-bottom p { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; margin-top: 0; }
.footer-bottom a { color: var(--gold); }
.footer-bottom-social { display: flex; justify-content: flex-end; gap: .65rem; margin-bottom: 1.25rem; }
@media (max-width: 480px) { .footer-bottom-social { justify-content: center; } }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  /* Tablet: Kontakt einspaltig */
  .kontakt-grid { grid-template-columns: 1fr; }
  /* Tablet: Hero Portrait kleiner */
  .hero-portrait { max-width: 300px; height: 380px; }
  .hero-text { flex: 0 0 58%; }
}

@media (max-width: 768px) {
  /* Abstände reduzieren */
  section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }

  /* Book intro on mobile */
  #book-intro { height: 280vh; }
  .bi-book-wrap { width: 200px; height: 270px; }
  .bi-seal { font-size: 4rem; }
  .bi-firm-name { font-size: 0.65rem; }
  .bi-spine { left: -44px; width: 44px; }
  .bi-top-face { height: 44px; }

  /* Hero on mobile */
  #hero { min-height: auto; padding-bottom: 3rem; }
  .hero-content { flex-direction: column; padding-top: 1.5rem; gap: 2rem; }
  .hero-text { flex: none; width: 100%; }
  .hero-sub { font-size: 1rem; }
  .hero-portrait-wrap { display: none; }
  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Navigation */
  .nav-inner { padding: 0.75rem 1.25rem; }
  .nav-logo-img { height: 70px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--white); padding: 1.5rem 2rem;
    box-shadow: var(--shadow); border-top: 1px solid var(--gray-mid); gap: 1rem;
    z-index: 999;
  }
  .nav-toggle { display: block; }
  .nav-cta { gap: 0.5rem; }
  .nav-cta .nav-phone { display: none; }
  .nav-cta .btn { padding: 0.6rem 1rem; font-size: 0.85rem; }

  /* Grids */
  .cards-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .kontakt-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Trust */
  .trust-items { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .trust-badge-img { height: 70px; }
  .quali-badges { gap: 1.25rem; }
  .quali-badge-img { height: 75px; }

  /* Team */
  .team-img { height: 300px; }

  /* Blog-Karten */
  .blog-card img { height: 200px; }
  .service-card img { height: 180px; }

  /* Artikel-Modal — Bottom Sheet auf Mobilgeräten */
  .art-modal { align-items: flex-end; }
  .art-modal-scene {
    width: 100vw;
    max-height: 90vh;
    perspective: none !important;
  }
  .art-modal-book { border-radius: 16px 16px 0 0; overflow: hidden; }
  .art-modal-spine { display: none; }
  .art-modal-page {
    border-radius: 16px 16px 0 0 !important;
    padding: 1.5rem 1.25rem 2.5rem !important;
    max-height: 90vh !important;
    transform: translateY(40px) !important;
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease !important;
  }
  .art-modal.open .art-modal-page {
    transform: translateY(0) !important;
    opacity: 1;
  }
  .art-modal-inner h2 { font-size: 1.2rem; }
  .art-modal-close { position: sticky; top: 0; float: right; margin-bottom: 0.75rem; }

  /* WhatsApp-Dialog */
  #wa-modal-overlay { padding: 1rem 0.75rem; }
  #wa-modal-overlay > div { padding: 1.5rem !important; }

  /* Kontakt Social-Icons */
  .kontakt-social { margin-top: 1rem !important; }
  .social-icon { width: 42px; height: 42px; }

  /* Footer */
  .footer-grid { gap: 2rem; }
  .footer-bottom-social { justify-content: center; }
}

/* === SMARTPHONES (max 480px) === */
@media (max-width: 480px) {
  :root { --navbar-h: 90px; }
  .container { padding: 0 1.1rem; }
  section { padding: 2.5rem 0; }

  h1 { font-size: clamp(1.65rem, 8vw, 2.2rem); }
  h2 { font-size: clamp(1.4rem, 6vw, 1.8rem); }

  /* Navbar */
  .nav-logo-img { height: 60px; }
  .nav-inner { padding: 0.6rem 1rem; gap: 1rem; }
  .nav-cta .btn { padding: 0.55rem 0.85rem; font-size: 0.8rem; }

  /* Hero */
  .hero-eyebrow { font-size: 0.75rem; }
  .hero-text h1 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .hero-sub { font-size: 0.95rem; }

  /* Service-Karten */
  .service-card img { height: 155px; }
  .service-card-body { padding: 1.2rem; }

  /* Blog */
  .blog-card img { height: 175px; }
  .blog-card-body { padding: 1.2rem; }

  /* Steps */
  .step { padding: 1.5rem; }

  /* FAQ */
  .faq-item summary { padding: 1rem 1.25rem; font-size: 0.92rem; }

  /* Testimonials */
  .testimonial-text { font-size: 1rem; }
  .carousel-btn { width: 40px; height: 40px; }

  /* Kontakt */
  .form-group input, .form-group select, .form-group textarea { font-size: 16px; }

  /* Footer */
  .footer-logo-img { height: 60px; }
  .social-icon { width: 38px; height: 38px; }
  .social-icon img { width: 22px; height: 22px; }

  /* Blog-Modal */
  .art-modal-page { padding: 1.25rem 1rem 2rem !important; }
}

/* === IPAD / TABLET-QUERFORMAT (769px – 1024px) — Zusätze === */
@media (min-width: 769px) and (max-width: 1024px) {
  section { padding: 4rem 0; }
  .hero-content { gap: 3rem; }
  .lp-topics, .blog-grid, .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   IPHONE / IOS SAFARI — SPEZIFISCHE FIXES
   ============================================================ */

/* Text-Zoom durch iOS verhindern */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Blaues Tap-Highlight entfernen, Schriften glätten */
body {
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Touch-Aktivierung für alle klickbaren Elemente (iOS erfordert dies) */
a, button, .blog-read-btn, .service-link, summary, .faq-item summary,
.carousel-btn, .social-icon, .whatsapp-btn, [role="button"] {
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

/* Smooth Scrolling in Modal auf iOS */
.art-modal-page,
#wa-modal-overlay {
  -webkit-overflow-scrolling: touch;
}

/* Bilder nie breiter als Container */
img {
  max-width: 100%;
}

/* Inputs: font-size 16px = kein Auto-Zoom auf iOS */
input, select, textarea {
  font-size: 16px !important;
}

/* Safe Area für iPhone-Notch / Dynamic Island (iPhone X und neuer) */
@supports (padding: env(safe-area-inset-top)) {
  #navbar .nav-inner {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
  }
  .whatsapp-btn {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    right: calc(1.75rem + env(safe-area-inset-right));
  }
  @media (max-width: 768px) {
    .art-modal-page {
      padding-bottom: calc(2.5rem + env(safe-area-inset-bottom)) !important;
    }
    #wa-modal-overlay {
      padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    .nav-links.open {
      padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
    }
  }
}

/* Navbar-Höhe auf kleinen iPhones (SE, mini) */
@media (max-width: 390px) {
  .nav-logo-img { height: 55px; }
  .nav-inner { padding: 0.5rem 1rem; }
  :root { --navbar-h: 82px; }
  h1 { font-size: clamp(1.5rem, 7.5vw, 2rem); }
  h2 { font-size: clamp(1.3rem, 6vw, 1.6rem); }
  .container { padding: 0 1rem; }
  section { padding: 2rem 0; }
  .btn { padding: 0.75rem 1.25rem; font-size: 0.88rem; }
  .hero-actions .btn { padding: 0.85rem 1.25rem; }
  .blog-card img { height: 160px; }
  .service-card img { height: 150px; }
  .team-img { height: 260px; }
  .trust-badge-img { height: 60px; }
  .quali-badge-img { height: 65px; }
}

/* ============================================================
   COOKIE-BANNER
   ============================================================ */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--blue);
  border-top: 3px solid var(--gold);
  box-shadow: 0 -4px 32px rgba(0,0,0,0.25);
  padding: 1.25rem 0;
  animation: cbSlideUp 0.4s ease;
}
@keyframes cbSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.cb-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.cb-text { flex: 1; min-width: 260px; }
.cb-text strong { color: var(--gold); font-size: 0.9rem; display: block; margin-bottom: 0.3rem; }
.cb-text p { color: rgba(255,255,255,0.82); font-size: 0.83rem; line-height: 1.6; margin: 0; }
.cb-text a { color: var(--gold); text-decoration: underline; }
.cb-actions { display: flex; gap: 0.75rem; flex-shrink: 0; flex-wrap: wrap; }
.cb-btn {
  padding: 0.7rem 1.4rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  touch-action: manipulation;
}
.cb-btn-gold { background: var(--gold); color: #fff; border: 2px solid var(--gold); }
.cb-btn-gold:hover { background: #b8923e; border-color: #b8923e; }
.cb-btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.4); }
.cb-btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
@media (max-width: 768px) {
  .cb-inner { gap: 1rem; }
  .cb-actions { width: 100%; }
  .cb-btn { flex: 1; text-align: center; }
}
@media (max-width: 480px) {
  #cookie-banner { padding: 1rem 0; }
  .cb-inner { padding: 0 1.1rem; }
  .cb-actions { flex-direction: column; }
  .cb-btn { width: 100%; }
}

/* Google Maps Platzhalter (vor Zustimmung) */
#maps-placeholder {
  width: 100%; height: 100%;
  min-height: 300px;
  background: var(--gray-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}
#maps-placeholder svg { opacity: 0.4; }

/* === LANGUAGE SWITCHER === */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: 0.75rem;
  border-left: 1px solid rgba(26,43,94,.18);
  padding-left: 0.75rem;
}
.lang-btn {
  font-family: var(--font-body);
  font-size: 0.71rem;
  font-weight: 700;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.08em;
  line-height: 1.2;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.lang-active {
  background: var(--gold);
  color: #fff;
  pointer-events: none;
}
.lang-inactive {
  color: var(--blue);
  border: 1.5px solid rgba(26,43,94,.3);
}
.lang-inactive:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.lang-sep {
  color: rgba(26,43,94,.3);
  font-size: 0.75rem;
  line-height: 1;
}
@media (max-width: 900px) {
  .lang-switch {
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
}

/* === FOOTER REGIONEN === */
.footer-regions {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.footer-regions h4 {
  color: rgba(255,255,255,.6);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .85rem;
}
.footer-regions-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
}
.footer-regions-links a {
  color: rgba(255,255,255,.55);
  font-size: .82rem;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-regions-links a:hover {
  color: var(--gold);
}
