/* =============================================================
   DatenWeitblick – Stylesheet
   Schrift: Montserrat (SIL Open Font License 1.1), lokal eingebunden,
   damit beim Seitenaufruf keine Verbindung zu Google-Servern entsteht.
   Lizenztext: licenses/OFL-Montserrat.txt, Übersicht: lizenzen.html
   ============================================================= */

@font-face {
    font-family: "Montserrat";
    src: url("fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* ---------- Farben und Maße (hier zentral anpassen) ---------- */
:root {
    --navy: #0D2846;
    --navy-2: #16406a;
    --primary: #149DB5;
    --primary-hover: #0f8aa0;
    --mint: #3CC7A8;
    --text: #1f2a37;
    --muted: #5a6b7d;
    --line: #e1e8ee;
    --surface: #ffffff;
    --tint: #f2f7fa;

    --radius: 16px;
    --shadow: 0 10px 30px rgba(13, 40, 70, .08);
    --shadow-hover: 0 18px 40px rgba(13, 40, 70, .14);
    --header-height: 76px;
    --wrap: 1180px;
}

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

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Anker-Sprünge nicht unter der fixierten Kopfzeile verstecken */
    scroll-padding-top: calc(var(--header-height) + 12px);
}

body {
    font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    /* iOS/Android sollen Schrift im Querformat nicht eigenmächtig vergrößern */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary);
}

h1,
h2,
h3,
h4 {
    color: var(--navy);
    line-height: 1.2;
    font-weight: 700;
}

.wrap {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 2000;
    padding: 10px 16px;
    background: var(--navy);
    color: #fff;
    border-radius: 8px;
}

.skip-link:focus {
    top: 12px;
}

:focus-visible {
    outline: 3px solid var(--mint);
    outline-offset: 3px;
}

.icon {
    width: 24px;
    height: 24px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Buttons ---------- */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: 2px solid var(--primary);
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s, transform .2s;
}

.button:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, .45);
}

.button-ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
}

.button-small {
    padding: 9px 20px;
    font-size: .95rem;
}

/* ---------- Kopfzeile ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Deckend weiß, weil das Logo einen weißen (nicht transparenten) Hintergrund hat */
    background: #fff;
    border-bottom: 1px solid transparent;
    transition: border-color .2s, box-shadow .2s;
}

.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 20px rgba(13, 40, 70, .06);
}

.header-inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand img {
    height: 52px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.main-nav a:not(.button) {
    position: relative;
    color: var(--navy);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
}

.main-nav a:not(.button)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform .2s;
}

.main-nav a:not(.button):hover::after,
.main-nav a.is-active::after {
    transform: scaleX(1);
}

.main-nav .button {
    color: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--tint);
    cursor: pointer;
}

/* Drei Striche aus einem Element plus Pseudo-Elementen */
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}

.nav-toggle-bar {
    position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(900px 500px at 85% 20%, rgba(20, 157, 181, .35), transparent 60%),
        radial-gradient(700px 400px at 10% 100%, rgba(60, 199, 168, .18), transparent 60%),
        linear-gradient(160deg, #0D2846 0%, #0a1f38 100%);
}

/* Dezentes Punktraster als Hintergrundtextur */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, #000 30%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 56px;
    padding-top: 96px;
    padding-bottom: 104px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 22px;
}

.hero .accent {
    background: linear-gradient(90deg, #3CC7C8, var(--mint));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    font-size: 1.12rem;
    color: #cfe0ee;
    max-width: 580px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-points {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    font-size: .92rem;
    color: #cfe0ee;
}

.hero-points li {
    position: relative;
    padding-left: 24px;
}

.hero-points li::before,
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .3em;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23062a24' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.hero-visual svg {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35));
}

.hero-visual text {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

/* ---------- Abschnitte allgemein ---------- */
.section {
    padding: 104px 0;
}

.section-tint {
    background: var(--tint);
}

.section-dark {
    background: linear-gradient(160deg, #0D2846, #0a1f38);
    color: #cfe0ee;
}

.section-dark h2 {
    color: #fff;
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.section h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -.015em;
    margin-bottom: 18px;
}

.section-head p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.05rem;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
}

.eyebrow-light {
    color: var(--mint);
}

/* ---------- Leistungen ---------- */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.service {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
}

.service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.service-visual {
    padding: 22px 22px 0;
    background: linear-gradient(180deg, var(--tint), var(--surface));
}

.service-visual svg {
    width: 100%;
    height: auto;
}

.service-visual text {
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.service-body {
    padding: 28px 32px 34px;
}

.service h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.service-body > p {
    color: var(--muted);
    margin-bottom: 20px;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 10px;
}

.checklist li {
    position: relative;
    padding-left: 28px;
}

.checklist li::before {
    top: .35em;
}

.subhead {
    margin: 72px 0 24px;
    font-size: 1.25rem;
    text-align: center;
}

.extras {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.extra {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--tint);
    border: 1px solid transparent;
    transition: border-color .2s, background .2s;
}

.extra:hover {
    background: var(--surface);
    border-color: var(--line);
}

.extra .icon {
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: var(--navy);
    color: var(--mint);
}

.extra h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.extra p {
    color: var(--muted);
    font-size: .95rem;
}

/* ---------- Datenhoheit ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.split p + p {
    margin-top: 14px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 16px;
}

.feature-list li {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .1);
}

.feature-list .icon {
    width: 28px;
    height: 28px;
    color: var(--mint);
}

.feature-list strong {
    display: block;
    color: #fff;
    margin-bottom: 2px;
}

.feature-list span {
    font-size: .95rem;
}

/* ---------- Vorgehen ---------- */
.steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.step {
    position: relative;
    padding: 30px 26px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

/* Verbindungslinie zwischen den Phasen (nur Desktop) */
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 52px;
    right: -23px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--mint));
}

.step-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--mint));
    color: #fff;
    font-weight: 800;
}

