/* ==========================================================================
   Itoras — Custom Stylesheet
   Tokens → Base → Typography → Components → Sections → Utilities → Responsive
   ========================================================================== */

/* ---------------------------------------------------------------------------
   Design Tokens
   --------------------------------------------------------------------------- */
:root {
    --color-bg-dark:      #1a2332;
    --color-bg-card:      #243044;
    --color-bg-elevated:  #2d3b52;
    --color-accent:       #f59300;
    --color-accent-light: #f5a600;
    --color-accent-end:   #eddd53;
    --color-text:         #e2e8f0;
    --color-text-muted:   #94a3b8;
    --color-border:       rgba(245, 147, 0, .15);
    --color-white:        #ffffff;
    --gradient-accent:    linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 40%, var(--color-accent-end) 100%);
    --font-heading:       'Exo 2', 'Segoe UI', system-ui, sans-serif;
    --font-body:          'Segoe UI', system-ui, -apple-system, sans-serif;
    --navbar-h:           68px;   /* Höhe der fixed Navbar — für Scroll-Offset */
    --section-py:         clamp(4rem, 8vw, 7rem);
    --transition-fast:    .2s ease;
    --transition-base:    .35s ease;
}


/* ---------------------------------------------------------------------------
   @font-face — Self-hosted Exo 2 (DSGVO-konform)
   --------------------------------------------------------------------------- */
@font-face {
    font-family: 'Exo 2';
    src: url('/Exo2-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* ---------------------------------------------------------------------------
   Base / Reset
   --------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    /* Scroll-Offset damit Ankerpunkte nicht hinter der fixed Navbar versteckt sind */
    scroll-padding-top: calc(var(--navbar-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--color-bg-dark);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Platz für fixed Navbar oben freihalten */
    padding-top: var(--navbar-h);
}

main { flex: 1; }

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

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover { color: var(--color-accent-end); }

::selection { background: rgba(245, 147, 0, .3); color: var(--color-white); }


/* ---------------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-white);
}

.section-title   { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .5rem; }
.section-subtitle { color: var(--color-text-muted); font-size: 1.05rem; max-width: 600px; }
.section-header  { margin-bottom: 3rem; }

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.divider-line {
    width: 60px; height: 3px;
    background: var(--gradient-accent);
    border: none; border-radius: 2px;
    margin: 1rem 0 0; opacity: 1;
}
.text-center .divider-line { margin-left: auto; margin-right: auto; }


/* ---------------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------------- */
.btn-accent {
    background: var(--gradient-accent);
    color: var(--color-bg-dark) !important;
    border: none;
    font-weight: 700;
    padding: .65rem 1.6rem;
    border-radius: 8px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    display: inline-block;
}
.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(245, 147, 0, .35);
    color: var(--color-bg-dark) !important;
}
.btn-outline-accent {
    border: 2px solid var(--color-accent);
    color: var(--color-accent) !important;
    background: transparent;
    font-weight: 700;
    padding: .65rem 1.6rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
    display: inline-block;
}
.btn-outline-accent:hover {
    background: var(--color-accent);
    color: var(--color-bg-dark) !important;
}
.btn-lg { padding: .8rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem 1rem; font-size: .875rem; }


/* ---------------------------------------------------------------------------
   Navbar — fixed-top (Bootstrap übernimmt position:fixed, wir stylen das Aussehen)
   --------------------------------------------------------------------------- */
#navbar {
    background: rgba(26, 35, 50, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    padding: .6rem 0;
    transition: background var(--transition-base);
    /* z-index wird von Bootstrap fixed-top (1030) übernommen */
}

.navbar-logo { object-fit: contain; }

#navbar .nav-link {
    color: rgba(226, 232, 240, .75);
    font-weight: 500;
    padding: .45rem .85rem;
    border-radius: 6px;
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}
#navbar .nav-link:hover,
#navbar .nav-link.active {
    color: var(--color-white);
    background: rgba(255, 255, 255, .07);
}

