/* ===========================
   BAUMIX CUSTOM CSS
   Only: animations, pseudo-elements,
   complex interactive states, scroll-snap
   =========================== */

/* --- PRELOADER --- */

#preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2d3748;
  transition: opacity 0.3s ease;
}

#preloader img {
  height: 70px;
  width: auto;
  object-fit: contain;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes preloaderPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

/* --- BASE --- */

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #ffcc00 #f1f5f9;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #ffcc00; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #e6b800; }

::selection {
  background: rgba(255, 204, 0, 0.3);
  color: #1a202c;
}

/* --- KEYFRAME ANIMATIONS --- */

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0% { left: -100%; } 100% { left: 100%; } }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ring { 0%, 100% { transform: rotate(0deg) scale(1); } 10% { transform: rotate(-25deg) scale(1.1); } 20% { transform: rotate(25deg) scale(1.1); } 30% { transform: rotate(-25deg) scale(1.1); } 40% { transform: rotate(25deg) scale(1.1); } 50% { transform: rotate(0deg) scale(1); } }
@keyframes bounceDown { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(5px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }

/* --- PHONE BANNER --- */

.phone-banner { padding-top: env(safe-area-inset-top); padding-top: constant(safe-area-inset-top); box-sizing: content-box; }
.phone-icon { animation: ring 2s ease-in-out infinite; }

/* --- NAVBAR --- */

.burger-line { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center; }
.burger.active .burger-line:nth-child(1) { transform: rotate(45deg) translateY(7px); }
.burger.active .burger-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active .burger-line:nth-child(3) { transform: rotate(-45deg) translateY(-7px); }

.nav-mobile { transition: right 0.3s ease-in-out; -webkit-overflow-scrolling: touch; }
.nav-mobile.active { right: 0 !important; }
.nav-mobile:not(.active) a:active, .nav-mobile:not(.active) a:focus, .nav-overlay:not(.active) { background-color: transparent !important; transition: none !important; }

.dropdown-arrow-mobile { transition: transform 0.3s ease; }
.nav-dropdown.active .dropdown-arrow-mobile { transform: rotate(180deg); }
.dropdown-menu-mobile { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.nav-dropdown.active .dropdown-menu-mobile { max-height: 500px; }
.dropdown-menu-mobile a::before { content: ''; position: absolute; left: 1.5rem; top: 0; bottom: 0; width: 3px; background-color: #ffd700; }

.nav-overlay { transition: all 0.3s ease; }
.nav-overlay.active { opacity: 1; visibility: visible; }
body.menu-open { overflow: hidden !important; }
.navbar.menu-active ~ .cookie-settings-float, .navbar.menu-active ~ .back-to-top { display: none !important; }
.nav-mobile .dropdown-toggle { font-weight: bold !important; color: black !important; -webkit-appearance: none; }

@media (min-width: 768px) {
  nav.navbar { transition: all 0.3s ease; border-bottom: 1px solid rgba(255, 204, 0, 0.1); }
  nav.navbar.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06); }
  nav.navbar .nav-links a::before { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: linear-gradient(90deg, #ffcc00, #ffd700); transition: all 0.3s ease; transform: translateX(-50%); border-radius: 2px; }
  nav.navbar .nav-links a:hover::before { width: 100%; }
  nav.navbar .nav-links a:hover { color: #ffcc00; transform: translateY(-1px); }
  nav.navbar .dropdown-arrow { transition: transform 0.3s ease; }
  nav.navbar .nav-dropdown:hover .dropdown-arrow { transform: rotate(90deg); }
  nav.navbar .dropdown-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); opacity: 0; visibility: hidden; transition: all 0.3s ease; border: 1px solid rgba(0, 0, 0, 0.06); }
  nav.navbar .dropdown-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; background: transparent; }
  nav.navbar .dropdown-menu::after { content: ''; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; background: rgba(255, 255, 255, 0.98); border-top: 1px solid rgba(0, 0, 0, 0.06); border-left: 1px solid rgba(0, 0, 0, 0.06); transform: translateX(-50%) rotate(45deg); }
  nav.navbar .nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; }
  nav.navbar .dropdown-menu a:hover { background: rgba(255, 204, 0, 0.1); color: #e6b800; padding-left: calc(1.5rem + 2px); }
  nav.navbar .nav-dropdown > a::before { content: ''; position: absolute; bottom: 0; left: 50px; width: 0; height: 2px; background: linear-gradient(90deg, #ffcc00, #ffd700); transition: all 0.3s ease; transform: translateX(-50%); border-radius: 2px; }
  nav.navbar .nav-dropdown:hover > a::before { width: 100%; }
  nav.navbar .nav-dropdown:hover > a { color: #ffcc00; transform: translateY(-1px); }
  nav.navbar .logo:hover { transform: scale(1.05) !important; }
  nav.navbar .logo img { transition: all 0.3s ease; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
  nav.navbar .logo:hover img { filter: drop-shadow(0 4px 8px rgba(255, 204, 0, 0.3)); }
}

/* --- HERO --- */

.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(rgba(26, 32, 44, 0.6), rgba(26, 32, 44, 0.7)); z-index: 0; pointer-events: none; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.6) 100%); z-index: 1; }
.hero h1 { background: linear-gradient(135deg, #ffffff 0%, #f7fafc 50%, #ffcc00 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: slideInLeft 1s ease-out 0.3s both; }
.hero-text { animation: fadeInUp 1s ease-out; }
.hero-text p { opacity: 0; animation: slideInRight 1s ease-out 0.6s both; }
.hero-text p:last-of-type { animation-delay: 0.8s; }
.hero-trust { animation: fadeIn 1s ease-out 1.5s both; }
.hero-scroll { animation: bounceDown 2.5s ease-in-out infinite; }
@media (min-width: 768px) { .hero::after { background: linear-gradient(rgba(26, 32, 44, 0.7), rgba(26, 32, 44, 0.8)); } }

/* --- BUTTONS --- */

.btn, .btn-yellow, .mini-btn { position: relative; overflow: hidden; }
.btn::before, .btn-yellow::before, .mini-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s; }
.btn:hover::before, .btn-yellow:hover::before, .mini-btn:hover::before { left: 100%; }
.hero .btn { opacity: 0; animation: bounceIn 1s ease-out 1.2s both; }
.btn:visited, .btn-yellow:visited, .mini-btn:visited { color: #1a202c; }

/* --- SECTION DECORATIVE LINES --- */

.section-title { text-align: center; margin-bottom: 1rem; }
.section-title span { color: #ffcc00; }
.content-title span { color: #ffcc00; }

.leistung-boxes { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.leistung-boxes::-webkit-scrollbar { display: none; }

.leistungen::before { content: ''; position: absolute; top: -10px; left: 0; width: 100%; height: 60px; background: linear-gradient(to bottom, transparent, #f9f9f9); z-index: 0; pointer-events: none; }
.leistungen > p::after, .referenzen-section > p::after, .marken > p::after, .kundenstimmen > p::after { content: ''; position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); width: 60px; height: 2px; background: linear-gradient(90deg, transparent, #ffcc00, transparent); }

/* --- BOX CARDS --- */

.box { opacity: 0; transform: translateY(30px); animation: fadeInUp 0.6s ease-out forwards; }
.box::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #ffcc00, #ffd700, #ffcc00); transform: scaleX(0); transition: transform 0.4s ease; }
.box:hover::before { transform: scaleX(1); }
.box::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at top right, rgba(255,204,0,0.03) 0%, transparent 70%); pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.box:hover::after { opacity: 1; }
.leistung-boxes .box:nth-child(1) { animation-delay: 0.1s; }
.leistung-boxes .box:nth-child(2) { animation-delay: 0.2s; }
.leistung-boxes .box:nth-child(3) { animation-delay: 0.3s; }
.leistung-boxes .box:nth-child(4) { animation-delay: 0.4s; }
.leistung-boxes .box:nth-child(5) { animation-delay: 0.5s; }
.leistung-boxes .box:nth-child(6) { animation-delay: 0.6s; }

/* --- SCROLL SLIDERS --- */

.referenzen-slider, .bewertungen-slider { scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.referenzen-slider::-webkit-scrollbar, .bewertungen-slider::-webkit-scrollbar { display: none; }
.ref-card, .bewertung-card { scroll-snap-align: start; }

/* --- MARKEN --- */

.marken::before, .kundenstimmen::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 20%, rgba(255,204,0,0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(45,55,72,0.03) 0%, transparent 50%); pointer-events: none; z-index: 1; }
.marken > *, .kundenstimmen > * { position: relative; z-index: 2; }
.logo-track { animation: marquee 15s linear infinite; will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.logo-track:hover { animation-play-state: paused; }
@media (min-width: 768px) { .logo-track { animation-duration: 20s; } }

/* --- STARS --- */

.stern { color: #ffc107; }
.stern-halb { position: relative; display: inline-block; color: #ddd; }
.stern-halb::before { content: "\2605"; position: absolute; left: 0; top: 0; width: 50%; overflow: hidden; color: #ffc107; }

/* --- STANDORT --- */

.standort-hours tr.today { background: rgba(255, 204, 0, 0.1); border-radius: 8px; }
.standort-hours tr.today td { color: #222; font-weight: 600; border-bottom-color: rgba(255, 204, 0, 0.2); }

/* --- CONTACT FORM --- */

input[type="checkbox"] { accent-color: #ffcc00; }
.kontakt-form input:hover, .kontakt-form textarea:hover, .kontakt-form select:hover { border-color: #d1d5db; background: white; }
.kontakt-form input:focus, .kontakt-form textarea:focus, .kontakt-form select:focus { border-color: #ffcc00; outline: none; box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1); background: white; }
.kontakt-form select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; padding-right: 2.5rem; }
.kontakt-form input:invalid:not(:placeholder-shown), .kontakt-form textarea:invalid:not(:placeholder-shown), .kontakt-form select:invalid:not(:placeholder-shown) { border-color: #e53e3e; }
.kontakt-form input:valid:not(:placeholder-shown), .kontakt-form textarea:valid:not(:placeholder-shown), .kontakt-form select:valid:not(:placeholder-shown) { border-color: #38a169; }
.website-field, input[name="website"] { position: absolute !important; left: -5000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.grecaptcha-badge { visibility: hidden !important; bottom: 80px !important; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(0,0,0,0.1); border-radius: 50%; border-top-color: #333; animation: spin 0.8s linear infinite; }
.btn-yellow .btn-text { display: inline; }
.btn-yellow .btn-loading { display: none; }
.btn-yellow[disabled] .btn-text { display: none !important; }
.btn-yellow[disabled] .btn-loading { display: inline !important; }
.form-status.show-success .success-message { display: block; animation: fadeIn 0.3s ease-out; }
.form-status.show-error .error-message { display: block; animation: fadeIn 0.3s ease-out; }

/* --- FOOTER --- */

.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 20% 20%, rgba(255,204,0,0.03) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255,204,0,0.05) 0%, transparent 50%); pointer-events: none; }
.site-footer > * { position: relative; z-index: 2; }
.footer-col h4::after { content: ''; display: block; width: 30px; height: 2px; background: linear-gradient(90deg, #ffcc00, #ffd700); border-radius: 2px; margin-top: 0.5rem; }
@media (max-width: 767px) { .footer-col h4::after { margin-left: auto; margin-right: auto; } }
.footer-col a:hover { color: #ffcc00; transform: translateX(3px); }
.logo-col img { transition: all 0.3s ease; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }
.logo-col img:hover { transform: scale(1.05); filter: drop-shadow(0 4px 8px rgba(255,204,0,0.3)); }
.footer-bottom p:hover { color: #ffcc00; }
.heart-icon { color: #ffcc00; }
.link-button { background: none; border: none; cursor: pointer; font: inherit; padding: 0; transition: all 0.3s ease; }
.link-button:hover { color: #ffcc00; transform: translateX(3px); }

/* --- BACK TO TOP --- */

.back-to-top { opacity: 0; visibility: hidden; display: none; transform: translateY(20px); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.back-to-top.visible { display: flex; opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(255,204,0,0.4); }
.back-to-top:active { transform: scale(0.95); }
.back-to-top:focus-visible { outline: 2px solid rgba(255, 204, 0, 0.5); outline-offset: 3px; }

/* --- COOKIE FLOAT --- */

.cookie-settings-float { opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; }
.cookie-settings-float.visible { opacity: 1; transform: translateY(0); }

/* --- COOKIE MODAL --- */

.cookie-modal { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, visibility 0s 0.2s; display: none; backdrop-filter: blur(2px); }
.cookie-modal.active { opacity: 1; visibility: visible; pointer-events: auto; display: flex; }
.cookie-modal.active ~ .cookie-settings-float { opacity: 0; pointer-events: none; transform: scale(0.95); }
.cookie-modal.active ~ .back-to-top { opacity: 0; pointer-events: none; transform: scale(0.95); }

.cookie-toggle { position: relative; width: 38px; height: 20px; flex-shrink: 0; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: 0.3s; border-radius: 20px; }
.cookie-toggle-slider::before { content: ""; position: absolute; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: white; transition: 0.3s; border-radius: 50%; }
.cookie-toggle input:checked + .cookie-toggle-slider { background-color: #ffcc00; }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { cursor: not-allowed; opacity: 0.6; }

.cookie-category { transition: border 0.3s ease, box-shadow 0.3s ease; }
.cookie-category:hover { border-color: #ffcc00; box-shadow: 0 2px 8px rgba(255, 204, 0, 0.1); }
.cookie-btn { transition: all 0.3s ease; touch-action: manipulation; }
.cookie-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 204, 0, 0.4); }
.cookie-btn-secondary:hover { border-color: #ffcc00; background: rgba(255, 204, 0, 0.08); color: #222; }
.cookie-box { max-height: 85vh; overflow-y: auto; }

.cookie-extended-details { display: none; }
.cookie-extended-details.active { display: block; animation: slideDown 0.3s ease; }

.cookie-extended-details h4 { font-size: 0.8rem; color: #222; margin: 0.75rem 0 0.3rem; font-weight: 600; }
.cookie-extended-details h4:first-child { margin-top: 0; }
.cookie-extended-details p { font-size: 0.75rem; color: #666; line-height: 1.5; margin: 0 0 0.5rem; }
.cookie-extended-details strong { color: #222; font-size: 0.7rem; }
.cookie-detail-actions { display: flex; gap: 2rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #e0e0e0; justify-content: center; }

@media (min-width: 500px) { .cookie-box { max-width: 600px !important; padding: 2rem !important; max-height: 80vh; } .cookie-toggle { width: 42px; height: 22px; } .cookie-toggle-slider::before { height: 16px; width: 16px; } }
@media (min-width: 768px) { .cookie-modal { z-index: 10002; } .cookie-box { z-index: 10003; } .cookie-settings-float { z-index: 10001; } body.cookie-modal-active { overflow: hidden; } body.cookie-modal-active .navbar { pointer-events: none; filter: brightness(0.7); } }
.navbar { transition: filter 0.3s ease; }

/* --- LEISTUNG HERO (sub-pages) --- */

.leistung-hero::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); animation: shimmer 3s infinite; z-index: 1; will-change: left; }
.leistung-hero-content { position: relative; z-index: 2; }
.leistung-hero-content h1 { text-shadow: 3px 3px 6px rgba(0,0,0,0.7), 0 0 40px rgba(255,204,0,0.4), 0 0 60px rgba(255,204,0,0.2); animation: fadeInDown 1s ease-out; }
.hero-subtitle { text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }

/* --- CONTENT TYPOGRAPHY (sub-pages) --- */

/* Content text */
.content-text h2, .content-text h3, .content-section h3 {
  font-size: 1.5rem;
  color: #1a1a1a;
  font-weight: 700;
  margin-top: 3rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.content-text h4, .content-section h4 {
  font-size: 1.15rem;
  color: #222;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-text p, .content-section p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
  max-width: 75ch;
}

.content-section { margin-top: 2.5rem; }
.content-section span { color: #ffcc00; }

@media (min-width: 768px) {
  .content-text h2, .content-text h3, .content-section h3 { font-size: 1.75rem; }
  .content-text h4, .content-section h4 { font-size: 1.25rem; }
  .content-text p, .content-section p { font-size: 1.05rem; }
}

/* Feature list */
.feature-list li {
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: #555;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.6;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list strong { color: #1a1a1a; }

/* Process list */
.process-list li {
  padding: 1rem 0;
  font-size: 1rem;
  color: #555;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.7;
}
.process-list li:last-child { border-bottom: none; }
.process-list strong { color: #1a1a1a; }

/* Material boxes */
.material-box h4 { color: #1a1a1a; margin-bottom: 0.75rem; font-size: 1.1rem; font-weight: 700; }
.material-box p { color: #555; line-height: 1.7; margin-bottom: 0.5rem; font-size: 0.95rem; }
.material-box .feature-list { margin-top: 0.5rem; }

/* Advantage items */
.advantage-item h4 { margin-bottom: 0.5rem; color: #1a1a1a; font-size: 1.1rem; font-weight: 700; }
.advantage-item p { color: #555; margin: 0; font-size: 0.95rem; line-height: 1.6; }
.advantage-item i { font-size: 2rem; color: #ffcc00; margin-bottom: 0.75rem; display: block; }
.glass-type h4 { margin-bottom: 1rem; color: #222; font-size: 1.2rem; }
.glass-type p { color: #666; line-height: 1.6; margin: 0; }

/* --- LEGAL TYPOGRAPHY --- */

.legal-container h1 { font-size: 1.6rem; margin-bottom: 2rem; color: #222; text-align: center; position: relative; word-wrap: break-word; overflow-wrap: break-word; hyphens: auto; }
.legal-container h3 { margin-top: 2rem; margin-bottom: 1rem; color: #333; font-size: 1.2rem; font-weight: 600; }
.legal-container p { margin: 0.5rem 0; line-height: 1.7; font-size: 0.95rem; color: #666; }
.legal-container ul, .legal-container ol { margin: 1rem 0 1.5rem 1.2rem; line-height: 1.7; }
.legal-container li { margin-bottom: 0.5rem; color: #666; }
.legal-container strong { color: #222; font-weight: 600; }
.legal-container em { color: #666; font-style: italic; font-size: 1.1rem; display: block; margin-bottom: 1.5rem; text-align: center; padding: 1.5rem; background: #f8f9fa; border-radius: 8px; }
.legal-container table { width: 100%; margin: 1.5rem 0; border-collapse: collapse; background: white; box-shadow: 0 2px 8px rgba(0,0,0,0.06); border-radius: 8px; overflow: hidden; }
.legal-container th, .legal-container td { padding: 1rem; text-align: left; border-bottom: 1px solid #e2e8f0; }
.legal-container th { background: #f8f9fa; font-weight: 600; color: #222; }
.legal-container tr:last-child td { border-bottom: none; }
.legal-container.impressum .company-info { background: #f8f9fa; padding: 1.5rem; border-radius: 8px; margin: 1.5rem 0; border-left: 4px solid #ffcc00; }
.legal-container.impressum .company-info p { margin: 0.3rem 0; font-size: 1rem; }
.legal-container.datenschutz .privacy-info-box { background: #f8f9fa; border: 1px solid #e2e8f0; border-radius: 8px; padding: 1.5rem; margin: 1.5rem 0; position: relative; }
@media (min-width: 768px) { .legal-container h1 { font-size: 2.5rem !important; } .legal-container h2 { font-size: 1.3rem; } }

/* --- FAQ TYPOGRAPHY --- */

.faq-intro h1 { font-size: 2.5rem; margin-bottom: 1rem; color: #1a1a1a; }
.faq-intro p { font-size: 1.1rem; color: #666; max-width: 700px; margin: 0 auto; line-height: 1.6; }
.faq-section h2 { font-size: 1.8rem; color: #1a1a1a; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 3px solid #ffc107; }
.faq-item { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; margin-bottom: 1rem; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 1.25rem 1.5rem; background: transparent; border: none; font-size: 1.1rem; font-weight: 600; color: #1a1a1a; display: flex; justify-content: space-between; align-items: center; }
.faq-icon { font-size: 1.2rem; color: #ffc107; flex-shrink: 0; margin-left: 1rem; }
.faq-answer { padding: 0 1.5rem; }
.faq-answer p { color: #555; line-height: 1.7; margin: 0; }
.faq-cta h3 { font-size: 1.8rem; margin-bottom: 1rem; color: #1a1a1a; }
.faq-cta p { font-size: 1.1rem; color: #666; margin-bottom: 1.5rem; }
@media (max-width: 768px) { .faq-intro h1 { font-size: 2rem; } .faq-section h2 { font-size: 1.5rem; } .faq-question { font-size: 1rem; padding: 1rem; } .faq-cta { padding: 1.5rem; } .faq-cta h3 { font-size: 1.5rem; } .faq-cta-buttons { flex-direction: column; } .faq-cta-btn { width: 100%; } }

/* --- BLOG TYPOGRAPHY --- */

.blog-hero h1 { font-size: 2rem; font-weight: 800; color: #ffcc00; margin-bottom: 1rem; }
.blog-hero p { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.blog-card-content h3 { font-size: 1.2rem; color: #222; margin-bottom: 0.75rem; }
.blog-card-content p { font-size: 0.95rem; color: #666; line-height: 1.6; margin-bottom: 1rem; }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-article h1 { font-size: 2rem; color: #222; margin-bottom: 1rem; }
.blog-article p { color: #666; line-height: 1.7; margin-bottom: 1rem; }
.blog-article h2 { font-size: 1.5rem; color: #222; margin-top: 2rem; margin-bottom: 1rem; }
.related-articles h2 { font-size: 1.8rem; color: #222; margin-bottom: 2rem; text-align: center; }

/* --- CTA SECTION --- */

.cta-section > * { position: relative; z-index: 2; }
.cta-section h2 { font-size: 1.7rem; margin-bottom: 1.2rem; color: #fff; font-weight: 700; }
.cta-section p { font-size: 1rem; color: #e2e8f0; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.cta-section .btn-yellow, .cta-section .btn-large, .cta-section a[href] { display: inline-block; background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%); color: #1a202c; padding: 0.8rem 1.5rem; border-radius: 12px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3); overflow: hidden; text-decoration: none; text-align: center; max-width: 100%; }
@media (min-width: 768px) { .cta-section .btn-yellow, .cta-section .btn-large, .cta-section a[href] { padding: 0.9rem 2.5rem; font-size: 0.95rem; } }
.cta-section .btn-yellow:hover, .cta-section .btn-large:hover, .cta-section a[href]:hover { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); transform: translateY(-3px); box-shadow: 0 8px 25px rgba(251, 191, 36, 0.4); }

/* --- GALLERY OVERLAY --- */

.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item { aspect-ratio: 4/3; }
.gallery-grid { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white; padding: 2rem 1.5rem 1.5rem; transform: translateY(100%); transition: transform 0.3s ease; }
.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-overlay span { font-weight: 600; font-size: 0.85rem; display: block; }

/* --- LEGAL PAGES (pseudo-elements only) --- */

.legal-container h1::after { content: ''; width: 80px; height: 4px; background: #ffcc00; display: block; margin: 1rem auto 0; border-radius: 5px; }
.legal-container h2 { border-left: 4px solid #ffcc00; padding-left: 1rem; }
.legal-container a { color: #e6b800; transition: color 0.2s ease; }
.legal-container a:hover { color: #ffcc00; text-decoration: underline; }
.legal-container.datenschutz .privacy-info-box::before { content: 'i'; position: absolute; top: 1.5rem; left: 1.5rem; width: 30px; height: 30px; background: #ffcc00; color: #1a202c; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.legal-container.datenschutz .privacy-info-box > * { padding-left: 45px; }
.legal-container.agb ol { counter-reset: agb-counter; list-style: none; margin-left: 0; }
.legal-container.agb ol > li { counter-increment: agb-counter; position: relative; padding-left: 3rem; margin-bottom: 1.5rem; }
.legal-container.agb ol > li::before { content: "§" counter(agb-counter); position: absolute; left: 0; top: 0; background: #ffcc00; color: #1a202c; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }

/* --- FAQ (accordion states) --- */

.faq-item { transition: all 0.3s ease; }
.faq-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.faq-question { transition: all 0.3s ease; cursor: pointer; }
.faq-question:hover { background-color: #f9f9f9; }
.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 0.3s ease; }
.faq-answer > * { overflow: hidden; }
.faq-item.active .faq-answer { grid-template-rows: 1fr; padding-bottom: 1.5rem; }
.faq-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(255,193,7,0.3); }
.faq-cta-btn.secondary { background: #fff; border: 2px solid #ffc107; color: #1a1a1a; display: inline-block; padding: 0.875rem 2rem; border-radius: 6px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; }
.faq-cta-btn.secondary:hover { background: #ffc107; transform: translateY(-2px); }

/* --- BLOG (hover only) --- */

.blog-card-content .read-more { color: #e6b800; font-weight: 600; font-size: 0.9rem; }
.blog-card-content .read-more:hover { color: #ffcc00; }

/* Blog article pages */
.blog-article { padding-top: 8.5rem; }
.blog-article h1 { font-size: 1.8rem; color: #1a1a1a; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.2; }
.blog-article h2 { font-size: 1.4rem; color: #1a1a1a; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; }
.blog-article h3 { font-size: 1.15rem; color: #222; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.blog-article p { color: #555; line-height: 1.8; margin-bottom: 1.25rem; font-size: 1rem; }
.blog-article ul, .blog-article ol { margin: 1rem 0 1.5rem 1.2rem; line-height: 1.8; color: #555; }
.blog-article li { margin-bottom: 0.5rem; }
.blog-article strong { color: #222; }
.blog-article a { color: #e6b800; font-weight: 500; }
.blog-article a:hover { color: #ffcc00; text-decoration: underline; }

.breadcrumb { font-size: 0.85rem; color: #999; margin-bottom: 2rem; }
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: #ffcc00; }

.info-box { background: #f8f9fa; border-left: 4px solid #ffcc00; padding: 1.25rem 1.5rem; border-radius: 8px; margin: 1.5rem 0; }
.info-box h3, .info-box h4 { margin-top: 0; }

.cta-box { background: linear-gradient(135deg, #1a365d, #2c5282); color: white; padding: 2rem; border-radius: 12px; text-align: center; margin: 2rem 0; }
.cta-box h3 { color: #ffcc00; margin-bottom: 0.75rem; margin-top: 0; }
.cta-box p { color: rgba(255,255,255,0.9); margin-bottom: 1.25rem; }
.cta-box a { display: inline-block; background: #ffcc00; color: #1a202c; padding: 0.75rem 2rem; border-radius: 8px; font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.cta-box a:hover { background: #e6b800; color: #1a202c; text-decoration: none; }

.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; font-size: 0.85rem; color: #999; margin-bottom: 2rem; }

.related-articles { padding-top: 3rem; border-top: 1px solid #e5e7eb; margin-top: 3rem; max-width: 1100px !important; }
.related-articles h2 { font-size: 1.5rem; color: #1a1a1a; font-weight: 700; margin-bottom: 1.5rem; text-align: left; }

.related-grid { display: flex; flex-direction: column; gap: 0.75rem; }

@media (min-width: 768px) {
  .related-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
}
.related-articles a { display: block; background: white; border: 1px solid #e5e7eb; border-radius: 12px; padding: 1.25rem 1.5rem; margin-bottom: 0.75rem; text-decoration: none; transition: box-shadow 0.2s ease; }
.related-articles a:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.related-articles a h3 { font-size: 1rem; color: #222; font-weight: 700; margin: 0 0 0.5rem; }
.related-articles a p { font-size: 0.85rem; color: #666; margin: 0 0 0.5rem; line-height: 1.5; }
.related-articles .blog-card-link { font-size: 0.85rem; font-weight: 600; color: #e6b800; }

@media (min-width: 768px) {
  .blog-article h1 { font-size: 2.2rem; }
}

/* Blog index cards */
.blog-card { display: flex; flex-direction: column; text-decoration: none; }
.blog-card-header { background: linear-gradient(135deg, #1a365d, #2c5282); padding: 1.25rem 1.5rem 1rem; }
.blog-card-tag { display: inline-block; background: rgba(255,204,0,0.9); color: #1a202c; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; padding: 0.25rem 0.75rem; border-radius: 50px; }
.blog-card-body { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-body h2 { font-size: 1.1rem; font-weight: 700; color: #222; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card-body p { font-size: 0.85rem; color: #666; line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.blog-card-link { font-size: 0.85rem; font-weight: 600; color: #e6b800; }
.blog-card:hover .blog-card-link { color: #ffcc00; }

/* --- LIGHTBOX --- */

#ref-lightbox.active { opacity: 1; pointer-events: auto; }

/* --- STACK CARDS --- */

.stack-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.stack-card.active .stack-body { max-height: 200px; }
.stack-card.active { z-index: 20 !important; box-shadow: 0 8px 25px rgba(0,0,0,0.12); transform: scale(1.02); }
.stack-card.active .stack-arrow { transform: rotate(180deg); }

/* --- CONTENT TABS --- */

.tab-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 108px;
  background: white;
  z-index: 10;
  padding: 1.25rem 0 1.25rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e5e7eb;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 0.65rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  background: #f3f4f6;
  border: 1.5px solid #e5e7eb;
  border-radius: 50px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tab-btn:hover { color: #222; background: #e5e7eb; }

.tab-btn.active {
  color: #1a202c;
  background: #ffcc00;
  border-color: #ffcc00;
  box-shadow: 0 2px 8px rgba(255, 204, 0, 0.3);
}

.tab-panel { display: none; }
.tab-panel.active {
  display: block;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.5rem;
  scroll-behavior: smooth;
}

.tab-panel::-webkit-scrollbar { width: 4px; }
.tab-panel::-webkit-scrollbar-track { background: transparent; }
.tab-panel::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 4px; }
.tab-panel::-webkit-scrollbar-thumb:hover { background: #ffcc00; }

@media (min-width: 768px) {
  .tab-btn { padding: 0.75rem 1.75rem; font-size: 0.9rem; }
}

/* --- PRINT --- */

@media print { .navbar, .phone-banner, .cookie-modal, .cookie-settings-float, .back-to-top, .nav-overlay { display: none !important; } }
