/* =============================================================
   round360 | style.css  –  v3
   Bootstrap 5.3.8 Grid + eigene Nav/Cards
   ============================================================= */

/* ── Design Tokens ───────────────────────────────────────────── */
:root {
    --bg:         #090f1e;
    --bg-card:    #0d1a30;
    --bg-nav:     rgba(9, 15, 30, 0.94);
    --border:     #162240;
    --blue:       #3b82f6;
    --blue-dk:    #2563eb;
    --blue-glow:  rgba(59, 130, 246, 0.15);
    --muted:      #6b89a8;
    --light:      #b8cee4;
    --font:       'Inter', system-ui, -apple-system, sans-serif;
    --nav-h:      68px;
}

/* ── Reset & Base (ersetzt Bootstrap) ────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    font-size: 120%; /* Basis: ~19.2px → alle rem-Werte +0.2rem */
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font);
    background: var(--bg);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select {
    font: inherit;
    color: inherit;
    border: none;
    background: none;
}
button { cursor: pointer; }

/* ── Preloader ───────────────────────────────────────────────── */
#preloader {
    position: fixed; inset: 0;
    background: var(--bg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 9999;
    transition: opacity 0.45s ease;
}
#preloader.hidden { opacity: 0; pointer-events: none; }

.loader-ring {
    width: 46px; height: 46px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}
.loader-text { color: var(--muted); font-size: 0.78rem; margin-top: 0.9rem; }
@keyframes spin { to { transform: rotate(360deg); } }


/* ══════════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════════ */
#main-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.3s ease;
}
#main-nav.scrolled {
    background: var(--bg-nav);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Inner wrapper */
.nav-inner {
    width: 100%;
    max-width: 1420px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Brand */
.nav-brand {
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    font-style: italic;
    color: #fff;
    flex-shrink: 0;
    line-height: 1;
}
.nav-brand span { color: var(--blue); }

/* Desktop links – immer versteckt (Burger always active) */
.nav-links {
    display: none;
}

/* Kontakt-Button */
.nav-cta {
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.5rem 1.3rem;
    background: var(--blue);
    color: #fff !important;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-dk); }

/* ── Burger Button – nur auf Mobile sichtbar ─────────────────── */
.nav-burger {
    display: flex;                 /* immer sichtbar */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.nav-burger span {
    display: block;
    width: 22px; height: 2px;
    background: rgba(255,255,255,0.85);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}
/* Burger → X animation */
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Burger-Wrapper: Anker für das Dropdown ──────────────────── */
.nav-burger-wrap {
    position: relative;
    flex-shrink: 0;
    display: block;                /* immer sichtbar */
}

/* ── Mobile Menu – direkt unter dem Burger (absolute) ───────── */
#mobile-menu {
    /* Anfangszustand: eingeklappt */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.22s ease;

    /* Positionierung: direkt unter .nav-burger-wrap */
    position: absolute;
    top: calc(100% + 8px);  /* 8px Abstand unter dem Burger */
    right: 0;               /* rechtsbündig zum Burger */
    left: auto;
    width: 240px;

    background: rgba(9, 15, 30, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    z-index: 999;
    transform-origin: top right;
}
/* Aufgeklappt */
#mobile-menu.open {
    max-height: 320px;      /* groß genug für alle Links */
    opacity: 1;
    pointer-events: auto;
}

.mobile-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding: 0.4rem 0;
}
.mobile-links li { border-bottom: 1px solid var(--border); }
.mobile-links li:last-child { border-bottom: none; }
.mobile-links a {
    display: block;
    padding: 0.75rem 1.4rem;
    font-size: 17px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.18s, background 0.18s;
}
.mobile-links a:hover {
    color: var(--blue);
    background: rgba(59, 130, 246, 0.07);
}
.mobile-links .nav-cta {
    display: block;
    margin: 0.8rem 1.1rem;
    padding: 0.55rem 1rem;
    font-size: 17px;
    text-align: center;
    border-radius: 8px;
}




/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
#hero {
    position: relative;
    width: 100%; height: 100vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
#hero-canvas {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    filter: brightness(0.52);
    z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(9,15,30,0.30) 0%,
        rgba(9,15,30,0.82) 100%);
    z-index: 1;
}
.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    padding: 0 2rem;
    width: 100%; max-width: 1400px;
}
@media (max-width: 768px) {
    .hero-content {
        padding-top: 5rem;
    }
    .hero-headline {
        font-size: clamp(0.9rem, 4.5vw, 1.4rem); /* deutlich kleiner auf Mobile */
    }
    .hero-headline .hero-line1 {
        white-space: normal; /* Umbruch erlauben auf Mobile */
    }
	
	.section-label {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
}
.hero-headline {
    font-size: clamp(1.4rem, 5.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.hero-headline span { color: var(--blue); }

/* Zeile 1: niemals umbrechen */
.hero-headline .hero-line1 {
    white-space: nowrap;
    display: inline-block;
    color: #ffffff;
}

.hero-lead {
    font-size: clamp(1rem, 2.2vw, 1.45rem);
    font-weight: 300;
    color: var(--light);
    line-height: 1.65;
    max-width: 650px;
    margin: 0 auto 2.5rem;
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    justify-content: center;
}
.btn-hero-primary {
    display: inline-block;
    padding: 1rem 2.6rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: #fff;
    color: #090f1e;
    border: 2px solid #fff;
    border-radius: 3px;
    transition: background 0.22s, color 0.22s, border-color 0.22s;
}
.btn-hero-primary:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}
.btn-hero-outline {
    display: inline-block;
    padding: 1rem 2.6rem;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.65);
    border-radius: 3px;
    transition: background 0.22s, border-color 0.22s;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: #fff;
}


/* ══════════════════════════════════════════════════════════════
   SERVICES SECTION
══════════════════════════════════════════════════════════════ */
#services {
    background: var(--bg);
    padding: 5rem 1.5rem 6rem;
}

/* Centered content column – NOT full-width */
.services-inner {
    max-width: 1420px;
    margin: 0 auto;
}

.section-label {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
	.section-label {
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
}
.section-accent {
    width: 2.75rem;
    height: 4px;
    background: var(--blue);
    border-radius: 2px;
    margin-bottom: 3rem;
}

/* Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .cards-grid { grid-template-columns: 1fr; }
}

/* Individual card */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    padding: 1.75rem 1.5rem;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0,0,0,0.4);
}

.service-icon {
    width: 2.5rem; height: 2.5rem;
    background: var(--blue-glow);
    color: var(--blue);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.65rem;
}
.service-card p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--muted);
}


/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.5rem;   /* horizontaler Abstand = nav-inner padding */
}

/* Innerer Wrapper: gleiche Breite wie nav-inner */
.footer-inner {
    max-width: 1420px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
}

/* Impressum & Datenschutz Links im Footer */
.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.footer-links a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }

@media (max-width: 600px) {
    .footer-inner { justify-content: center; text-align: center; }
}
