/* ===========================
   SHARED DESIGN SYSTEM
   Zitzelsberger Website
=========================== */

/* Lokale Inter-Fonts (SIL Open Font License). Keine externe Verbindung. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300; font-display: swap; src: url('fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/inter-800.woff2') format('woff2'); }

:root {
  --primary:      #00A7B7;
  --primary-dark: #008fa0;
  --secondary:    #0c4da2;
  --secondary-dark:#0a3f87;
  --white:        #ffffff;
  --light:        #f4f8fb;
  --gray:         #6b7280;
  --dark:         #1a2332;
  --text:         #2d3748;
  --border:       #e2e8f0;
  --shadow:       0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 48px rgba(0,0,0,0.15);
  --radius:       10px;
  --radius-lg:    18px;
  --transition:   all 0.28s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; max-width: 100vw; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Sections */
.section        { padding: 88px 0; }
.section--light { background: var(--light); }
.section--primary { background: var(--primary); color: var(--white); }
.section--dark  { background: var(--dark); color: var(--white); }

/* Labels / Titles */
.section-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section--primary .section-label, .section--dark .section-label { color: rgba(255,255,255,0.7); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; line-height: 1.2; color: var(--dark); margin-bottom: 18px; }
.section--primary .section-title, .section--dark .section-title { color: var(--white); }
.section-subtitle { font-size: 1.05rem; color: var(--gray); max-width: 620px; }
.section--primary .section-subtitle, .section--dark .section-subtitle { color: rgba(255,255,255,0.8); }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: var(--radius); font-size: 0.93rem; font-weight: 600; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--secondary); }
.btn-light:hover { background: var(--light); }
.btn-outline-primary { background: var(--white); color: var(--primary); border: 2px solid var(--primary); padding: 11px 24px; }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; border-radius: 12px; }

/* Grids */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 22px; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--primary); }

/* Tag / Badge */
.tag { padding: 4px 11px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; background: rgba(0,167,183,0.1); color: var(--primary-dark); }

/* ===========================
   HEADER
=========================== */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); transition: var(--transition); }
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.10); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; justify-content: center; flex: 1; gap: 4px; list-style: none; }
.nav a { padding: 8px 13px; border-radius: 8px; font-size: 0.87rem; font-weight: 500; color: var(--text); transition: var(--transition); }
.nav a:hover, .nav a.active { background: var(--light); color: var(--primary); }
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.68em; }
.dropdown-menu { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; min-width: 210px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: var(--transition); }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 9px 13px; border-radius: 6px; font-size: 0.86rem; color: var(--text); }
.dropdown-menu a:hover { background: var(--light); color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-phone { display: flex; align-items: center; gap: 7px; font-size: 0.87rem; font-weight: 600; color: var(--dark); padding: 8px 13px; border-radius: 8px; border: 1.5px solid var(--border); transition: var(--transition); }
.header-phone:hover { border-color: var(--primary); color: var(--primary); }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--dark); border-radius: 2px; }

.mobile-nav { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px 24px; z-index: 999; box-shadow: var(--shadow); }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; font-weight: 500; color: var(--text); }
.mobile-nav a:last-child { border-bottom: none; }

/* ===========================
   PAGE HERO (inner pages)
=========================== */
.page-hero { background: linear-gradient(135deg, var(--secondary) 0%, #0a3680 50%, var(--dark) 100%); padding: 120px 0 72px; position: relative; overflow: hidden; margin-top: 72px; }
.page-hero::before { content: ''; position: absolute; top: -40%; right: -10%; width: 500px; height: 500px; border-radius: 50%; background: rgba(0,167,183,0.1); }
.page-hero-content { position: relative; z-index: 1; }
.page-hero-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(0,167,183,0.9); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 18px; }
.page-hero p { font-size: 1.07rem; color: rgba(255,255,255,0.78); max-width: 580px; }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-bottom: 20px; }
.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: rgba(255,255,255,0.35); }

