/*
 * ETT EDV Mannheim – Stylesheet
 * - keine externen Schriften (DSGVO: keine Verbindung zu Google-Servern)
 * - responsive ohne JavaScript, Fokus-Stile, reduzierte Bewegung
 */

:root {
    --primary-dark: #0a192f;
    --secondary-dark: #172a45;
    --accent: #64ffda;
    --secondary-accent: #009add;
    --text: #ccd6f6;
    --white: #ffffff;
    --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
    margin: 0;
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    background: var(--primary-dark);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: var(--accent);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 2000;
}
.skip-link:focus { left: 8px; text-decoration: none; }

/* ---------- Header / Navigation ---------- */
header {
    position: sticky;
    top: 0;
    background: rgba(10, 25, 47, 0.92);
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 24px;
}

.logo { display: flex; align-items: center; color: var(--white); }
.logo:hover { text-decoration: none; }

.logo-icon {
    width: 40px;
    height: 40px;
    flex: none;
    background: linear-gradient(135deg, var(--accent), var(--secondary-accent));
    margin-right: 10px;
    border-radius: 5px;
    position: relative;
}
.logo-icon::after {
    content: "";
    position: absolute;
    inset: 6px;
    border: 2px solid var(--primary-dark);
    border-radius: 3px;
}

.logo-text { font-size: 1.35rem; font-weight: 700; color: var(--white); }

nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav li a { color: var(--text); font-weight: 600; padding: 6px 2px; display: inline-block; border-bottom: 2px solid transparent; transition: color .3s, border-color .3s; }
nav li a:hover { color: var(--accent); text-decoration: none; }
nav li a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */
.hero, .page-hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.hero { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
.page-hero { min-height: 280px; padding: 3rem 0; }

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(10, 25, 47, 0.8); z-index: -1; }
.page-hero .hero-overlay { background: linear-gradient(135deg, rgba(0, 154, 221, .18), rgba(10, 25, 47, 0) 60%), var(--primary-dark); }

.hero-content { max-width: 760px; padding: 20px; }
.hero-content h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.2; margin-bottom: 1rem; }
.hero-content p { font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 2rem; }
.page-hero .hero-content p { margin-bottom: 0; }

/* ---------- Trenner ---------- */
.angle-separator {
    display: block;
    width: 100%;
    height: 80px;
    background: var(--secondary-dark);
    clip-path: polygon(0 0, 100% 100%, 0 100%);
}

/* ---------- Leistungen ---------- */
.services-section { background: var(--secondary-dark); padding: 4rem 1.25rem; text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 2rem; color: var(--white); }

.services-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; max-width: 1200px; margin: 0 auto; }

.service-card {
    background: var(--primary-dark);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    padding: 2rem;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 8px 24px rgba(100, 255, 218, 0.4); }
.service-card h3 { font-size: 1.5rem; margin-bottom: .5rem; color: var(--white); }
.service-card p { margin-bottom: 1.5rem; flex-grow: 1; }
.service-card svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1rem; flex-shrink: 0; }
.service-card .btn { margin-top: auto; }

/* ---------- Inhalt Unterseiten ---------- */
.page-content-section { padding: 3rem 1.25rem 4rem; max-width: 900px; margin: 0 auto; }
.page-content-section h2 { font-size: 1.6rem; margin: 2.2rem 0 .8rem; color: var(--white); }
.page-content-section h2:first-child { margin-top: 0; }
.page-content-section p { margin-bottom: 1rem; }
.page-content-section ul { margin: 0 0 1rem 1.25rem; }
.page-content-section li { margin-bottom: .4rem; }

.cta-box {
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    background: var(--secondary-dark);
    border: 1px solid rgba(100, 255, 218, 0.15);
    border-radius: 8px;
}
.cta-box p { margin-bottom: 1.25rem; font-size: 1.1rem; color: var(--white); }

/* ---------- Kontakt ---------- */
.contact-section { background: var(--secondary-dark); padding: 4rem 1.25rem; text-align: center; }
.contact-section h2 { font-size: 2rem; margin-bottom: 1rem; color: var(--white); }
.contact-section .lead { max-width: 600px; margin: 0 auto; }
.contact-email { margin-top: 20px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--accent);
    border-radius: 30px;
    color: var(--accent);
    font-weight: 600;
    transition: .3s;
}
.btn:hover { background: var(--accent); color: var(--primary-dark); text-decoration: none; }

/* ---------- Footer ---------- */
footer { background: var(--primary-dark); padding: 2rem 1.25rem; text-align: center; }
footer p { margin: .5rem 0; font-size: .9rem; }
footer a { margin: 0 .6rem; }

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
    header { position: static; }  /* mehrzeilige Navigation soll auf dem Handy nicht den Bildschirm verdecken */
    html { scroll-padding-top: 0; }
    .hero { min-height: 80vh; }
    nav { justify-content: center; }
    .logo-text { font-size: 1.15rem; }
    nav ul { justify-content: center; gap: 2px 14px; }
    .angle-separator { height: 40px; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
    .service-card:hover { transform: none; }
}
