/* ---------------------------
   GLOBAL STYLES
----------------------------*/
body {
    margin: 0;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: linear-gradient(135deg, #eef2f3, #dfe9f3);
    color: #1f2937;
    scroll-behavior: smooth;
}

a {
    color: #2bb673;
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: #1e8050;
    text-decoration: underline;
}

/* ---------------------------
   HEADER – Clean & Modern
----------------------------*/
header {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    text-align: center;
    padding: 25px 20px 25px;
    border-bottom: 1px solid #e5e7eb;
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

header .subtitle {
    margin-top: 10px;
    color: #4b5563;
    font-weight: 500;
}

header .highlight {
    color: #2bb673;
    font-weight: 600;
}

header .cta-button {
    display: inline-block;
    margin-top: 30px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2bb673, #22c55e);
    color: #fff;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

header .cta-button:hover {
    background: linear-gradient(135deg, #239a5f, #1f8050);
    transform: translateY(-1px);
}

/* ---------------------------
   TYPOGRAPHY
----------------------------*/
h1 { font-size: 1.8rem; font-weight: 600; letter-spacing: -0.3px; }
h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 500; }

p { color: #4b5563; }

h2.subtitle, h3.subtitle {
    margin: 15px 0 8px;
    color: #2bb673;
    font-weight: 600;
}

.seo-text {
    font-size: 1rem;
    color: #1f2937;
    max-width: 100%;
    margin: 10px auto 0;
    line-height: 1.6;
    text-align: left;
}

/* ---------------------------
   CONTAINER & CARDS
----------------------------*/
.container {
    max-width: 1100px;
    margin: -40px auto 0;
    padding: 20px;
}

.glass, .result, .tips, .faq, .ad-box, .ad-boxNoB {
    border-radius: 15px;
    padding: 28px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.glass:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }

/* ---------------------------
   FORM ELEMENTS
----------------------------*/
input, select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus {
    border-color: #2bb673;
    box-shadow: 0 0 6px rgba(43,182,115,0.2);
    outline: none;
}

/* ---------------------------
   RESULTS / HEALTH SCORE
----------------------------*/
.result {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    line-height: 1.7;
    transition: background-position 1.2s ease;
    background-size: 200% 200%;
    background-position: left;
}

.result:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    background-position: right;
}

.score-bar {
    height: 14px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 15px;
    position: relative;
}

.score-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(135deg, #2bb673, #22c55e);
    transition: width 0.8s ease, background 0.5s ease;
}

/* ---------------------------
   TIPS & INFO BOXES
----------------------------*/
.tips {
    margin-top: 25px;
    padding: 22px;
    background: linear-gradient(135deg, #f0fdf4, #e6ffed);
    border-left: 5px solid #2bb673;
    background-size: 200% 200%;
    background-position: left;
    transition: transform 0.25s ease, background-position 1.2s ease;
}

.tips:hover { transform: translateY(-1px); background-position: right; }

.tip-box { padding: 15px; border-radius: 12px; margin: 20px 0; font-size: 15px; }
.tip-box-green { background-color: #e6ffed; }
.tip-box-red   { background-color: #ffe5e5; }
.tip-box-blue  { background-color: #e8f0ff; }
.tip-box-light { background-color: #f0f9ff; }

.tip-protein, .tip-abnehmen, .tip-training, .tip-snacks, .tip-postworkout {
    border-left: 5px solid #2bb673;
}

/* ---------------------------
   FAQ / INFO SECTIONS
----------------------------*/
.faq {
    margin-top: 50px;
    padding: 30px;
    background: #fff7e6;
}

.faq-nav {
    margin: 20px 0 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq a.anchor {
    padding: 6px 12px;
    border-radius: 8px;
    background: #e6ffed;
    font-weight: 500;
    color: #2bb673;
    transition: all 0.25s ease;
}

.faq a.anchor:hover { background: #2bb673; color: #fff; }

.faq section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f1f1;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.faq section:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.07); transform: translateY(-1px); }

.faq h3 { margin-bottom: 10px; font-size: 18px; line-height: 1.4; color: #1f2937; }
.faq p { margin-bottom: 10px; line-height: 1.6; color: #4b5563; }

.faq ul { margin: 10px 0 10px 20px; }
.faq li { margin-bottom: 6px; }

.faq div[style] { margin: 25px 0 !important; }

/* ---------------------------
   BACK TO TOP
----------------------------*/
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #4f46e5, #2bb673);
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 1000;
}

.back-to-top.visible { opacity: 1; transform: scale(1); }
.back-to-top:hover { background: linear-gradient(135deg, #6366f1, #2bb673); }

/* ---------------------------
   AD / INFO BOXES
----------------------------*/
.ad-box {
    padding: 16px 18px;
    border-radius: 12px;
    margin: 25px 0;
    line-height: 1.6;
    font-size: 15px;
    background: #f8fafc;
    border-left: 4px solid #2bb673;
    transition: all 0.25s ease;
}

.ad-boxNoB {
    padding: 16px 18px;
    border-radius: 12px;
    margin: 25px 0;
    line-height: 1.6;
    font-size: 15px;
    background: #f8fafc;
    transition: all 0.25s ease;
}

.ad-box:hover { background: #f1f5f9; }

.ad-yellow { border-left-color: #eab308; }
.ad-blue   { border-left-color: #3b82f6; }
.ad-green  { border-left-color: #22c55e; }
.ad-greenNoB { border-left:0px solid #22c55e; text-align:center; }
.ad-red    { border-left-color: #ef4444; }

.ad-box strong { display: inline-block; margin-bottom: 6px; font-weight: 600; color: #1f2937; }
.ad-box a { display: inline; font-weight: 500; color: #2bb673; text-decoration: none; }
.ad-box a:hover { text-decoration: underline; }

.ad-button {
    display: inline-block;
    padding: 8px 14px;
    margin-top: 8px;
    background: transparent;
    color: #2bb673 !important;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #d1fae5;
    transition: all 0.25s ease;
}
.ad-button:hover { background: #ecfdf5; }


/* ---------------------------
   RESPONSIVE OPTIMIERUNG
----------------------------*/
@media (max-width: 1024px) {
    header h1 { font-size: 2rem; }
    header .subtitle { font-size: 1rem; }
    .container { max-width: 95%; padding: 15px; }
    .glass, .result, .tips, .faq, .ad-box, .ad-boxNoB { padding: 20px; }
}

@media (max-width: 768px) {
    header h1 { font-size: 1.6rem; }
    header .subtitle { font-size: 0.95rem; }
    header .cta-button { padding: 10px 20px; font-size: 0.95rem; }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.05rem; }

    .container { margin: -20px auto 0 auto; padding: 15px; }
    input, select { font-size: 0.95rem; padding: 10px; }
    .result, .tips, .faq, .ad-box, .ad-boxNoB { padding: 18px; }

    .faq-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; }
    .faq a.anchor { padding: 5px 10px; font-size: 0.85rem; }

    .back-to-top { bottom: 20px; right: 20px; padding: 10px 14px; font-size: 14px; }
    .ad-box, .ad-boxNoB { font-size: 14px; padding: 15px; }
    .ad-button { font-size: 0.9rem; padding: 6px 12px; }
}

@media (max-width: 480px) {
    header { padding: 15px 15px 30px; }
    header h1 { font-size: 1.4rem; }
    header .cta-button { padding: 8px 16px; font-size: 0.9rem; }
    .glass, .result, .tips, .faq, .ad-box, .ad-boxNoB { padding: 15px; }
    .faq section { padding: 15px; }
    .faq h3 { font-size: 1rem; }
    input, select { font-size: 0.9rem; padding: 8px; }
}

/* ---------------------------
   HERO BANNER (RESPONSIVE FIX)
----------------------------*/
.hero-banner {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 200px; /* Standardhöhe auf großen Geräten */
    background-color: #f8fafc;
    background-image: url("../assets/images/banner-gesundrechner3.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
}

.hero-title {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hero-cta {
    position: absolute;
    left: 23%;
    bottom: 20px;
    background: linear-gradient(135deg, #2bb673, #22c55e);
    color: #fff;
    padding: 12px 26px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    z-index: 10;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-banner { min-height: 180px; }
    .hero-cta {
        left: 15px;
        bottom: 15px;
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .hero-banner {
        min-height: 120px;  /* Banner deutlich kleiner auf kleinen Geräten */
    }
    .hero-cta {
        display: none; /* Button ausblenden */
    }
}
/* ---------------------------
   HERO BANNER – kleine Geräte
----------------------------*/
@media (max-width: 768px) {
    .hero-banner {
        min-height: 150px;              /* passt sich kleinerem Display an */
        height: auto;
        background-size: contain;        /* Bild wird vollständig angezeigt */
        background-position: top center;
    }

    .hero-cta {
        display: none;                  /* Button ausblenden */
    }
}

@media (max-width: 480px) {
    .hero-banner {
        min-height: 120px;              /* noch kleiner für Smartphones */
        background-size: contain;
        background-position: top center;
    }
}
/* ---------------------------
   HERO BANNER – kleine Geräte, Content näher nach oben
----------------------------*/
@media (max-width: 768px) {
    .container {
        margin-top: 10px;  /* reduziert den Abstand unter dem Banner */
        padding-top: 15px; /* optional, falls innen noch zu viel Platz */
    }
}

@media (max-width: 480px) {
    .container {
        margin-top: -40px;   /* noch enger für kleine Smartphones */
        padding-top: 10px;
    }
}
