/* ==========================================================================
   Sun2Fuel – Firmenwebsite (statisch)
   Branding zentral über die CSS-Variablen unten anpassbar.
   ========================================================================== */

:root {
    /* Marke – Farben aus dem Sun2Fuel-Logo (assets/s2f_green.png, assets/s2f_white.png) */
    --color-green: #003732;       /* tiefes Grün: Ring + Wassertropfen */
    --color-green-dark: #00241e;  /* noch dunkleres Grün (Footer) */
    --color-green-mid: #0e6b5c;   /* mittleres Grün (Icons/Haken auf hellem Grund) */
    --color-green-soft: #e2efea;  /* heller Grünton (Badges) */
    --color-gold: #bb8b00;        /* Gold: Sonnenspitzen */
    --color-gold-dark: #8c6800;   /* dunkleres Gold (Text/Icons auf hellem Grund) */
    --color-gold-soft: #f6ecd4;   /* heller Goldton */

    --color-bg: #f6f8fa;
    --color-surface: #ffffff;
    --color-text: #1c2733;
    --color-muted: #5b6b7b;
    --color-border: #e2e8ee;

    --font-sans: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
        "Helvetica Neue", Arial, sans-serif;

    --radius: 14px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(0, 55, 50, 0.06), 0 1px 3px rgba(0, 55, 50, 0.08);
    --shadow-md: 0 8px 20px -6px rgba(0, 55, 50, 0.14), 0 2px 6px -2px rgba(0, 55, 50, 0.08);
    --shadow-lg: 0 28px 56px -20px rgba(0, 55, 50, 0.28);

    --container: 1120px;
    --header-h: 72px;
}

/* ---------- Basis ---------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* ---------- Layout-Helfer ---------- */

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.narrow {
    max-width: 46rem;
}

.center {
    text-align: center;
}

.section {
    padding: clamp(4rem, 9vw, 6.5rem) 0;
}

.section-head {
    max-width: 46rem;
    margin-bottom: 2.75rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: 0.75rem;
}

h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    font-weight: 800;
    color: var(--color-green);
}

h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    line-height: 1.2;
    letter-spacing: -0.015em;
    font-weight: 750;
    color: var(--color-green);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-green);
}

p {
    color: var(--color-text);
}

.section-sub {
    color: var(--color-muted);
}

.about p + p {
    margin-top: 1rem;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: 999px;
    font-weight: 650;
    font-size: 0.98rem;
    line-height: 1.2;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease,
        background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    color: #201603;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    border-color: var(--color-green);
    color: var(--color-green);
}

.btn-ghost:hover {
    background: rgba(0, 55, 50, 0.06);
}

.btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.08rem;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 2px;
    border-radius: 6px;
}

/* ---------- Header / Navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.brand-name {
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-green);
}

.brand-accent {
    color: var(--color-gold-dark);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.96rem;
    color: var(--color-text);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover {
    color: var(--color-green);
    border-bottom-color: var(--color-gold);
}

.nav-cta {
    padding: 0.55rem 1.25rem;
    font-size: 0.92rem;
}

/* Burger (mobil) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    height: 2.5px;
    width: 100%;
    border-radius: 2px;
    background: var(--color-green);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- Hero ---------- */

.hero {
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 6.5rem);
    background:
        radial-gradient(52rem 30rem at 82% -12%, rgba(187, 139, 0, 0.14), transparent 60%),
        radial-gradient(40rem 26rem at -10% 110%, rgba(0, 55, 50, 0.07), transparent 60%),
        var(--color-bg);
    overflow: hidden;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.hero-copy h1 {
    margin-bottom: 1.1rem;
}

.hero .lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: var(--color-muted);
    max-width: 34rem;
    margin-bottom: 1.9rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

/* Hero-Karte (Balken) */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-card {
    width: min(100%, 26rem);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 1.5rem 1.15rem;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}

.hero-card-title {
    font-weight: 700;
    color: var(--color-green);
}

.hero-card-badge {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-green-mid);
    background: var(--color-green-soft);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    white-space: nowrap;
}

.hero-bars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    height: 220px;
    align-items: end;
}

.hero-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    height: 100%;
}

