/* ────────────────────────────────────────
   KiTrinity Design System — Shared Styles
   Alle Unterseiten binden diese Datei ein.
   ──────────────────────────────────────── */

/* ── Variables ── */
:root {
    --ocean-deep:        #0c182b;
    --ocean-dark:        #00224d;
    --ocean-mid:         #002d63;
    --ocean-blue:        #1e90ff;
    --ocean-light:       #4da8ff;
    --ocean-glow:        rgba(30,144,255,0.15);
    --ocean-glow-strong: rgba(30,144,255,0.30);
    --text-primary:      #ffffff;
    --text-secondary:    #8aa4c4;
    --text-dim:          #506882;
    --surface:           rgba(12,24,43,0.50);
    --border:            rgba(30,144,255,0.12);
}

/* ── Reset ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Body ── */
body {
    background: var(--ocean-deep);
    color: var(--text-primary);
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Noise overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ── Navigation ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(12,24,43,0.97) 0%, rgba(12,24,43,0.85) 60%, transparent 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-brand img { height: auto; width: auto; flex-shrink: 0; }
.nav-brand .nav-icon { height: 52px; }
.nav-brand .nav-wordmark { height: 52px; }

.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: .82rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase; transition: color .25s; }
.nav-links a:hover { color: var(--ocean-light); }

.lang-toggle { display: flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.lang-btn { display: block; padding: .35rem .7rem; font-family: 'Raleway', sans-serif; font-size: .75rem; font-weight: 500; letter-spacing: .06em; text-decoration: none; transition: all .25s; }
.lang-btn.active { background: var(--ocean-glow-strong); color: var(--ocean-light); }
.lang-btn:not(.active) { background: transparent; color: var(--text-dim); }
.lang-btn:hover:not(.active) { color: var(--text-secondary); }

/* ── Section Utilities ── */
.section-label { font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ocean-blue); margin-bottom: 1.5rem; }
.section-title { font-family: 'Nunito', sans-serif; font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 300; color: var(--text-primary); margin-bottom: 1.25rem; }
.section-text { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.85; }

/* ── CTA ── */
.cta-section { text-align: center; padding: 5rem 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.cta-btn {
    display: inline-flex; align-items: center; gap: .6rem;
    background: var(--ocean-blue); color: var(--ocean-deep);
    text-decoration: none; font-family: 'Raleway', sans-serif;
    font-size: .9rem; font-weight: 600; letter-spacing: .04em;
    padding: .9rem 2rem; border-radius: 8px;
    transition: all .3s; border: 1px solid transparent;
}
.cta-btn:hover { background: var(--ocean-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,144,255,0.25); }
.cta-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.cta-btn-secondary { background: transparent; color: var(--ocean-light); border-color: rgba(30,144,255,0.4); }
.cta-btn-secondary:hover { background: var(--ocean-glow); border-color: var(--ocean-blue); color: var(--text-primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,144,255,0.15); }
.cta-sub { margin-top: .75rem; font-size: .8rem; color: var(--text-dim); }
.cta-sub a { color: var(--ocean-blue); text-decoration: none; }

/* ── Footer ── */
footer { margin-top: auto; padding: 3rem; text-align: center; border-top: 1px solid var(--border); }
.footer-brand { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-bottom: .75rem; }
.footer-brand img { height: 120px; width: auto; flex-shrink: 0; }
.footer-brand span { font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 300; color: var(--ocean-blue); }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: .8rem; transition: color .25s; }
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: .75rem; color: var(--text-dim); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

/* ── Responsive ── */
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    footer { padding: 1.5rem; flex-direction: column; }
}
