/* style.css */

html {
    scroll-behavior: smooth;
}

:root {
    --blue: #103d62;
    --orange: #d78729;
    --bg-light: #f5f0e8;
    --bg-section: #eef2f6;
    --text-muted: #556070;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: var(--blue);
    line-height: 1.7;
}

/* ── HEADER ── */
header {
    display: flex;
    align-items: stretch;
    background-color: var(--blue);
    background-image:
        repeating-linear-gradient(
            -52deg,
            transparent 0px,
            transparent 28px,
            rgba(255,255,255,0.045) 28px,
            rgba(255,255,255,0.045) 29px
        ),
        linear-gradient(to right, rgba(0,0,0,0.2) 0%, transparent 45%);
    border-bottom: 4px solid var(--orange);
    box-shadow: 0 4px 28px rgba(0,0,0,0.25);
    min-height: 100px;
}

.header-logo {
    background: #ffffff;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.header-logo::after {
    content: '';
    position: absolute;
    top: 0;
    right: -28px;
    width: 28px;
    height: 100%;
    background: #ffffff;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    z-index: 1;
}

.header-logo img {
    max-width: 130px;
    height: auto;
    display: block;
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: clamp(18px, 2.5vw, 40px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    padding: 26px 44px 26px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-sub {
    display: block;
    font-size: 0.5em;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.6;
    margin-top: 8px;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(22px, 3.5vw, 38px);
    font-weight: 700;
    line-height: 1.25;
}

h2 {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: clamp(22px, 2.8vw, 36px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 32px 0;
    position: relative;
    padding-bottom: 18px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--orange);
    border-radius: 2px;
}

/* Zentrierte H2 (mit Klasse) */
h2.centered::after,
.faq h2::after,
.ablauf h2::after,
.stadtteile h2::after,
.leistungen h2::after,
.kunden h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Linksbündige H2 (Kontakt) */
.kontakt-info h2::after {
    left: 0;
    transform: none;
}

/* ── HERO: side-by-side ── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    grid-template-rows: auto;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 60px;
    min-height: 560px;
    background-color: var(--bg-light);
    position: relative;
    z-index: 1;
}

.hero-content::before {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--orange);
    margin-bottom: 32px;
    flex-shrink: 0;
}

.hero-content p {
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.8;
    color: #2a3d50;
}

.hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    right: -38px;
    width: 60px;
    height: 100%;
    background: var(--bg-light);
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    z-index: 2;
}

.hero-image-wrap {
    position: relative;
    overflow: hidden;
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.hero-image-wrap:hover img {
    transform: scale(1.04);
}

/* ── EINLEITUNG ── */
.einleitung {
    max-width: 800px;
    margin: 0 auto;
    padding: 72px 24px;
}

.einleitung h2::after {
    left: 0;
    transform: none;
}

/* ── LEISTUNGEN: Split-Layout ── */
.leistungen {
    border-bottom: 1px solid #e8e0d4;
}

.leistungen:nth-of-type(odd) {
    background: #ffffff;
}

.leistungen:nth-of-type(even) {
    background: var(--bg-light);
}

.leistungen-inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

.leistungen h2 {
    text-align: left;
    padding: 52px 40px 52px 40px;
    border-right: 1px solid #e8e0d4;
    margin-bottom: 0;
    position: sticky;
    top: 20px;
}

.leistungen h2::after {
    left: 0;
    transform: none;
}

.leistungen-content {
    padding: 52px 44px;
}

.leistungen ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: block;
}

.leistungen li {
    padding: 10px 0;
    border-bottom: 1px solid #ece5da;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.leistungen li:last-child {
    border-bottom: none;
}

.leistungen li::before {
    content: "→";
    color: var(--orange);
    flex-shrink: 0;
    font-weight: 700;
    margin-top: 1px;
}

.leistung-beschreibung {
    display: block;
    font-weight: 400;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 0.93rem;
}

/* ── KUNDEN ── */
.kunden {
    padding: 72px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.kunden ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 8px;
}

.kunden li {
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #ddd8ce;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.kunden li:hover {
    border-color: var(--orange);
    background: var(--bg-light);
}

.kunden li::before {
    content: "✓";
    color: var(--orange);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── STADTTEILE ── */
.stadtteile {
    background-color: var(--bg-light);
    padding: 72px 40px;
}

.stadtteile h2 {
    text-align: center;
    margin-bottom: 40px;
}

.stadtteile ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.stadtteile li {
    flex: 0 0 calc(33.33% - 11px);
    background: #ffffff;
    padding: 20px 20px 20px 52px;
    font-size: 0.93rem;
    box-shadow: 0 1px 4px rgba(16,61,98,0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.stadtteile li::before {
    content: "◉";
    position: absolute;
    left: 18px;
    top: 20px;
    color: var(--orange);
    font-size: 1rem;
    line-height: 1.4;
}

.stadtteile li:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16,61,98,0.12);
}

.stadtteile strong {
    display: block;
    font-weight: 700;
    font-size: 0.97rem;
    margin-bottom: 5px;
    color: var(--blue);
}

/* ── BILD GRUNDRISS ── */
.bild-grundriss {
    text-align: center;
    padding: 16px 0;
    background: #fff;
}
.bild-grundriss img {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* ── BILD DETAIL ── */
.bild-detail img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* ── ABLAUF: horizontale Steps ── */
.ablauf {
    padding: 72px 40px;
    text-align: center;
    background: var(--bg-light);
}

.ablauf h2 {
    margin-bottom: 56px;
}

.ablauf ol {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1000px;
    position: relative;
    counter-reset: ablauf-counter;
}

.ablauf ol::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(to right, var(--orange), rgba(215,135,41,0.2));
    opacity: 0.5;
}

.ablauf li {
    position: relative;
    padding-top: 68px;
    text-align: center;
    font-size: 0.92rem;
}

.ablauf li::before {
    content: counter(ablauf-counter);
    counter-increment: ablauf-counter;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 52px;
    height: 52px;
    background: var(--orange);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(215,135,41,0.4);
}

.ablauf li strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--blue);
}