/* ===========================
   FOOTER
=========================== */
.footer { background: #0d1520; color: rgba(255,255,255,0.75); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand p { font-size: 0.86rem; line-height: 1.7; margin: 18px 0 22px; }
.social-links { display: flex; gap: 10px; }
.social-link { width: 36px; height: 36px; background: rgba(255,255,255,0.07); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.82rem; font-weight: 700; color: rgba(255,255,255,0.6); transition: var(--transition); }
.social-link:hover { background: var(--primary); color: white; }
.footer-col h5 { font-size: 0.8rem; font-weight: 700; color: white; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.86rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-links a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact-item { display: flex; gap: 10px; font-size: 0.86rem; color: rgba(255,255,255,0.6); margin-bottom: 11px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 0.8rem; color: rgba(255,255,255,0.35); flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: rgba(255,255,255,0.35); }
.footer-bottom a:hover { color: var(--primary); }
.footer-bottom-links { display: flex; gap: 18px; }

/* Form Styles */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 0.9rem; font-family: inherit; color: var(--text); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,167,183,0.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-submit { width: 100%; padding: 14px; background: var(--primary); color: white; border: none; border-radius: var(--radius); font-size: 0.97rem; font-weight: 700; cursor: pointer; transition: var(--transition); margin-top: 6px; }
.form-submit:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* Divider */
.divider { height: 1px; background: var(--border); margin: 0; }

/* WhatsApp Float */
.whatsapp-btn { position: fixed; bottom: 26px; right: 26px; width: 56px; height: 56px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(37,211,102,0.4); z-index: 999; transition: var(--transition); }
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 28px; height: 28px; fill: white; }

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  /* Page-Hero Padding reduzieren — war 120px 0 72px, auf Mobile zu viel */
  .page-hero { padding: 96px 0 48px; }
  .page-hero h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .page-hero p { font-size: 0.95rem; }
  /* Anruf-Button auf Mobile: tuerkis, klar als CTA, Icon+Text sauber zentriert */
  .header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--primary);
    color: #fff !important;
    border: none;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    min-height: 44px;
    min-width: 44px;
    line-height: 1;
    white-space: nowrap;
  }
  .header-phone:hover { background: var(--primary-dark); border-color: transparent; }
  .header-phone svg { fill: #fff; flex-shrink: 0; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { display: none; }  /* "Angebot anfragen" im Hamburger-Menu */
  /* Hamburger auf Mobile: groesser, mit Box, dickere Striche */
  .hamburger {
    width: 44px; height: 44px;
    padding: 0 !important;
    background: var(--light);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    justify-content: center;
    gap: 5px;
  }
  .hamburger:hover { background: rgba(0,167,183,0.08); border-color: var(--primary); }
  .hamburger span { width: 22px; height: 3px; background: var(--dark); }
  .section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
  /* Legal-Tabellen (Datenschutz Auftragsverarbeiter) auf Mobile horizontal scrollbar */
  table.dpo-table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  /* Buttons: Tap-Target auf Mobile min 44px */
  .btn { min-height: 44px; }
  /* Forms: Input-Font-Size auf 16px damit iOS nicht reinzoomt beim Fokus */
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; }
}

@media (max-width: 420px) {
  .logo img { height: 36px; }
  .page-hero { padding: 88px 0 40px; }
  .footer-grid { gap: 24px; }
  .btn-lg { padding: 12px 22px; font-size: 0.9rem; }
  /* Ganz klein: Icon-only, sauber zentriert */
  .header-phone {
    padding: 0;
    width: 44px;
    font-size: 0;
    line-height: 0;
    gap: 0;
  }
  .header-phone::before {
    content: "📞";
    font-size: 1.15rem;
    line-height: 1;
  }
}

/* ===========================
   COOKIE-CONSENT BANNER
=========================== */
/* ==== COOKIE-BANNER v2 (professionell, Modal-zentriert mit Cookie-Icon) ==== */
#zb-consent-banner {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(10,20,34,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  font-family: 'Inter', system-ui, sans-serif;
  animation: zb-fade 0.25s ease-out;
}
@keyframes zb-fade { from { opacity: 0; } to { opacity: 1; } }
#zb-consent-banner .zb-consent-inner {
  max-width: 560px; width: 100%;
  background: #fff; color: var(--dark);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4), 0 6px 18px rgba(0,0,0,0.1);
  border-top: 5px solid var(--primary);
  padding: 0;
  display: flex; flex-direction: column;
  animation: zb-rise 0.35s cubic-bezier(.22,.68,.34,1.02);
  overflow: hidden;
}
@keyframes zb-rise { from { transform: translateY(32px) scale(0.97); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
#zb-consent-banner .zb-consent-inner::before {
  content: ''; display: block; margin: 28px auto 8px; width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0,167,183,0.35);
  background-image:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.28) 2.5px, transparent 3px),
    radial-gradient(circle at 70% 40%, rgba(255,255,255,0.25) 2px, transparent 2.5px),
    radial-gradient(circle at 55% 70%, rgba(255,255,255,0.28) 3px, transparent 3.5px),
    radial-gradient(circle at 25% 68%, rgba(255,255,255,0.22) 2px, transparent 2.5px),
    linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
