/* =====================================================
   LOYALDATA – Globales Stylesheet
   ===================================================== */
:root {
    --dark: #1a2e44;
    --green: #27ae60;
    --blue: #3b9ede;
    --light: #f7f9fc;
    --text: #333;
    --gray: #666;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

/* ── HEADER / NAV ── */
header {
    background: var(--dark);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.logo {
    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}
.logo span { color: var(--blue); }
nav { display: flex; align-items: center; gap: 0.2rem; }
nav a {
    color: #a0b8cc;
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 4px;
    font-size: 0.88rem;
    transition: background 0.2s, color 0.2s;
}
nav a:hover { color: white; background: rgba(255,255,255,0.08); }
nav a.active { color: white; background: rgba(255,255,255,0.12); }
.nav-cta {
    background: var(--green) !important;
    color: white !important;
    font-weight: 600;
    margin-left: 0.4rem;
}
.nav-cta:hover { background: #219a55 !important; }

/* ── PAGE HERO ── */
.page-hero {
    background: linear-gradient(135deg, var(--dark) 0%, #243d55 100%);
    color: white;
    padding: 3.5rem 2rem;
    text-align: center;
}
.page-hero h1 {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.page-hero p { color: #a0b8cc; font-size: 1rem; max-width: 500px; margin: 0 auto; }

/* ── SECTIONS ── */
.section { padding: 3.5rem 2rem; max-width: 900px; margin: 0 auto; }
.section h2 { font-family: Georgia, serif; font-size: 1.7rem; color: var(--dark); margin-bottom: 0.4rem; }
.section .sub { color: var(--gray); margin-bottom: 2rem; }
hr { border: none; border-top: 1px solid #e5e9ed; }

/* ── CARDS ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.card { background: var(--light); border-radius: 8px; padding: 1.5rem; border-top: 3px solid var(--green); }
.card h3 { color: var(--dark); font-size: 1.05rem; margin-bottom: 0.4rem; }
.card p { color: var(--gray); font-size: 0.93rem; }
.card .icon { font-size: 1.8rem; margin-bottom: 0.6rem; }

/* ── PRICING ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; }
.price-card {
    background: white; border-radius: 10px; padding: 2rem 1.5rem;
    border: 2px solid #e5e9ed; text-align: center; position: relative;
    transition: border-color 0.2s, transform 0.2s;
}
.price-card:hover { border-color: var(--green); transform: translateY(-3px); }
.price-card.featured { border-color: var(--green); box-shadow: 0 6px 24px rgba(39,174,96,0.15); }
.badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--green); color: white; font-size: 0.72rem; font-weight: 700;
    padding: 3px 14px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase;
}
.price-card h3 { font-size: 1.2rem; color: var(--dark); margin-bottom: 0.5rem; }
.price-card .price { font-size: 2.4rem; font-weight: 700; color: var(--dark); font-family: Georgia, serif; margin: 0.5rem 0 0.2rem; }
.price-card .price span { font-size: 1rem; font-weight: normal; color: var(--gray); }
.price-card .desc { font-size: 0.88rem; color: var(--gray); margin-bottom: 1.5rem; }
.price-card ul { list-style: none; text-align: left; margin-bottom: 1.8rem; }
.price-card ul li { font-size: 0.92rem; padding: 0.3rem 0; border-bottom: 1px solid #f0f2f5; }
.price-card ul li::before { content: "✓ "; color: var(--green); font-weight: bold; }
.btn-price {
    display: block; background: var(--dark); color: white; padding: 0.75rem;
    border-radius: 5px; text-decoration: none; font-size: 0.92rem; font-weight: 600;
    transition: background 0.2s;
}
.btn-price:hover { background: var(--green); }
.price-card.featured .btn-price { background: var(--green); }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid #e5e9ed; padding: 1.2rem 0; cursor: pointer; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; color: var(--dark); display: flex; justify-content: space-between; align-items: center; font-size: 0.98rem; }
.faq-q .arrow { color: var(--green); transition: transform 0.2s; }
.faq-a { display: none; color: var(--gray); font-size: 0.93rem; margin-top: 0.7rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .arrow { transform: rotate(180deg); }

/* ── ABOUT ── */
.about-box { background: var(--light); border-left: 4px solid var(--blue); padding: 1.5rem 2rem; border-radius: 0 8px 8px 0; }
.about-box p { color: var(--gray); line-height: 1.8; }

/* ── CONTACT FORM ── */
.contact-wrap { background: var(--light); padding: 3.5rem 2rem; }
.contact-inner { max-width: 600px; margin: 0 auto; }
.contact-inner h2 { font-family: Georgia, serif; font-size: 1.7rem; color: var(--dark); margin-bottom: 0.4rem; }
.contact-inner .sub { color: var(--gray); margin-bottom: 2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--dark); margin-bottom: 0.3rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #dde3ea;
    border-radius: 5px; font-size: 0.95rem; font-family: inherit;
    color: var(--text); background: white; transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--blue); }
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit {
    width: 100%; background: var(--green); color: white; border: none;
    padding: 0.9rem; border-radius: 5px; font-size: 1rem; font-weight: 600;
    cursor: pointer; transition: background 0.2s;
}
.btn-submit:hover { background: #219a55; }
.success-msg {
    display: none; background: #e8f8f0; border: 1px solid var(--green);
    color: var(--green); padding: 1rem; border-radius: 5px;
    text-align: center; font-weight: 600; margin-bottom: 1rem;
}

/* ── LEGAL ── */
.legal-content { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.legal-content h1 { font-family: Georgia, serif; font-size: 1.8rem; color: var(--dark); margin-bottom: 1.5rem; }
.legal-content h2 { font-size: 1.05rem; color: var(--dark); margin: 1.5rem 0 0.5rem; }
.legal-content p { color: var(--gray); font-size: 0.93rem; margin-bottom: 0.7rem; line-height: 1.8; }

/* ── BUTTONS ── */
.btn {
    display: inline-block; background: var(--green); color: white;
    padding: 0.85rem 2rem; border-radius: 5px; text-decoration: none;
    font-weight: 600; transition: background 0.2s;
}
.btn:hover { background: #219a55; }
.btn-outline {
    display: inline-block; border: 2px solid var(--green); color: var(--green);
    padding: 0.8rem 2rem; border-radius: 5px; text-decoration: none;
    font-weight: 600; transition: all 0.2s;
}
.btn-outline:hover { background: var(--green); color: white; }

/* ── FOOTER ── */
footer {
    background: var(--dark); color: #7a9bb5;
    padding: 2rem; font-size: 0.85rem;
}
.footer-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer-links a { color: #7a9bb5; text-decoration: none; margin-left: 1.2rem; }
.footer-links a:hover { color: white; }

/* ── BREADCRUMB ── */
.breadcrumb {
    background: var(--light); padding: 0.6rem 2rem;
    font-size: 0.82rem; color: var(--gray);
}
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    nav a:not(.nav-cta) { display: none; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links a { margin: 0 0.6rem; }
}

/* ═══════════════════════════════════════
   WHATSAPP SIDE TAB
═══════════════════════════════════════ */
.wa-tab {
    position: fixed;
    right: -220px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    align-items: stretch;
    transition: right 0.35s cubic-bezier(.4,0,.2,1);
    filter: drop-shadow(-4px 4px 12px rgba(0,0,0,0.2));
}
.wa-tab:hover { right: 0; }

.wa-tab-icon {
    background: #25d366;
    width: 48px;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px 0 0 10px;
    cursor: pointer;
    flex-shrink: 0;
}
.wa-tab-icon svg { width: 26px; height: 26px; fill: white; }
.wa-tab-icon span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    font-family: 'Segoe UI', sans-serif;
    text-transform: uppercase;
}

.wa-tab-panel {
    background: #1a2e44;
    width: 220px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.7rem;
    border-radius: 0 0 0 0;
}
.wa-tab-panel p {
    color: #a0b8cc;
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
}
.wa-tab-panel strong { color: white; display: block; font-size: 0.92rem; margin-bottom: 0.2rem; }
.wa-tab-btn {
    display: block;
    background: #25d366;
    color: white;
    text-align: center;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.2s;
}
.wa-tab-btn:hover { background: #1ebe5d; }

/* ═══════════════════════════════════════
   COOKIE BANNER
═══════════════════════════════════════ */
#cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #1a2e44;
    color: #cdd9e5;
    padding: 1.1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    z-index: 99999;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.88rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    border-top: 3px solid #27ae60;
    pointer-events: all;
}
#cookie-banner p { margin: 0; line-height: 1.6; flex: 1; min-width: 200px; }
#cookie-banner a { color: #3b9ede; text-decoration: none; }
#cookie-banner a:hover { text-decoration: underline; }
.cookie-btns { display: flex; gap: 0.7rem; flex-shrink: 0; pointer-events: all; }
.cookie-accept {
    background: #27ae60; color: white; border: none;
    padding: 0.6rem 1.4rem; border-radius: 5px;
    font-size: 0.88rem; font-weight: 700; cursor: pointer;
    transition: background 0.2s; font-family: 'Segoe UI', sans-serif;
    position: relative; z-index: 100000; pointer-events: all;
}
.cookie-accept:hover { background: #219a55; }
.cookie-decline {
    background: transparent; color: #7a9bb5;
    border: 1px solid #3a5068; padding: 0.6rem 1.1rem;
    border-radius: 5px; font-size: 0.88rem; cursor: pointer;
    transition: color 0.2s, border-color 0.2s; font-family: 'Segoe UI', sans-serif;
    position: relative; z-index: 100000; pointer-events: all;
}
.cookie-decline:hover { color: white; border-color: #7a9bb5; }

@media(max-width:640px) {
    .wa-tab { display: none; }
}

/* ═══════════════════════════════════════
   STICKY LAYOUT – Header + Footer fix,
   Mitte scrollbar
═══════════════════════════════════════ */
html, body {
    height: 100%;
    overflow: hidden;
}
body {
    display: flex;
    flex-direction: column;
}
header {
    flex-shrink: 0;
}
.page-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
footer {
    flex-shrink: 0;
}

/* ── SECTION INDICATOR (Breadcrumb oben) ── */
.section-indicator {
    background: white;
    border-bottom: 1px solid #e5e9ed;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    font-family: 'Segoe UI', sans-serif;
    font-size: 0.82rem;
}
.section-indicator .breadcrumb-inner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--gray);
}
.section-indicator .breadcrumb-inner a {
    color: var(--blue);
    text-decoration: none;
}
.section-indicator .breadcrumb-inner a:hover { text-decoration: underline; }
.section-indicator .breadcrumb-inner .sep { color: #ccc; }
.section-indicator .breadcrumb-inner .current {
    color: var(--dark);
    font-weight: 600;
}
.section-indicator .page-info {
    color: #aaa;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.section-indicator .page-info .dot {
    width: 6px; height: 6px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
}

/* Altes breadcrumb ausblenden */
.breadcrumb { display: none; }

/* ── STICKY FOOTER NAV ── */
footer .footer-inner {
    max-width: 100%;
    padding: 0 2rem;
}
footer {
    padding: 0.9rem 0;
}