.step h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
}

.step p {
    color: var(--muted);
    font-size: .95rem;
}

.steps-note {
    margin-top: 32px;
    text-align: center;
    color: var(--muted);
}

/* ---------- Über mich ---------- */
.about {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: center;
}

.about-card {
    padding: 40px 32px;
    text-align: center;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.avatar {
    display: grid;
    place-items: center;
    width: 120px;
    height: 120px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--primary));
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.about-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.1rem;
}

.about-role,
.about-location {
    color: var(--muted);
    font-size: .92rem;
}

.about-location {
    margin-top: 6px;
}

.about-text p:not(.eyebrow) {
    margin-bottom: 14px;
}

.values {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.values li {
    padding: 14px 18px;
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    background: var(--surface);
    color: var(--muted);
}

.values strong {
    display: block;
    color: var(--navy);
}

/* ---------- Kontakt ---------- */
.contact-box {
    max-width: calc(var(--wrap) - 48px);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 56px;
    border-radius: 28px;
    color: #cfe0ee;
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(20, 157, 181, .4), transparent 70%),
        linear-gradient(160deg, #0D2846, #0a1f38);
}

.contact-box h2 {
    color: #fff;
}

.contact-actions {
    display: grid;
    gap: 14px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-radius: var(--radius);
    background: #fff;
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: transform .2s, box-shadow .2s;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.contact-link .icon {
    color: var(--primary);
}

.contact-link small {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.contact-privacy {
    font-size: .85rem;
}

.contact-privacy a {
    display: inline-block;
    padding: 6px 0;
    color: var(--mint);
}

/* ---------- Fußzeile ---------- */
.site-footer {
    background: var(--navy);
    color: #b9cbdb;
    font-size: .92rem;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer-links a {
    /* Mindesthöhe für bequemes Antippen am Smartphone */
    display: inline-block;
    padding: 10px 0;
    color: #3CC7C8;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* ---------- Einblend-Animation beim Scrollen ----------
   Nur aktiv, wenn JavaScript läuft (Klasse "js" am <html>),
   damit Inhalte ohne JavaScript immer sichtbar bleiben. */
.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { transition: none !important; }
}

/* =============================================================
   Inhaltsseiten (Impressum, Datenschutz, Lizenzhinweise)
   ============================================================= */
.page {
    background: var(--tint);
    padding: 72px 16px;
    min-height: calc(100vh - 160px);
}

.content {
    max-width: 920px;
    margin: 0 auto;
    padding: 56px;
    background: var(--surface);
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow-wrap: break-word;
    /* Lange deutsche Komposita auf schmalen Bildschirmen sauber trennen */
    hyphens: auto;
    -webkit-hyphens: auto;
}

.content h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary);
}

.content h2 {
    color: var(--primary);
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 14px;
}

.content h3 {
    font-size: 1.1rem;
    margin-top: 26px;
    margin-bottom: 10px;
}

.content p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.content ul {
    margin: 16px 0 20px 24px;
}

.content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.content strong {
    color: var(--navy);
}

.content a {
    color: var(--primary);
    text-decoration: none;
}

.content a:hover {
    text-decoration: underline;
}

.content hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 36px 0;
}

.license-text {
    max-height: 420px;
    overflow: auto;
    padding: 20px;
    border-radius: 12px;
    background: var(--tint);
    font-family: Consolas, "Courier New", monospace;
    font-size: .82rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1060px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .step:not(:last-child)::after {
        display: none;
    }

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

@media (max-width: 920px) {
    :root {
        --header-height: 68px;
    }

    .wrap {
        padding: 0 16px;
    }

    .brand img {
        height: 44px;
    }

    .nav-toggle {
        display: block;
    }

    /* Mobiles Menü: klappt unter der Kopfzeile auf */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 20px;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(13, 40, 70, .1);
        display: none;
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a:not(.button) {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
    }

    .main-nav a:not(.button)::after {
        display: none;
    }

    .main-nav .button {
        margin-top: 16px;
    }

    .hero-inner,
    .services,
    .split,
    .about,
    .contact-box {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        gap: 40px;
        padding-top: 64px;
        padding-bottom: 72px;
    }

    .hero-visual {
        max-width: 520px;
    }

    .section {
        padding: 72px 0;
    }

    .split,
    .about {
        gap: 36px;
    }

    .about-card {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }

    .contact-box {
        max-width: none;
        gap: 32px;
        padding: 36px 22px;
        border-radius: 0;
    }

    .content {
        padding: 32px 20px;
    }
}

@media (max-width: 600px) {
    p,
    li,
    h1,
    h2,
    h3 {
        hyphens: auto;
        -webkit-hyphens: auto;
    }

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

    .service-body {
        padding: 22px 20px 26px;
    }

    .service h3 {
        font-size: 1.25rem;
    }

    .lead {
        font-size: 1.02rem;
    }

    .section-head {
        margin-bottom: 40px;
    }

    .hero-actions .button {
        flex: 1 1 100%;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}
