/**
 * MAXI-Ausbau GmbH — Global CSS
 * Shared styles for Navbar, Footer, Modal, Cookie Banner, Mobile CTA, Buttons
 * Änderungen hier = automatisch auf ALLEN Seiten.
 */

/* ========================================
   RESET & BASE
   ======================================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: #1a1a1a; background: #ffffff; line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
button { border: none; cursor: pointer; font-family: inherit; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700; }
p { font-size: 1.05rem; color: #555; line-height: 1.8; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ========================================
   SCROLL REVEAL
   ======================================== */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ========================================
   BUTTONS
   ======================================== */
.btn-gold { background: #DAA520; color: #fff; font-size: 0.95rem; font-weight: 600; padding: 16px 36px; border-radius: 4px; transition: background 0.3s ease, transform 0.2s ease; display: inline-flex; align-items: center; gap: 8px; }
.btn-gold:hover { background: #B8860B; transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: #ffffff; font-size: 0.95rem; font-weight: 500; padding: 15px 36px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.4); transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-outline-white:hover { border-color: #ffffff; background: rgba(255,255,255,0.08); }
.btn-outline-dark { background: transparent; color: #1a1a1a; font-size: 0.95rem; font-weight: 500; padding: 15px 36px; border-radius: 4px; border: 1px solid rgba(26,26,26,0.25); transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn-outline-dark:hover { border-color: #1a1a1a; background: rgba(26,26,26,0.04); }

/* ========================================
   NAVBAR
   ======================================== */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: 80px; background: transparent; z-index: 1000; display: flex; align-items: center; transition: box-shadow 0.4s ease, background 0.4s ease; }
.navbar.scrolled { background: #ffffff; box-shadow: 0 1px 20px rgba(0,0,0,0.08); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 2rem; }
.navbar__logo img { height: 64px; width: auto; transition: opacity 0.4s ease; }
.navbar__logo .logo-white { display: block; }
.navbar__logo .logo-dark { display: none; }
.navbar.scrolled .navbar__logo .logo-white { display: none; }
.navbar.scrolled .navbar__logo .logo-dark { display: block; height: 52px; }
.navbar__links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.navbar__links a { font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.85); letter-spacing: 0.01em; transition: color 0.3s ease; }
.navbar__links a:hover { color: #DAA520; }
.navbar.scrolled .navbar__links a { color: #1a1a1a; }
.navbar.scrolled .navbar__links a:hover { color: #DAA520; }
.navbar__cta { background: rgba(255,255,255,0.15); color: #fff; font-size: 0.85rem; font-weight: 600; padding: 12px 28px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.3); letter-spacing: 0.02em; backdrop-filter: blur(4px); transition: all 0.3s ease; }
.navbar__cta:hover { background: #DAA520; border-color: #DAA520; transform: translateY(-1px); }
.navbar.scrolled .navbar__cta { background: #DAA520; color: #fff; border-color: #DAA520; backdrop-filter: none; }
.navbar.scrolled .navbar__cta:hover { background: #B8860B; border-color: #B8860B; }
.navbar__hamburger { display: none; flex-direction: column; gap: 5px; background: none; padding: 8px; }
.navbar__hamburger span { display: block; width: 24px; height: 2px; background: #1a1a1a; transition: all 0.3s ease; }

/* Mobile menu */
.mobile-menu { display: none; position: fixed; top: 80px; left: 0; right: 0; bottom: 0; background: #ffffff; z-index: 999; padding: 2rem; flex-direction: column; }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 1rem 0; font-size: 1.1rem; font-weight: 500; color: #1a1a1a; border-bottom: 1px solid #f0f0f0; }
.mobile-menu a:hover { color: #DAA520; }
.mobile-menu__cta { margin-top: 1.5rem; background: #DAA520; color: #fff; text-align: center; padding: 16px; border-radius: 4px; font-weight: 600; font-size: 1rem; }

/* ========================================
   FOOTER
   ======================================== */
.footer { background: #111111; color: rgba(255,255,255,0.6); padding-top: 80px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 4rem; padding-bottom: 3rem; }
.footer__logo { margin-bottom: 1.5rem; }
.footer__logo img { height: 48px; width: auto; }
.footer__desc { font-size: 0.92rem; color: rgba(255,255,255,0.4); line-height: 1.7; margin-bottom: 0; }
.footer h4 { color: #ffffff; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1.5rem; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer__links a { font-size: 0.92rem; color: rgba(255,255,255,0.5); transition: color 0.3s ease; }
.footer__links a:hover { color: #DAA520; }
.footer__contact-item { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.75rem; font-size: 0.92rem; color: rgba(255,255,255,0.5); }
.footer__contact-item svg { width: 16px; height: 16px; stroke: #DAA520; fill: none; stroke-width: 2; flex-shrink: 0; margin-top: 3px; }
.footer__contact-item a { color: rgba(255,255,255,0.5); }
.footer__contact-item a:hover { color: #DAA520; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.5rem 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer__credit { display: inline-flex; align-items: center; gap: 8px; }
.footer__credit span { font-size: 0.78rem; color: rgba(255,255,255,0.25); transition: color 0.3s ease; }
.footer__credit-logo { height: 16px; width: auto; transition: opacity 0.3s ease, filter 0.3s ease; }
.footer__credit-logo--white { opacity: 0.2; filter: grayscale(100%); }
.footer__credit:hover span { color: rgba(255,255,255,0.6); }
.footer__credit:hover .footer__credit-logo--white { opacity: 1; filter: grayscale(0%); }
.footer__bottom-links { display: flex; gap: 1.5rem; }
.footer__bottom-links a { color: rgba(255,255,255,0.35); }
.footer__bottom-links a:hover { color: #DAA520; }

/* ========================================
   MODAL
   ======================================== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.modal-overlay.open { display: flex; }
.modal { background: #ffffff; border-radius: 20px; padding: 3rem; max-width: 480px; width: 90%; position: relative; max-height: 90vh; overflow-y: auto; }
.modal__close { position: absolute; top: 1.25rem; right: 1.25rem; background: #f5f5f5; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.modal__close:hover { background: #e0e0e0; }
.modal__close svg { width: 18px; height: 18px; stroke: #1a1a1a; fill: none; stroke-width: 2; }
.modal h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; color: #1a1a1a; }
.modal__subtitle { font-size: 0.92rem; color: #888; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: #1a1a1a; margin-bottom: 0.4rem; }
.form-group input, .form-group textarea { width: 100%; padding: 14px 16px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 0.95rem; font-family: inherit; background: #fafafa; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: #DAA520; background: #ffffff; }
.form-group textarea { min-height: 100px; resize: vertical; }
.modal__submit { width: 100%; padding: 16px; background: #DAA520; color: #fff; font-size: 1rem; font-weight: 600; border-radius: 8px; transition: background 0.3s ease; margin-top: 0.5rem; }
.modal__submit:hover { background: #B8860B; }
.modal__phone { text-align: center; margin-top: 1.25rem; font-size: 0.85rem; color: #888; }
.modal__phone a { color: #DAA520; font-weight: 600; }
.modal__success { display: none; text-align: center; padding: 2rem 0; }
.modal__success svg { width: 56px; height: 56px; stroke: #DAA520; fill: none; stroke-width: 1.5; margin: 0 auto 1.5rem; }
.modal__success h3 { color: #1a1a1a; margin-bottom: 0.75rem; }
.modal__success p { color: #888; font-size: 0.95rem; }

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner { position: fixed; bottom: -200px; left: 50%; transform: translateX(-50%); background: #1a1a1a; color: rgba(255,255,255,0.7); padding: 1.25rem 2rem; border-radius: 16px; z-index: 3000; display: flex; align-items: center; gap: 1.5rem; max-width: 680px; width: calc(100% - 2rem); transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1); font-size: 0.85rem; }
.cookie-banner.show { bottom: 1.5rem; }
.cookie-banner a { color: #DAA520; }
.cookie-banner__actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-banner__btn { padding: 8px 20px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; transition: all 0.3s ease; }
.cookie-banner__btn--accept { background: #DAA520; color: #fff; }
.cookie-banner__btn--accept:hover { background: #B8860B; }
.cookie-banner__btn--decline { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.cookie-banner__btn--decline:hover { background: rgba(255,255,255,0.15); }

/* ========================================
   MOBILE CTA BAR
   ======================================== */
.mobile-cta-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #1a1a1a; z-index: 1500; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
.mobile-cta-bar__inner { display: flex; gap: 10px; align-items: center; }
.mobile-cta-bar__btn { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-weight: 600; font-size: 0.95rem; transition: background 0.2s ease; }
.mobile-cta-bar__btn--secondary { width: 52px; height: 48px; border-radius: 10px; background: rgba(255,255,255,0.1); flex-shrink: 0; }
.mobile-cta-bar__btn--primary { flex: 1; padding: 14px 20px; border-radius: 10px; background: #DAA520; }
.mobile-cta-bar__btn--primary:hover { background: #B8860B; }
.mobile-cta-bar__btn svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; }

/* ========================================
   MOBILE RESPONSIVE (global)
   ======================================== */
@media (max-width: 768px) {
    .container { padding: 0 1.25rem; }
    .navbar__links { display: none; }
    .navbar__cta { display: none; }
    .navbar__hamburger { display: flex; }
    .mobile-cta-bar { display: block; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
    .cookie-banner { flex-direction: column; text-align: center; }
}
