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

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

:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.35);
    --blue: #0f172a;          /* DUNKLES BLAU-GRAU / HALTUNG */
    --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);

    /* EIN EINZIGER ZEILENABSTANDS-WERT FÜR KLEINE TEXTE */
    --lh-small: 1.22;
}

body {
    margin: 0;
    font-family: "Switzer", system-ui, sans-serif;
    font-weight: 400;
    font-size: 18px;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headlines */
h1, h2, h3 {
    font-family: "Switzer", system-ui, sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.02;
    margin: 0;
    font-weight: 600;
}

h2 { letter-spacing: -0.02em; }
h3 { letter-spacing: -0.01em; }

/* =========
   Header / Navigation
   ========= */

.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;
}

.main-nav {
    display: flex;
    gap: 2rem;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

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

.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 Menü */
.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 {
    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;
}

/* Page Header (Angebot/Referenzen/Kontakt) */
.page-header {
    padding: 2.4rem 0 1.8rem;
}

.page-header h1 {
    font-size: clamp(2.2rem, 3vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 0.6rem;
    font-weight: 600;
}

.page-header p {
    font-size: 1.1rem;
    max-width: 900px;
    color: var(--muted);
    line-height: var(--lh-small);
}

.page-header + .section-cards {
    margin-top: 2.8rem;
}

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

.hero-text h1 {
    font-size: clamp(2.8rem, 4.6vw, 4.2rem);
    line-height: 1.0;
    letter-spacing: -0.035em;
    font-weight: 600;
    margin: 0 0 1.1rem;
}

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

.hero-video-frame {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.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;
}

.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.9rem, 2.6vw, 2.3rem);
    margin: 0 0 1.75rem;
    letter-spacing: -0.025em;
    font-weight: 600;
}

.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.12rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

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

/* Accent Section (Blauer Block) */
.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(2.0rem, 2.9vw, 2.5rem);
    margin-top: 0;
    margin-bottom: 1.8rem;
    letter-spacing: -0.03em;
    font-weight: 600;
}

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

.accent-section .card-grid .card h3 {
    color: var(--text);
}

.accent-section .card-grid .card p {
    color: var(--muted);
    line-height: var(--lh-small);
}

/* CTA Row */
.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;
    line-height: var(--lh-small);
}

/* 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
   ========= */

.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(2.1rem, 3vw, 2.6rem);
    letter-spacing: -0.03em;
    font-weight: 600;
}

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

.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;
    letter-spacing: -0.005em;
}

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;
    font-family: "Switzer", system-ui, sans-serif;
    line-height: 1.4;
}

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;
    resize: vertical;
}

/* Form Actions */
.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(15, 23, 42, 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(15, 23, 42, 0.45);
}

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

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

.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; }

    .hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

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

    .hero-text h1 {
        font-size: clamp(2.2rem, 8vw, 3.0rem);
        letter-spacing: -0.03em;
        font-weight: 600;
    }
}

/* ===========================================
   PAGE-HOME – Hero: Text oben, Video full-width
   =========================================== */

.page-home .hero {
    grid-template-columns: 1fr !important;
}

.page-home .hero-video-frame {
    margin-left: -7vw !important;
    margin-right: -7vw !important;
    display: block !important;
    width: calc(100% + 14vw) !important;
}

.page-home .hero-video-frame .video-card {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    width: 100% !important;
}

.page-home .hero-video-frame .video-aspect,
.page-home .hero-video-frame .video-aspect video {
    border-radius: 0 !important;
}

/* ===========================================
   PAGE-REFERENZEN – Videos full-width ohne Rahmen
   =========================================== */

.page-referenzen .page-main {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.page-referenzen .section-inner {
    padding-left: 7vw !important;
    padding-right: 7vw !important;
}

.page-referenzen .section-cards .hero-video-frame {
    margin-left: -7vw !important;
    margin-right: -7vw !important;
    display: block !important;
    width: calc(100% + 14vw) !important;
}

.page-referenzen .video-card {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    max-width: none !important;
    width: 100% !important;
}

.page-referenzen .video-aspect,
.page-referenzen .video-aspect video {
    border-radius: 0 !important;
}
