/* ═══════════════════════════════════════════════════
   TravelDreams – main.css
   Alle Styles. Farben kommen als CSS Custom Properties
   aus dem WordPress Customizer (functions.php).
═══════════════════════════════════════════════════ */

/* ── BASE ── */
:root {
    --primary:       #0077B6;
    --primary-dark:  #03045E;
    --accent:        #F4A261;
    --accent-hot:    #E63946;
    --light:         #F8F9FA;
    --white:         #ffffff;
    --text-dark:     #1a1a2e;
    --text-mid:      #4a4a6a;
    --shadow-lg:     0 20px 60px rgba(0,0,0,0.35);
    --shadow-card:   0 8px 32px rgba(0,119,182,0.18);
    --radius-lg:     20px;
    --radius-xl:     32px;
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'Inter', Arial, sans-serif;
    --transition:    0.3s cubic-bezier(0.4,0,0.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--light); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: underline; }
a:hover, a:focus { color: var(--primary-dark); }

/* ── ACCESSIBILITY ── */
.skip-link { position: absolute; top: -100%; left: 0; background: var(--primary-dark); color: var(--white); padding: 12px 20px; font-weight: 600; z-index: 9999; border-radius: 0 0 8px 0; }
.skip-link:focus { top: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ── COOKIE BANNER ── */
#cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--primary-dark); color: var(--white); padding: 20px 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; z-index: 9998; box-shadow: 0 -4px 30px rgba(0,0,0,0.4); }
#cookie-banner p { flex: 1; min-width: 260px; font-size: 0.92rem; line-height: 1.5; }
#cookie-banner p a { color: var(--accent); }
.cookie-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cookie-accept { background: var(--accent); color: var(--primary-dark); border: none; padding: 10px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 0.9rem; font-family: var(--font-body); }
.btn-cookie-reject { background: transparent; color: var(--white); border: 2px solid var(--white); padding: 10px 24px; border-radius: 8px; font-weight: 600; cursor: pointer; font-size: 0.9rem; font-family: var(--font-body); }
.btn-cookie-accept:hover { background: #ffc08d; }
.btn-cookie-reject:hover { background: rgba(255,255,255,0.1); }

/* ── NEWSLETTER POPUP ── */
#newsletter-overlay { position: fixed; inset: 0; background: rgba(3,4,94,0.75); display: flex; align-items: center; justify-content: center; z-index: 9990; backdrop-filter: blur(6px); animation: fadeIn 0.5s ease; }
#newsletter-overlay.td-hidden { display: none; }
.newsletter-modal { background: var(--white); border-radius: var(--radius-xl); padding: 48px 40px 40px; max-width: 520px; width: 90%; position: relative; box-shadow: var(--shadow-lg); text-align: center; animation: slideUp 0.4s ease; }
.newsletter-modal .badge { display: inline-block; background: var(--accent-hot); color: var(--white); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.05em; padding: 5px 16px; border-radius: 50px; text-transform: uppercase; margin-bottom: 16px; }
.newsletter-modal h2 { font-family: var(--font-display); font-size: 1.9rem; color: var(--primary-dark); margin-bottom: 10px; line-height: 1.2; }
.newsletter-modal p { color: var(--text-mid); font-size: 1rem; margin-bottom: 28px; }
.newsletter-modal p strong { color: var(--accent-hot); }
.nl-form { display: flex; flex-direction: column; gap: 14px; }
.nl-form input[type="text"], .nl-form input[type="email"] { border: 2px solid #dde3f0; border-radius: 10px; padding: 14px 18px; font-size: 1rem; font-family: var(--font-body); transition: border-color var(--transition); width: 100%; }
.nl-form input:focus { border-color: var(--primary); }
.checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: var(--text-mid); text-align: left; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--primary); }
.btn-nl-submit { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); border: none; padding: 16px 32px; border-radius: 12px; font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); font-family: var(--font-body); }
.btn-nl-submit:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,119,182,0.35); }
.btn-nl-close { position: absolute; top: 16px; right: 20px; background: none; border: none; font-size: 1.6rem; color: var(--text-mid); cursor: pointer; line-height: 1; padding: 4px 8px; border-radius: 6px; }
.btn-nl-close:hover { color: var(--primary-dark); background: #f0f0f0; }
.nl-note { font-size: 0.78rem; color: #999; margin-top: 6px; margin-bottom: 0; }
.nl-feedback { font-size: 0.9rem; font-weight: 600; min-height: 20px; }
.nl-feedback.success { color: #2ecc71; }
.nl-feedback.error   { color: var(--accent-hot); }

/* ── DANKESSEITE ── */
#thankyou-page { position: fixed; inset: 0; background: linear-gradient(135deg, var(--primary-dark), var(--primary)); display: flex; align-items: center; justify-content: center; z-index: 9995; }
.thankyou-box { background: var(--white); border-radius: var(--radius-xl); padding: 56px 48px; max-width: 500px; width: 90%; text-align: center; box-shadow: var(--shadow-lg); }
.thankyou-icon { font-size: 4rem; margin-bottom: 16px; }
.thankyou-box h2 { font-family: var(--font-display); font-size: 2rem; color: var(--primary-dark); margin-bottom: 12px; }
.thankyou-box p { color: var(--text-mid); font-size: 1rem; margin-bottom: 12px; }
.btn-thankyou { background: linear-gradient(135deg, var(--accent), #e8813a); color: var(--white); border: none; padding: 14px 32px; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; font-family: var(--font-body); }
.btn-thankyou:hover { opacity: 0.9; }

/* ── HEADER ── */
#site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 900; background: rgba(3,4,94,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.1); transition: transform 0.3s ease; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--white); text-decoration: none; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
nav ul { list-style: none; display: flex; gap: 32px; }
nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color var(--transition); }
nav a:hover { color: var(--accent); }
.nav-cta { background: var(--accent) !important; color: var(--primary-dark) !important; padding: 8px 20px; border-radius: 8px; font-weight: 700 !important; text-decoration: none !important; }
.nav-cta:hover { background: #ffc08d !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--white); font-size: 1.5rem; }

/* ── HERO ── */
#hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.hero-video-wrap { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-video-wrap::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #03045e 0%, #0077b6 30%, #00b4d8 55%, #48cae4 70%, #90e0ef 85%, #ade8f4 100%); z-index: 0; }
.hero-video-wrap::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 80% 50% at 50% 110%, rgba(255,220,100,0.4) 0%, transparent 60%), radial-gradient(ellipse 60% 40% at 20% 80%, rgba(0,180,216,0.3) 0%, transparent 50%); z-index: 1; animation: waveShimmer 8s ease-in-out infinite alternate; }
@keyframes waveShimmer { from { opacity: 0.6; transform: scale(1); } to { opacity: 1; transform: scale(1.04); } }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; opacity: 0; transition: opacity 1s ease; }
.hero-video.loaded { opacity: 1; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(3,4,94,0.55) 0%, rgba(3,4,94,0.25) 50%, rgba(3,4,94,0.65) 100%); z-index: 3; }
.hero-content { position: relative; z-index: 4; max-width: 800px; padding: 0 24px; }
.hero-eyebrow { display: inline-block; background: rgba(244,162,97,0.9); color: var(--primary-dark); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 20px; border-radius: 50px; margin-bottom: 24px; }
.hero-headline { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.2rem); color: var(--white); line-height: 1.1; margin-bottom: 20px; text-shadow: 0 4px 24px rgba(0,0,0,0.4); }
.hero-headline em { color: var(--accent); font-style: normal; }
.hero-sub { font-size: 1.2rem; color: rgba(255,255,255,0.9); margin-bottom: 40px; max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 5; color: var(--white); opacity: 0.8; animation: bounce 2s infinite; text-decoration: none; }
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ── ANIMATED AFFILIATE BUTTONS ── */
.btn-pulse { display: inline-flex; align-items: center; gap: 8px; padding: 18px 36px; border-radius: 14px; font-size: 1.05rem; font-weight: 700; text-decoration: none; border: none; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition); position: relative; overflow: hidden; font-family: var(--font-body); }
.btn-pulse:hover { transform: translateY(-3px) scale(1.03); text-decoration: none; }