.navbar-toggler {
    border: 1px solid rgba(245, 147, 0, .3);
    padding: .35rem .6rem;
}
/* Hamburger-Icon weiß färben */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(226,232,240,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Nav-Panel */
@media (max-width: 991.98px) {
    #navbarNav {
        background: #1a2332;
        margin-top: .5rem;
        border-radius: 0 0 12px 12px;
        border: 1px solid var(--color-border);
        border-top: none;
        padding: .75rem 1rem 1rem;
    }
    #navbarNav .nav-link { padding: .6rem .75rem; border-radius: 6px; }
    .btn-accent.btn-sm { display: block; text-align: center; margin-top: .5rem; }
}


/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.25rem 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, rgba(245, 147, 0, .07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 80% 20%, rgba(237, 221, 83, .03) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 840px;
    width: 100%;
}

.hero-logo {
    margin: 0 auto 2rem;
    opacity: 0; /* GSAP animated */
}

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    margin-bottom: 1rem;
    opacity: 0; /* GSAP animated */
    /* Buchstaben sauber umbrechen auf Mobile */
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.hero-rotating {
    display: inline-block;
    min-width: 4ch;   /* Kein Layout-Jump beim Wechsel */
}

.hero-subtitle {
    font-size: clamp(.95rem, 2vw, 1.2rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0; /* GSAP animated */
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0; /* GSAP animated */
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.6rem;
    color: var(--color-accent);
    animation: bounce 2s ease infinite;
    opacity: 0; /* GSAP animated */
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(10px); }
}


/* ---------------------------------------------------------------------------
   Trust Bar
   --------------------------------------------------------------------------- */
.trust-bar {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}
.trust-item  { text-align: center; padding: 1rem; }
.trust-number {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}
.trust-label { color: var(--color-text-muted); font-size: .9rem; margin-top: .2rem; }


/* ---------------------------------------------------------------------------
   Sections
   --------------------------------------------------------------------------- */
.section     { padding: var(--section-py) 0; }
.section-alt { background: var(--color-bg-card); }


/* ---------------------------------------------------------------------------
   Service Cards
   --------------------------------------------------------------------------- */
.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    border-color: rgba(245, 147, 0, .35);
}
.service-icon {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: rgba(245, 147, 0, .1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: .7rem; }
.service-card p  { color: var(--color-text-muted); font-size: .95rem; margin: 0; }


/* ---------------------------------------------------------------------------
   About Section
   --------------------------------------------------------------------------- */
.about-image-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.about-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.about-list { list-style: none; padding: 0; }
.about-list li {
    padding: .45rem 0 .45rem 2rem;
    position: relative;
    color: var(--color-text);
}
.about-list li::before {
    content: '\F26A'; /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute; left: 0;
    color: var(--color-accent);
}


/* ---------------------------------------------------------------------------
   Process / Arbeitsweise
   --------------------------------------------------------------------------- */
.process-step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    height: 100%;
    transition: border-color var(--transition-base), transform var(--transition-base);
}
.process-step:hover {
    border-color: rgba(245, 147, 0, .4);
    transform: translateY(-4px);
}
.process-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: .75rem;
}
.process-icon {
    font-size: 1.75rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}
.process-step h4  { font-size: 1.1rem; margin-bottom: .5rem; }
.process-step p   { color: var(--color-text-muted); font-size: .9rem; margin: 0; }


/* ---------------------------------------------------------------------------
   Security Section
   --------------------------------------------------------------------------- */
