/* ============================================================
   F Trade GmbH — ftra.de
   CI angelehnt ans Shop-Redesign (allesverfügbar.de):
   helles Blau mit Verläufen, Orange-Akzente, Inter-Font.
   ============================================================ */

:root {
    --primary:       #1a5276;
    --primary-mid:   #2471a3;
    --primary-light: #2e86c1;
    --accent:        #e67e22;
    --accent-dark:   #d35400;
    --ink:           #1d2731;
    --ink-soft:      #5d6d7e;
    --paper:         #ffffff;
    --paper-soft:    #f4f8fb;
    --line:          #e3ecf2;
    --radius:        14px;
    --shadow:        0 10px 30px rgba(26, 82, 118, .10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

img { max-width: 100%; display: block; }

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 0;
}

.site-logo { display: block; flex-shrink: 1; min-width: 0; line-height: 0; }
.site-logo img { display: block; height: 42px; width: auto; max-width: 100%; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
}
.site-nav a:hover { color: var(--primary-light); text-decoration: none; }

.site-nav a.nav-cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    padding: 9px 20px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(230, 126, 34, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.site-nav a.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230, 126, 34, .45);
}

/* ---------- Sprach-Auswahlbox ---------- */
.lang-select {
    font: 600 .88rem 'Inter', -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 30px 7px 14px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235d6d7e' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.lang-select:hover { border-color: var(--primary-light); }
.lang-select:focus { outline: none; border-color: var(--primary-light); box-shadow: 0 0 0 3px rgba(46, 134, 193, .15); }

/* ---------- RTL (Arabisch) ---------- */
[dir="rtl"] .lang-select {
    padding: 7px 14px 7px 30px;
    background-position: left 12px center;
}
[dir="rtl"] .sec-head,
[dir="rtl"] .hero .wrap { text-align: right; }
[dir="rtl"] .fact { border-left: none; border-right: 4px solid var(--primary-light); }
[dir="rtl"] .brand-card { text-align: right; }

/* ---------- Hero ---------- */
.hero {
    /* Logistik-Foto (Lagergasse) unter halbtransparentem CI-Verlauf —
       Blau bleibt prägend, Schrift bleibt lesbar. Fallback: reiner Verlauf. */
    background:
        linear-gradient(135deg, rgba(26, 82, 118, .93) 0%, rgba(36, 113, 163, .82) 55%, rgba(46, 134, 193, .68) 100%),
        url('../img/hero.jpg') center 42% / cover no-repeat,
        linear-gradient(135deg, #1a5276 0%, #2471a3 60%, #2e86c1 100%);
    color: #fff;
    padding: 110px 0 120px;
    position: relative;
    overflow: hidden;
}

/* dezente Deko-Kreise */
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
}
.hero::before { width: 420px; height: 420px; top: -140px; right: -100px; }
.hero::after  { width: 260px; height: 260px; bottom: -120px; left: 6%; }

.hero .wrap { position: relative; z-index: 1; }

.hero .kicker {
    display: inline-block;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    padding: 6px 16px;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 500;
    letter-spacing: .04em;
    margin-bottom: 22px;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 720px;
}

.hero h1 .accent { color: #ffd9b3; }

.hero p.sub {
    margin-top: 18px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, .88);
    max-width: 640px;
}

.hero .actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .98rem;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.btn-ghost {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .45);
    color: #fff;
}

/* ---------- Sektionen ---------- */
section { padding: 84px 0; }
section.alt { background: var(--paper-soft); }

.sec-head { max-width: 640px; margin-bottom: 46px; }
.sec-head .kicker {
    color: var(--accent);
    font-weight: 700;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.sec-head h2 {
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    font-weight: 800;
    color: var(--primary);
    margin-top: 8px;
    line-height: 1.2;
}
.sec-head p { margin-top: 12px; color: var(--ink-soft); }

/* Über uns: zweispaltig */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: start;
}
.about-grid p + p { margin-top: 14px; }
.about-grid p { color: var(--ink-soft); }
.about-grid strong { color: var(--ink); }

.about-facts {
    display: grid;
    gap: 16px;
}
.fact {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary-light);
    border-radius: var(--radius);
    padding: 18px 22px;
    box-shadow: var(--shadow);
}
.fact h3 { font-size: 1rem; color: var(--primary); }
.fact p  { font-size: .92rem; color: var(--ink-soft); margin-top: 4px; }

/* Spektrum-Karten */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(26, 82, 118, .16);
}

.card .icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.card h3 { font-size: 1.12rem; color: var(--primary); margin-bottom: 8px; }
.card p  { font-size: .94rem; color: var(--ink-soft); flex: 1; }
.card .more { margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--accent-dark); }