@keyframes glow-orange { 0%,100% { box-shadow: 0 0 0 0 rgba(244,162,97,0.7), 0 8px 30px rgba(244,162,97,0.4); } 50% { box-shadow: 0 0 0 12px rgba(244,162,97,0), 0 12px 40px rgba(244,162,97,0.6); } }
@keyframes glow-blue   { 0%,100% { box-shadow: 0 0 0 0 rgba(0,119,182,0.7), 0 8px 30px rgba(0,119,182,0.4); }   50% { box-shadow: 0 0 0 12px rgba(0,119,182,0), 0 12px 40px rgba(0,119,182,0.6); } }
@keyframes glow-red    { 0%,100% { box-shadow: 0 0 0 0 rgba(230,57,70,0.7), 0 8px 30px rgba(230,57,70,0.4); }    50% { box-shadow: 0 0 0 12px rgba(230,57,70,0), 0 12px 40px rgba(230,57,70,0.6); } }
@keyframes shimmer     { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }

.btn-pauschal  { background: linear-gradient(90deg, var(--accent) 0%, #ff8c42 50%, var(--accent) 100%); background-size: 200% auto; color: var(--primary-dark); animation: glow-orange 2s ease-in-out infinite, shimmer 3s linear infinite; }
.btn-hotel     { background: linear-gradient(90deg, var(--primary) 0%, #00b4d8 50%, var(--primary) 100%); background-size: 200% auto; color: var(--white); animation: glow-blue 2.3s ease-in-out infinite, shimmer 3s linear infinite; }
.btn-mietwagen { background: linear-gradient(90deg, var(--accent-hot) 0%, #ff6b6b 50%, var(--accent-hot) 100%); background-size: 200% auto; color: var(--white); animation: glow-red 2.6s ease-in-out infinite, shimmer 3s linear infinite; }
.nl-section-btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--primary-dark); font-weight: 800; font-size: 1.15rem; padding: 18px 40px; border-radius: 14px; border: none; cursor: pointer; animation: glow-orange 2s ease-in-out infinite; font-family: var(--font-body); }
.nl-section-btn:hover { background: #ffc08d; }

/* ── SECTIONS ── */
section { padding: 96px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--primary-dark); line-height: 1.2; margin-bottom: 16px; }
.section-desc { font-size: 1.1rem; color: var(--text-mid); max-width: 640px; margin-bottom: 48px; }
.section-alt { background: linear-gradient(180deg, #e8f4ff 0%, var(--light) 100%); }

/* ── TRUST BAR ── */
#trust { background: var(--primary-dark); padding: 56px 24px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; text-align: center; }
.trust-item { color: var(--white); }
.trust-number { font-family: var(--font-display); font-size: 3rem; font-weight: 900; color: var(--accent); display: block; }
.trust-label { font-size: 0.95rem; opacity: 0.8; margin-top: 4px; }

/* ── OFFER CARDS ── */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.offer-card { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); box-shadow: var(--shadow-card); transition: transform var(--transition), box-shadow var(--transition); display: flex; flex-direction: column; }
.offer-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(0,119,182,0.22); }
.card-image-wrap { position: relative; height: 220px; overflow: hidden; background: linear-gradient(135deg, #90e0ef, #0077b6); }
.card-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.offer-card:hover .card-image-wrap img { transform: scale(1.07); }
.card-tag { position: absolute; top: 16px; left: 16px; background: var(--accent-hot); color: var(--white); font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 6px; }
.card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.card-icon { font-size: 2rem; margin-bottom: 12px; }
.card-title { font-family: var(--font-display); font-size: 1.4rem; color: var(--primary-dark); margin-bottom: 10px; }
.card-text { font-size: 0.95rem; color: var(--text-mid); line-height: 1.7; flex: 1; margin-bottom: 24px; }
.card-features { list-style: none; margin-bottom: 24px; }
.card-features li { font-size: 0.9rem; color: var(--text-mid); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.card-features li::before { content: '✓'; color: var(--primary); font-weight: 700; }
.card-btn-wrap { margin-top: auto; }

/* ── DESTINATIONS ── */
#destinations { background: linear-gradient(180deg, var(--light) 0%, #e8f4ff 100%); }
.dest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.dest-card { border-radius: var(--radius-lg); overflow: hidden; position: relative; height: 260px; cursor: pointer; transition: transform var(--transition); text-decoration: none; display: block; }
.dest-card:hover { transform: scale(1.03); }
.dest-card-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.5s ease; }
.dest-card:hover .dest-card-bg { transform: scale(1.08); }
.dest-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,4,94,0.75) 0%, transparent 60%); }
.dest-label { position: absolute; bottom: 16px; left: 16px; color: var(--white); font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.dest-price { position: absolute; bottom: 16px; right: 16px; color: var(--accent); font-weight: 700; font-size: 0.9rem; }

/* ── NEWSLETTER SECTION ── */
#newsletter-section { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); text-align: center; }

/* ── LEGAL ── */
.section-legal { background: #f0f4ff; }
.legal-accordion { display: grid; gap: 24px; }
.legal-box { background: var(--white); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-card); }
.legal-box summary { font-weight: 700; font-size: 1.05rem; cursor: pointer; color: var(--primary-dark); list-style: none; display: flex; align-items: center; gap: 8px; }
.legal-box summary::-webkit-details-marker { display: none; }
.legal-box summary::before { content: '+'; font-size: 1.4rem; color: var(--primary); margin-right: 4px; transition: transform var(--transition); }
.legal-box[open] summary::before { content: '−'; }
.legal-content { margin-top: 16px; font-size: 0.92rem; color: var(--text-mid); line-height: 1.8; display: flex; flex-direction: column; gap: 10px; }

/* ── FOOTER ── */
footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 64px 24px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 900; color: var(--white); text-decoration: none; margin-bottom: 12px; display: block; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 0.9rem; line-height: 1.7; margin-bottom: 16px; }
.footer-col h3 { color: var(--white); font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }
.affiliate-note { background: rgba(255,255,255,0.06); border-left: 3px solid var(--accent); padding: 16px 20px; border-radius: 6px; font-size: 0.82rem; line-height: 1.6; margin-top: 32px; color: rgba(255,255,255,0.65); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 0.82rem; }
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-legal-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ── ANIMATIONS ── */
@keyframes fadeIn  { from { opacity: 0; }                      to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    nav ul { display: none; }
    .nav-toggle { display: block; }
    nav ul.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary-dark); padding: 16px 24px 24px; gap: 16px; }
    section { padding: 64px 20px; }
    .offer-grid { grid-template-columns: 1fr; }
    .newsletter-modal { padding: 40px 24px 32px; }
    .thankyou-box { padding: 40px 24px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    .dest-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn-pulse { width: 100%; justify-content: center; }
}
@media (max-width: 400px) {
    .dest-grid { grid-template-columns: 1fr; }
}