#zb-consent-banner .zb-consent-text {
  padding: 0 32px 4px;
  text-align: center;
}
#zb-consent-banner .zb-consent-text strong {
  display: block; font-size: 1.35rem; margin-bottom: 10px; color: var(--dark);
  font-weight: 800; letter-spacing: -0.01em;
}
#zb-consent-banner .zb-consent-text p {
  font-size: 0.92rem; line-height: 1.65; color: var(--gray); margin: 0;
}
#zb-consent-banner .zb-consent-text a { color: var(--primary); text-decoration: underline; font-weight: 600; }
#zb-consent-banner .zb-consent-actions {
  display: flex; flex-direction: column; gap: 10px; padding: 24px 32px 28px;
}
#zb-consent-banner .zb-btn {
  padding: 14px 24px; border-radius: 12px; font-size: 0.95rem; font-weight: 700;
  border: none; cursor: pointer; font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-align: center; white-space: nowrap;
  width: 100%;
}
#zb-consent-banner .zb-btn:hover { transform: translateY(-1px); }
#zb-consent-banner .zb-btn-accept  {
  background: var(--primary); color: #fff;
  box-shadow: 0 6px 18px rgba(0,167,183,0.4);
}
#zb-consent-banner .zb-btn-accept:hover { background: var(--primary-dark); box-shadow: 0 8px 22px rgba(0,167,183,0.55); }
#zb-consent-banner .zb-btn-decline {
  background: #f4f8fb; color: var(--dark); border: 1.5px solid var(--border);
}
#zb-consent-banner .zb-btn-decline:hover { background: #e7eef5; border-color: var(--gray); }
#zb-consent-banner .zb-btn-link {
  background: transparent; color: var(--gray); border: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 500; text-decoration: underline; font-family: inherit;
  padding: 4px; text-align: center; margin-top: 2px;
}
#zb-consent-banner .zb-btn-link:hover { color: var(--primary); }
@media (max-width: 560px) {
  #zb-consent-banner { padding: 16px; }
  #zb-consent-banner .zb-consent-text { padding: 0 22px; }
  #zb-consent-banner .zb-consent-text strong { font-size: 1.2rem; }
  #zb-consent-banner .zb-consent-actions { padding: 20px 22px 24px; }
}

/* Consent Modal (Einstellungen) */
#zb-consent-modal {
  position: fixed; inset: 0; z-index: 10001;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', system-ui, sans-serif;
}
#zb-consent-modal .zb-consent-modal-backdrop {
  position: absolute; inset: 0; background: rgba(13,21,32,0.7); backdrop-filter: blur(4px); cursor: pointer;
}
#zb-consent-modal .zb-consent-modal-box {
  position: relative; background: #fff; color: var(--text);
  max-width: 560px; width: calc(100% - 32px); max-height: 90vh; overflow-y: auto;
  border-radius: 16px; padding: 32px; box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
#zb-consent-modal h3 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin: 0 0 10px; }
#zb-consent-modal .zb-consent-modal-box > p { font-size: 0.88rem; color: var(--gray); margin-bottom: 22px; line-height: 1.6; }
#zb-consent-modal .zb-consent-cat { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-bottom: 12px; }
#zb-consent-modal .zb-consent-cat label { display: flex; align-items: center; gap: 10px; font-size: 0.93rem; color: var(--dark); cursor: pointer; }
#zb-consent-modal .zb-consent-cat label span { font-size: 0.8rem; color: var(--gray); font-weight: 400; }
#zb-consent-modal .zb-consent-cat p { font-size: 0.8rem; color: var(--gray); margin: 8px 0 0 26px; line-height: 1.55; }
#zb-consent-modal .zb-consent-modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
#zb-consent-modal .zb-btn {
  padding: 11px 18px; border-radius: 8px; font-size: 0.86rem; font-weight: 600;
  border: none; cursor: pointer; font-family: inherit; flex: 1; min-width: 130px;
}
#zb-consent-modal .zb-btn-decline   { background: #f4f8fb; color: var(--dark); border: 1px solid var(--border); }
#zb-consent-modal .zb-btn-accept    { background: rgba(0,167,183,0.15); color: var(--primary-dark); }
#zb-consent-modal .zb-btn-accept-all{ background: var(--primary); color: #fff; }

/* ===========================
   EXTERNAL-EMBED PLACEHOLDER (Maps / YouTube)
=========================== */
.zb-embed-placeholder {
  position: relative;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 280px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px; overflow: hidden;
}
.zb-embed-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(0,167,183,0.08), transparent 60%);
  pointer-events: none;
}
.zb-embed-placeholder h4 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; position: relative; }
.zb-embed-placeholder p { font-size: 0.86rem; color: var(--gray); max-width: 440px; margin: 0 auto 18px; line-height: 1.6; position: relative; }
.zb-embed-placeholder .zb-embed-activate {
  background: var(--primary); color: #fff; border: none;
  padding: 11px 22px; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  cursor: pointer; font-family: inherit; position: relative;
  transition: background 0.15s, transform 0.15s;
}
.zb-embed-placeholder .zb-embed-activate:hover { background: var(--primary-dark); transform: translateY(-1px); }
.zb-embed-placeholder .zb-embed-note { font-size: 0.75rem; color: var(--gray); margin-top: 10px; position: relative; }