.hero-bar {
    width: 100%;
    height: var(--bar-height, 60%);
    border-radius: 10px 10px 4px 4px;
    background: linear-gradient(180deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    transform-origin: bottom;
    animation: grow 1s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero-bar-group:nth-child(2) .hero-bar {
    animation-delay: 0.15s;
}

.hero-bar-group:nth-child(3) .hero-bar {
    animation-delay: 0.3s;
}

.hero-bar-green {
    background: linear-gradient(180deg, #2fbf83 0%, var(--color-green-mid) 100%);
}

@keyframes grow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.hero-bar-label {
    font-size: 0.85rem;
    font-weight: 650;
    color: var(--color-muted);
}

.hero-card-foot {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-muted);
}

/* ---------- Karten (Produkte / Stärken) ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.cards-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 2rem 1.9rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(187, 139, 0, 0.55);
}

.card h3 {
    margin-bottom: 0.35rem;
}

.card p {
    color: var(--color-muted);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(187, 139, 0, 0.16), rgba(187, 139, 0, 0.08));
    color: var(--color-gold-dark);
    margin-bottom: 1.15rem;
}

.card-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gold-dark);
    margin-bottom: 0.85rem;
}

.product-card-muted {
    background: repeating-linear-gradient(
        135deg,
        var(--color-surface) 0,
        var(--color-surface) 14px,
        #fbfcfd 14px,
        #fbfcfd 28px
    );
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 1.1rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.ticks li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--color-green-soft);
    border: 1.5px solid var(--color-green-mid);
}

.ticks li::after {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0.18rem;
    width: 1.15rem;
    height: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-green-mid);
}

/* ---------- Kontakt ---------- */

.contact {
    background:
        radial-gradient(38rem 22rem at 50% -20%, rgba(187, 139, 0, 0.18), transparent 65%),
        var(--color-green);
}

.contact h2,
.contact p {
    color: #eaf3f0;
}

.contact .eyebrow {
    color: var(--color-gold);
}

.contact p {
    max-width: 38rem;
    margin: 0 auto 2rem;
}

.contact .btn-primary {
    box-shadow: 0 10px 24px -8px rgba(187, 139, 0, 0.55);
}

.contact .contact-address {
    margin-top: 2.25rem;
    font-size: 0.95rem;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--color-green-dark);
    color: #dbe8e2;
    padding: 1.6rem 0;
    font-size: 0.92rem;
}

/* muss explizit gesetzt werden: die globale "p"-Regel würde sonst überschreiben */
.footer-copy {
    color: #dbe8e2;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.brand-footer .brand-logo {
    width: 32px;
    height: 32px;
}

.brand-footer .brand-name {
    color: #ffffff;
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    gap: 1.4rem;
}

.footer-links a {
    color: #c4d6cd;
    text-decoration: none;
    transition: color 0.15s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ---------- Rechtliche Seiten (Impressum/Datenschutz) ---------- */

.page {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.page .container {
    max-width: 46rem;
}

.page h2 {
    margin-bottom: 1.5rem;
}

.page h3 {
    margin: 1.75rem 0 0.5rem;
    font-size: 1.05rem;
}

.page p,
.page li {
    color: var(--color-text);
}

.page ul {
    padding-left: 1.25rem;
}

.page .notice {
    margin-top: 2.25rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--color-gold);
    background: rgba(187, 139, 0, 0.08);
    border-radius: 0 10px 10px 0;
    font-size: 0.92rem;
}

.page-back {
    display: inline-block;
    margin-bottom: 1.75rem;
    font-weight: 650;
    color: var(--color-green);
    text-decoration: none;
}

.page-back:hover {
    text-decoration: underline;
}

/* ---------- Reveal-Animation ---------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        text-align: center;
    }

    .hero .lead {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .cards {
        grid-template-columns: 1fr;
        max-width: 30rem;
        margin-inline: auto;
    }

    .cards-3 {
        max-width: none;
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--color-surface);
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        padding: 0.75rem 1.25rem 1.25rem;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-links a {
        display: block;
        padding: 0.85rem 0.25rem;
        border-bottom: none;
    }

    .nav-cta {
        margin-top: 1rem;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .cards-3 {
        grid-template-columns: 1fr;
        max-width: 30rem;
        margin-inline: auto;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Reduzierte Bewegung ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-card,
    .hero-bar {
        animation: none;
    }

    .btn,
    .card,
    .nav-links a {
        transition: none;
    }
}