.security-feature { text-align: center; padding: 2rem 1rem; }
.security-icon {
    width: 72px; height: 72px; border-radius: 50%;
    background: rgba(245, 147, 0, .08);
    border: 2px solid var(--color-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    color: var(--color-accent);
    margin: 0 auto 1.2rem;
    transition: border-color var(--transition-base), background var(--transition-base);
}
.security-feature:hover .security-icon {
    border-color: var(--color-accent);
    background: rgba(245, 147, 0, .15);
}
.security-feature h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.security-feature p  { color: var(--color-text-muted); font-size: .9rem; }

/* CTA-Banner in der Sicherheits-Sektion */
.security-cta-banner {
    background: linear-gradient(135deg, rgba(245,147,0,.08) 0%, rgba(237,221,83,.05) 100%);
    border: 1px solid rgba(245, 147, 0, .25);
    border-radius: 16px;
    padding: 2rem 2.5rem;
}
.security-cta-banner h3 { font-size: 1.35rem; }


/* ---------------------------------------------------------------------------
   Partners Track (Horizontal Scroll)
   --------------------------------------------------------------------------- */
.partners-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 0 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--color-accent) transparent;
}
.partners-track::-webkit-scrollbar        { height: 4px; }
.partners-track::-webkit-scrollbar-track  { background: transparent; }
.partners-track::-webkit-scrollbar-thumb  { background: var(--color-accent); border-radius: 4px; }

.partner-card {
    flex: 0 0 185px;
    scroll-snap-align: center;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base), border-color var(--transition-base);
}
.partner-card:hover { transform: scale(1.05); border-color: rgba(245, 147, 0, .4); }
.partner-card img {
    max-height: 48px;
    margin: 0 auto .8rem;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: .65;
    transition: opacity var(--transition-fast);
}
.partner-card:hover img  { opacity: 1; }
.partner-logo-wide {
    max-height: 28px !important;
    width: 85%;
    height: auto;
}
.partner-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-white);
    font-size: .95rem;
}


/* ---------------------------------------------------------------------------
   FAQ Accordion
   --------------------------------------------------------------------------- */
.faq-accordion { --bs-accordion-bg: transparent; }

.faq-item {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border) !important;
    border-radius: 12px !important;
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-btn {
    background: var(--color-bg-card) !important;
    color: var(--color-white) !important;
    font-weight: 600;
    font-size: 1rem;
    padding: 1.1rem 1.25rem;
    border: none;
    box-shadow: none !important;
}
.faq-btn:not(.collapsed) {
    background: var(--color-bg-elevated) !important;
    color: var(--color-accent) !important;
}
.faq-btn::after {
    /* Bootstrap accordion arrow — weiß einfärben */
    filter: invert(1) brightness(2);
}
.faq-btn:not(.collapsed)::after {
    filter: invert(67%) sepia(96%) saturate(800%) hue-rotate(5deg) brightness(105%);
}
.faq-body {
    background: var(--color-bg-elevated);
    color: var(--color-text-muted);
    font-size: .95rem;
    line-height: 1.75;
    padding: 1rem 1.25rem 1.25rem;
}


/* ---------------------------------------------------------------------------
   Parallax Section
   --------------------------------------------------------------------------- */
.parallax-section {
    position: relative;
    height: 50vh; min-height: 300px;
    overflow: hidden;
}
.parallax-section img {
    position: absolute;
    inset: -20% 0;
    width: 100%; height: 140%;
    object-fit: cover;
    will-change: transform;
}
.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--color-bg-dark) 0%,
        rgba(26, 35, 50, .25) 40%,
        rgba(26, 35, 50, .25) 60%,
        var(--color-bg-dark) 100%
    );
}


/* ---------------------------------------------------------------------------
   Contact Section
   --------------------------------------------------------------------------- */
.contact-info-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 2rem;
}
.contact-info-item {
    display: flex; align-items: flex-start; gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-info-item:last-child { margin-bottom: 0; }
.contact-info-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(245, 147, 0, .1);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--color-accent); flex-shrink: 0;
}
.contact-info-item h5 { font-size: .95rem; margin-bottom: .15rem; }
.contact-info-item p  { color: var(--color-text-muted); font-size: .9rem; margin: 0; }

/* Form (Bootstrap dark overrides) */
.form-control, .form-select {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-white);
    border-radius: 10px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus, .form-select:focus {
    background: var(--color-bg-elevated);
    border-color: var(--color-accent);
    color: var(--color-white);
    box-shadow: 0 0 0 3px rgba(245, 147, 0, .15);
}
.form-control::placeholder { color: var(--color-text-muted); }