/* ── FAQ ── */
.faq {
    padding: 72px 40px;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq li {
    background: var(--bg-light);
    padding: 24px 28px;
    border-top: 3px solid transparent;
    font-size: 0.95rem;
    transition: border-top-color 0.2s ease, box-shadow 0.2s ease;
}

.faq li:hover {
    border-top-color: var(--orange);
    box-shadow: 0 4px 16px rgba(16,61,98,0.08);
}

.faq li strong {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
    font-weight: 700;
}

.faq li strong::before {
    content: "F: ";
    color: var(--orange);
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
}

/* ── CTA ── */
.cta {
    padding: 80px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 28px;
}

.btn {
    display: inline-block;
    background-color: var(--orange);
    color: #ffffff;
    padding: 16px 40px;
    border-radius: 2px;
    text-decoration: none;
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #c07820;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(215,135,41,0.35);
}

.hero-btns {
    display: inline-flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 14px;
    margin-top: 28px;
}

.hero-btns .btn {
    width: 100%;
    text-align: center;
}

.btn--call {
    background-color: var(--blue);
    color: #ffffff;
}

.btn--call:hover {
    background-color: #0a2d4a;
    box-shadow: 0 6px 20px rgba(16,61,98,0.35);
}

/* ── KONTAKT ── */
.kontakt {
    background-color: var(--blue);
    color: #ffffff;
    padding: 72px 40px;
}

.kontakt-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.kontakt-info h2 {
    color: #ffffff;
    margin-bottom: 20px;
}

.kontakt-info h2::after {
    background: var(--orange);
}

.kontakt-info p {
    margin: 0 0 20px;
    line-height: 1.85;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Formular */
.kontakt-formular form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kontakt-formular label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 2px;
}

.kontakt-formular input,
.kontakt-formular textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 2px;
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s;
}

.kontakt-formular input::placeholder,
.kontakt-formular textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.kontakt-formular input:focus,
.kontakt-formular textarea:focus {
    outline: none;
    border-color: var(--orange);
    background: rgba(255,255,255,0.12);
}

.kontakt-formular textarea {
    resize: vertical;
}

.kontakt-formular .btn {
    align-self: flex-start;
    margin-top: 6px;
}