/* ---------- Marken (Eigenmarken) ---------- */
.brands {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.brand-card {
    --bc: var(--primary-light);
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 3px solid var(--bc);
    border-radius: var(--radius);
    padding: 26px 24px 24px;
    box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
    color: var(--ink);
}
.brand-card:hover {
    text-decoration: none;
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(26, 82, 118, .16);
}
.brand-logo {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 16px;
}
.brand-logo img {
    max-height: 72px;
    width: auto;
    object-fit: contain;
}
.brand-card p { font-size: .94rem; color: var(--ink-soft); flex: 1; }
.brand-card .brand-go {
    margin-top: 16px;
    font-weight: 700;
    font-size: .92rem;
    color: var(--bc);
    letter-spacing: .01em;
}

/* ---------- Kontakt ---------- */
.contact-band {
    background: linear-gradient(135deg, #1a5276 0%, #2471a3 60%, #2e86c1 100%);
    color: #fff;
    border-radius: calc(var(--radius) + 6px);
    padding: 56px 8%;
    text-align: center;
    box-shadow: var(--shadow);
}
.contact-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.contact-band p  { margin-top: 12px; color: rgba(255, 255, 255, .88); max-width: 560px; margin-left: auto; margin-right: auto; }
.contact-band .actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contact-band .plain { margin-top: 22px; font-size: .92rem; color: rgba(255, 255, 255, .75); }
.contact-band .plain a { color: #ffd9b3; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #aebfcc;
    padding: 34px 0;
    font-size: .9rem;
}
.site-footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}
.site-footer a { color: #dbe7f0; margin-left: 22px; }
.site-footer a:first-child { margin-left: 0; }

/* ---------- Unterseiten (Impressum / Datenschutz) ---------- */
.page {
    padding: 64px 0 84px;
    min-height: 60vh;
}
.page h1 { color: var(--primary); font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 28px; }
.page h2 { color: var(--primary); font-size: 1.2rem; margin: 30px 0 10px; }
.page p, .page li { color: var(--ink-soft); }
.page ul { padding-left: 22px; }

/* Sichtbare Nachtragen-Marker — dürfen so NICHT live gehen */
.todo {
    display: inline-block;
    background: #fff3cd;
    border: 1px dashed #d39e00;
    color: #8a6d00;
    border-radius: 6px;
    padding: 2px 10px;
    font-weight: 600;
    font-size: .92em;
}

/* ---------- Hero-Intro (rein CSS, beim Laden) ---------- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(18px);
        animation: rise .7s ease forwards;
    }
    .reveal.d1 { animation-delay: .12s; }
    .reveal.d2 { animation-delay: .24s; }
    .reveal.d3 { animation-delay: .36s; }
    @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Scroll-Reveal (JS setzt .in-view beim Einscrollen) ----------
   Versteckter Ausgangszustand NUR unter html.js — ohne JavaScript bleibt
   die Seite vollständig sichtbar. */
@media (prefers-reduced-motion: no-preference) {
    html.js [data-reveal] {
        opacity: 0;
        transform: translateY(26px);
        transition: opacity .7s ease, transform .7s ease;
        transition-delay: var(--rd, 0s);
    }
    html.js [data-reveal].in-view {
        opacity: 1;
        transform: none;
    }
    /* Stagger für Karten-Gruppen */
    html.js [data-reveal-delay="1"] { --rd: .10s; }
    html.js [data-reveal-delay="2"] { --rd: .20s; }
    html.js [data-reveal-delay="3"] { --rd: .30s; }
}

/* Header-Schatten sobald gescrollt */
.site-header.scrolled {
    box-shadow: 0 6px 20px rgba(26, 82, 118, .12);
}

/* ---------- Cookie-/Datenschutz-Hinweis ---------- */
.cookie-note {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 100;
    width: min(680px, calc(100% - 32px));
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 34px rgba(26, 82, 118, .22);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: cookie-in .45s ease;
}
.cookie-note p { font-size: .88rem; color: var(--ink-soft); flex: 1; }
.cookie-note p strong { color: var(--ink); }
.cookie-note-ok {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 9px 22px;
    font: 600 .9rem 'Inter', 'Segoe UI', sans-serif;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s ease, box-shadow .15s ease;
}
.cookie-note-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230, 126, 34, .45);
}
.cookie-note-out { opacity: 0; transform: translateX(-50%) translateY(12px); transition: all .35s ease; }
@keyframes cookie-in { from { opacity: 0; transform: translateX(-50%) translateY(16px); } }
@media (max-width: 560px) {
    .cookie-note { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .about-grid { grid-template-columns: 1fr; gap: 34px; }
    .hero { padding: 80px 0 90px; }
    section { padding: 60px 0; }
}
@media (max-width: 560px) {
    .site-header .wrap { flex-direction: column; gap: 10px; }
    .site-nav { justify-content: center; gap: 16px; }
    .site-logo img { height: auto; width: min(300px, 100%); }
}