.form-floating > label { color: var(--color-text-muted); }
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label { color: var(--color-accent); }
.form-floating > textarea.form-control { resize: vertical; }

.form-check-input { background-color: var(--color-bg-elevated); border-color: var(--color-border); }
.form-check-input:checked { background-color: var(--color-accent); border-color: var(--color-accent); }
.form-check-label { color: var(--color-text-muted); font-size: .9rem; }
.form-check-label a { text-decoration: underline; }


/* ---------------------------------------------------------------------------
   Contact Form — Inline Validation
   --------------------------------------------------------------------------- */
.form-error .form-control {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important;
}
.form-check-error .form-check-input {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15) !important;
    background-color: var(--color-bg-elevated);
}
.form-check-error .form-check-label {
    color: #ef4444 !important;
    font-weight: 700 !important;
}
.form-error-msg {
    color: #ef4444;
    font-size: .82rem;
    margin-top: .35rem;
    display: flex;
    align-items: center;
    gap: .3rem;
}


/* ---------------------------------------------------------------------------
   Flash Messages
   --------------------------------------------------------------------------- */
.flash-message { border-radius: 12px; padding: 1rem 1.5rem; font-size: 1rem; margin-bottom: 1.5rem; }
.flash-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.flash-error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }


/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-bg-card);
    border-top: 1px solid var(--color-border);
    padding: 1.5rem 0;
    margin-top: auto;
}
.site-footer a      { color: var(--color-text-muted); font-size: .9rem; }
.site-footer a:hover { color: var(--color-white); }
.footer-copy { color: var(--color-text-muted); font-size: .85rem; }
.footer-sep  { color: rgba(255,255,255,.2); margin: 0 .5rem; }
.footer-logo { opacity: .55; transition: opacity var(--transition-fast); display: block; }
.footer-logo:hover { opacity: 1; }


/* ---------------------------------------------------------------------------
   Legal Pages
   --------------------------------------------------------------------------- */
.legal-content {
    max-width: 820px; margin: 0 auto;
    padding: var(--section-py) 1rem;
}
.legal-content h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 2rem; }
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: .75rem; color: var(--color-accent); }
.legal-content h3 { color: var(--color-text); }
.legal-content p, .legal-content li { color: var(--color-text-muted); line-height: 1.8; }
.legal-content ul  { padding-left: 1.5rem; }
.legal-content a   { text-decoration: underline; }


/* ---------------------------------------------------------------------------
   Error Page
   --------------------------------------------------------------------------- */
.error-page {
    min-height: 75vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 4rem 1rem;
}
.error-code {
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 800;
    font-family: var(--font-heading);
    background: var(--gradient-accent);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1; margin-bottom: .75rem;
}
.error-message { color: var(--color-text-muted); max-width: 500px; margin: 0 auto; }


/* ---------------------------------------------------------------------------
   GSAP — Elemente starten versteckt, JS macht sie sichtbar
   --------------------------------------------------------------------------- */
.gs-reveal {
    opacity: 0;
    transform: translateY(40px);
    will-change: transform, opacity;
}


/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
    .hero { padding: 4rem 1.25rem 3.5rem; }
    .hero h1 { font-size: clamp(1.75rem, 8vw, 2.4rem); }
    /* Hero-Subtitle auf Mobile etwas kompakter */
    .hero-subtitle { font-size: .95rem; }
    .partner-card { flex: 0 0 155px; }
    .section { padding: 3rem 0; }
    .legal-content { padding: 3rem 1rem; }
    .security-cta-banner { padding: 1.5rem; }
    .security-cta-banner .text-lg-end { text-align: left !important; }
}

@media (max-width: 575.98px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 290px; }
    .trust-bar .row { gap: 0; }
}

/* Reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    .hero-scroll-indicator { animation: none; }
    .gs-reveal { opacity: 1; transform: none; }
    .hero-logo, .hero h1, .hero-subtitle, .hero-cta, .hero-scroll-indicator { opacity: 1; }
    * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
