/* =========
   Basis
   ========= */

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

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.35);
    --blue: #2563EB;          /* DEIN BLAU */
    --blue-soft: #dbeafe;
    --radius: 1.5rem;
    --radius-soft: 1.2rem;
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 18px 45px rgba(15, 23, 42, 0.12);
    font-synthesis: style;
    text-rendering: geometricPrecision;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* =========
   Header / Navigation (WEB = normale Leiste, MOBILE = Burger)
   ========= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.15rem 7vw;
    background: var(--blue);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.logo {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

/* Desktop Navigation sichtbar */
.main-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.98rem;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.1rem;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a.active {
    color: #ffffff;
    font-weight: 600;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.35rem;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
}

/* Burger Button (mobile only) */
.burger {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
}

.burger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: transform 0.2s ease;
}

.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 28px; }

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    z-index: 20;
}

.mobile-menu-panel {
    position: absolute;
    top: 72px;
    right: 7vw;
    width: min(320px, 86vw);
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 1.4rem;
    box-shadow: var(--shadow-strong);
    display: grid;
    gap: 1rem;
}

.mobile-menu-panel a {
    text-decoration: none;
    color: var(--text);
    font-weight: 550;
}

.mobile-menu-panel a.active {
    color: var(--blue);
}

.mobile-menu-cta {
    margin-top: 0.4rem;
}

/* =========
   Layout / Sektionen
   ========= */

.page-main {
    padding: 3.2rem 7vw 4rem;
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

/* Hero (gestapelt) */
.hero {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
    margin-bottom: 4rem;
}

.hero-text p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 3.2vw, 3.2rem);
    line-height: 1.05;
    margin: 0 0 1rem;
}

.hero-video-frame {
    display: flex;
    justify-content: flex-start;
}

.video-card {
    background: radial-gradient(circle at 10% 0%, #dbeafe, #eff6ff 40%, #ffffff 100%);
    border-radius: 1.75rem;
    padding: 0.9rem;
    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.16),
        0 0 0 1px rgba(148, 163, 184, 0.4);
    width: 100%;
    max-width: 700px; /* ca. 30% größer */
}

.video-aspect {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #0f172a;
}

.video-aspect video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.15rem;
}

/* Cards */
.section-cards {
    margin-bottom: 4rem;
}

.section-cards h2 {
    font-size: clamp(1.6rem, 2.2vw, 2rem);
    margin: 0 0 1.75rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.6rem 1.55rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.28);
}

.card h3 {
    margin: 0 0 0.6rem;
    font-size: 1.1rem;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

/* Accent Section */
.accent-section {
    background: var(--blue);
    color: #ffffff;
    border-radius: 2.25rem;
    padding: clamp(2.4rem, 4vw, 3.2rem);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-strong);
}

.accent-section h2 {
    font-size: clamp(1.7rem, 2.4vw, 2.2rem);
    margin-top: 0;
    margin-bottom: 1.8rem;
}

.accent-section .card-grid .card {
    background: #ffffff;
    color: var(--text);
}

/* CTA unter den 3 Schritten: Button + Note drunter, zentriert */
.cta-row {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.form-note {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--blue);
    text-decoration: none;
    font-weight: 650;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.22);
}

/* =========
   Formulare (Kontakt + Fragebogen)
   ========= */

.form-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 3vw, 2.2rem);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.28);
    max-width: 860px;
    margin: 0 auto;
}

.form-card h1 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: clamp(1.9rem, 2.6vw, 2.3rem);
}

.form-card p {
    margin-top: 0;
    margin-bottom: 1.6rem;
    color: var(--muted);
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    gap: 0.5rem;
}

.form-row.full {
    grid-column: 1 / -1;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 0.9rem;
    padding: 0.85rem 0.95rem;
    font-size: 1rem;
    color: var(--text);
    outline: none;
}

select {
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #64748b 50%),
        linear-gradient(135deg, #64748b 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(1.1em + 2px),
        calc(100% - 12px) calc(1.1em + 2px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 2.2rem;
    cursor: pointer;
}

textarea {
    min-height: 160px; /* groß genug */
    resize: vertical;
    line-height: 1.5;
}

.form-actions {
    grid-column: 1 / -1;
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-start;
}

.form-actions button {
    border: none;
    cursor: pointer;
    padding: 0.95rem 1.5rem;
    border-radius: 999px;
    background: var(--blue);
    color: #ffffff;
    font-weight: 650;
    font-size: 1rem;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.45);
}

/* =========
   Footer
   ========= */

.site-footer {
    padding: 2rem 7vw;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

.site-footer .footer-link {
    color: var(--muted);
    text-decoration: none;
}

.site-footer .footer-link:hover {
    color: var(--text);
}

/* =========
   Responsive
   ========= */

@media (max-width: 980px) {
    .main-nav { display: none; }
    .burger { display: inline-flex; }

    .site-header { padding: 1rem 6vw; }
    .page-main { padding: 2.6rem 6vw 3.5rem; }

    .card-grid { grid-template-columns: 1fr; }

    .form-grid { grid-template-columns: 1fr; }
}