.form-success {
    background: rgba(255,255,255,0.12);
    border-left: 4px solid #4caf50;
    padding: 12px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.form-error {
    background: rgba(255,255,255,0.12);
    border-left: 4px solid #f44336;
    padding: 12px 16px;
    border-radius: 2px;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* ── FOOTER ── */
footer {
    background-color: #091f33;
    color: #ffffff;
    text-align: center;
    padding: 24px 24px;
    border-top: 3px solid rgba(215,135,41,0.4);
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-content > p {
    margin: 0 0 10px;
    font-size: 0.87rem;
    opacity: 0.6;
}

.footer-links a {
    color: var(--orange);
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

strong {
    color: var(--orange);
}

/* ── LEGAL PAGES ── */
.legal-header h1 {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: clamp(20px, 2.8vw, 38px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
    margin: 0;
    padding: 24px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.legal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 64px 40px;
}

.legal-content h2 {
    font-family: 'Barlow Condensed', 'Inter', sans-serif;
    font-size: clamp(17px, 1.9vw, 24px);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue);
    margin: 48px 0 12px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--orange);
    text-align: left;
}

.legal-content h2::after {
    display: none;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--blue);
    margin: 24px 0 6px;
}

.legal-content p {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: #333;
    line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal-content li {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.75;
    margin-bottom: 6px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.legal-back:hover {
    text-decoration: underline;
}

.legal-nav {
    background: var(--bg-light);
    border-left: 4px solid var(--orange);
    padding: 20px 24px;
    margin-bottom: 48px;
    border-radius: 2px;
}

.legal-nav p {
    margin: 0 0 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--blue);
    opacity: 0.6;
}

.legal-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.legal-nav li a {
    color: var(--blue);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.legal-nav li a:hover {
    color: var(--orange);
}

/* ── MOBILE ── */
@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: stretch;
        min-height: auto;
    }

    .header-logo {
        padding: 16px 24px;
    }

    .header-logo::after {
        display: none;
    }

    header h1 {
        font-size: clamp(16px, 5vw, 26px);
        padding: 18px 24px;
        letter-spacing: 0.02em;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        overflow: visible;
    }

    .hero-content::after {
        display: none;
    }

    .hero-content {
        padding: 48px 24px;
        min-height: auto;
    }

    .hero-image-wrap {
        max-height: 300px;
        order: -1;
    }

    .leistungen-inner {
        grid-template-columns: 1fr;
    }

    .leistungen h2 {
        padding: 36px 20px 20px;
        border-right: none;
        border-bottom: 1px solid #e8e0d4;
        position: static;
    }

    .leistungen-content {
        padding: 20px 20px 40px;
    }

    .kunden,
    .stadtteile,
    .ablauf,
    .faq {
        padding: 52px 20px;
    }

    .kunden ul,
    .faq ul {
        grid-template-columns: 1fr;
    }

    .stadtteile li {
        flex: 0 0 calc(50% - 8px);
    }

    .ablauf ol {
        grid-template-columns: 1fr 1fr;
    }

    .ablauf ol::before {
        display: none;
    }

    .cta {
        padding: 52px 20px;
    }

    .kontakt {
        padding: 52px 20px;
    }

    .kontakt-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

@media (max-width: 480px) {
    .stadtteile li {
        flex: 0 0 100%;
    }

    .ablauf ol {
        grid-template-columns: 1fr;
    }
}

/* ── Cookie Banner ─────────────────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--blue);
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -4px 24px rgba(0,0,0,.25);
    border-top: 3px solid var(--orange);
}
.cookie-banner__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-banner__text {
    flex: 1 1 260px;
    font-size: .9rem;
    line-height: 1.5;
    margin: 0;
    color: rgba(255,255,255,.92);
}
.cookie-banner__link {
    color: var(--orange);
    text-decoration: underline;
}
.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cookie-banner__btn {
    border: none;
    border-radius: 2px;
    padding: 10px 20px;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .2s;
}
.cookie-banner__btn:hover { opacity: .85; }
.cookie-banner__btn--accept {
    background: var(--orange);
    color: #fff;
}
.cookie-banner__btn--necessary {
    background: transparent;
    color: rgba(255,255,255,.8);
    border: 1px solid rgba(255,255,255,.3);
}
@media (max-width: 540px) {
    .cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 12px; }
    .cookie-banner__actions { flex-direction: column; }
    .cookie-banner__btn { width: 100%; text-align: center; padding: 12px; }
}
