/*
 * DINIS ENGINEERING – Design und Responsive Layout
 * ------------------------------------------------------------
 * Diese Datei steuert das Aussehen aller Seiten.
 * Farben  : in :root (CSS-Variablen wie --accent)
 * Layout  : .shell, .section, Grid- und Flexbox-Regeln
 * Mobil   : @media-Blöcke am Dateiende
 *
 * Bearbeitung: Eine Eigenschaft pro Zeile. Browser neu laden
 *              (Strg+F5, falls CSS aus dem Cache kommt).
 */
:root {
    color-scheme: light;
    --bg: #ffffff;
    --panel: #f5f5f2;
    --line: #d9dedf;
    --text: #10253a;
    --muted: #52616a;
    --accent: #007e86;
    --navy: #081f42;
    --max: 1240px;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-synthesis: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible, summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 5px;
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    line-height: 1.12;
    letter-spacing: -.035em;
}

h1 {
    font-size: clamp(3rem, 6.2vw, 6rem);
    font-weight: 520;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.65rem);
    font-weight: 530;
}

h3 {
    font-size: 1.35rem;
    font-weight: 600;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.shell {
    width: min(var(--max), calc(100% - 96px));
    margin-inline: auto;
}


/*
 * ============================================================
 * ALLGEMEINE ABSCHNITTSABSTÄNDE
 * ============================================================
 *
 * Diese Klasse wird auf mehreren Webseiten verwendet.
 *
 * padding-top    = Innenabstand nach oben
 * padding-bottom = Innenabstand nach unten
 */
.section {
    /*padding-block: clamp(64px, 8vw, 112px);*/
     /* Oberer Innenabstand: Inhalt rückt weiter nach oben */
    padding-top: 48px;

    /* Unterer Innenabstand: Abstand zum nächsten Bereich */
    padding-bottom: 64px;
}

.muted {
    color: var(--muted);
}

.eyebrow {
    color: var(--accent);
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    background: white;
    color: var(--navy);
    padding: 10px;
    z-index: 100;
}

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

/* Header: corporate wordmark on white, no coloured background. */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e7e9e8;
    position: relative;
    z-index: 5;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    max-width: 100%;
    color: var(--navy);
}

.brand-mark {
    width: 67px;
    height: auto;
    flex-shrink: 0;
}

.brand-type {
    border-left: 1px solid #9daab1;
    padding-left: 13px;
    white-space: nowrap;
    line-height: 1.16;
}

.brand-type strong {
    display: block;
    font-size: 1.48rem;
    font-weight: 600;
    letter-spacing: -.045em;
}

.brand-type small {
    display: block;
    color: #007e86;
    font-size: .65rem;
    letter-spacing: .115em;
    margin-top: 5px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 29px);
    font-size: .87rem;
    font-weight: 550;
    white-space: nowrap;
}

.desktop-nav a:hover, .desktop-nav a[aria-current=page], .footer-links a:hover {
    color: var(--accent);
}

.desktop-nav a[aria-current=page]:not(.nav-cta) {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.desktop-nav .nav-cta {
    background: var(--navy);
    border-radius: 5px;
    color: white;
    padding: 11px 20px;
}

.desktop-nav .nav-cta:hover {
    background: var(--accent);
    color: #fff;
}

.language {
    padding-left: 15px;
    border-left: 1px solid var(--line);
    font-size: .76rem;
}

.mobile-nav {
    display: none;
}

/* Hero: large local illustrative photograph, text remains readable over a pale gradient. */
.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(480px, 46vw, 680px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #e6e9e9;
}

.hero-image, .hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-image {
    object-fit: cover;
    object-position: center 52%;
}

.hero-shade {
    z-index: -1;
    background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.90) 28%, rgba(255,255,255,.78) 43%, rgba(255,255,255,.23) 65%, rgba(255,255,255,0) 85%);
}

.hero-content {
    padding-block: 70px;
}

.hero-content h1 {
    max-width: 710px;
    color: var(--navy);
}

.hero-intro {
    color: #334b5d;
    font-size: clamp(1rem, 1.5vw, 1.22rem);
    max-width: 530px;
    margin-top: 24px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 33px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: .9rem;
    font-weight: 650;
    line-height: 1.4;
    transition: background .18s, color .18s, border-color .18s;
}

.button svg {
    flex-shrink: 0;
}

.primary {
    background: var(--navy);
    color: white;
}

.primary:hover {
    background: var(--accent);
}

.secondary {
    border-color: #7c909b;
    color: var(--navy);
    background: #ffffffbf;
}

.secondary:hover {
    background: white;
    border-color: var(--accent);
    color: var(--accent);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-weight: 650;
    font-size: .94rem;
    margin-top: 22px;
}

.text-link:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Home: editorial layout rather than repeating grids of content. */
.intro-grid, .services-editorial {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(42px, 7vw, 100px);
    align-items: start;
}

.intro-grid h2 {
    max-width: 560px;
}

.intro-statement {
    font-size: clamp(1.2rem, 2.1vw, 1.8rem);
    line-height: 1.45;
    color: #41545d;
    letter-spacing: -.02em;
}

.light-band {
    background: #f3f4f1;
    border-block: 1px solid #e8eae7;
}

.services-intro h2 {
    max-width: 440px;
}

.services-intro .muted {
    margin: 24px 0;
    max-width: 420px;
}

.service-list {
    border-top: 1px solid #cbd2d1;
}

.service-row {
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr) 25px;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid #cbd2d1;
    align-items: start;
    transition: color .18s;
}

.service-row:hover {
    color: var(--accent);
}

.row-number {
    font-size: .78rem;
    color: var(--accent);
    font-weight: 700;
    padding-top: 3px;
}

.service-row h3 {
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    line-height: 1.25;
}

.service-row p {
    color: var(--muted);
    font-size: .94rem;
    margin-top: 9px;
}

.service-row svg {
    color: var(--accent);
    margin-top: 2px;
}

.further-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.further-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 30px 0;
    border-block: 1px solid var(--line);
}

.further-link h3 {
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
}

.further-link p:not(.eyebrow) {
    color: var(--muted);
    margin-top: 12px;
}

.further-link svg {
    color: var(--accent);
    flex-shrink: 0;
}

.further-link:hover h3 {
    color: var(--accent);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 42px 46px;
    background: #edf4f4;
    border: 1px solid #d7e5e5;
    border-radius: 6px;
}

.cta-panel h2 {
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.cta-panel p.muted {
    margin-top: 14px;
    max-width: 650px;
}

.cta-panel .button {
    flex-shrink: 0;
}

.further-section + .section {
    padding-top: 0;
}

/* Subpages: spacious typography, simple light cards for technical details. */
.page-hero {
    background: #f3f4f1;
    border-bottom: 1px solid #e7e9e5;
    padding-block: clamp(50px, 7vw, 100px);
}

.page-hero h1 {
    max-width: 940px;
    font-size: clamp(2.5rem, 5.1vw, 4.65rem);
}

.page-hero .hero-intro {
    max-width: 760px;
}

.content-section {
    min-height: 300px;
}

.section-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: end;
    margin-bottom: 34px;
}

.section-head p {
    color: var(--muted);
}

.detail-grid, .services-grid, .tech-grid, .project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.detail-card, .service-card, .technology-card, .workflow-step {
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: clamp(22px, 3vw, 34px);
    min-width: 0;
    overflow-wrap: anywhere;
}

.detail-card {
    scroll-margin-top: 24px;
}

.detail-card h2, .technology-card h2 {
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    margin: 18px 0 13px;
}

.detail-card .eyebrow {
    margin-bottom: 0;
}

.technology-card h2 {
    margin-top: 0;
}

.technology-intro {
    color: var(--muted);
    margin-top: 12px;
}

.technology-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 12px;
}

.technology-list li {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.technology-list li p {
    color: var(--muted);
    margin-top: 4px;
    font-size: .93rem;
}

.technology-list strong {
    font-weight: 650;
}

.icon-box {
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #eaf4f4;
    color: var(--accent);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 0;
    display: grid;
    gap: 12px;
}

.check-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #334b5d;
    font-size: .95rem;
}

.check-list svg {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 3px;
}

.scope-note {
	/* Schriftfarbe des Hinweistextes */
    color: #53616a;
    /* Hellgrauer Hintergrund */
    background: #f2f5f5;
    /* Türkiser Rand auf der linken Seite */
    border-left: 3px solid var(--accent);
    /*
     * Innenabstand:
     * 15px oben/unten
     * 20px links/rechts
     */
    padding: 15px 20px;
    /*
     * Oberer Außenabstand
     *
     * Bisher: 26px
     * Neu:     0px
     *
     * Dadurch beginnt das Hinweisfeld direkt
     * am Anfang des Inhaltsbereichs.
     */
    margin-top: 0px;
    /*
     * Abstand zwischen Hinweis und Leistungskarten.
     *
     * Diesen Wert kannst du jederzeit verändern.
     */
    margin-bottom: 32px;	
    /* Schriftgröße */
    font-size: .9rem;
}

.contact-card, .legal-card {
    max-width: 850px;
}

.contact-card .button {
    margin-top: 24px;
}

.legal-card .check-list {
    margin-bottom: 20px;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card .muted {
    margin: 8px 0 24px;
}

.project-card .tags {
    margin-top: auto;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tags span {
    font-size: .75rem;
    border: 1px solid #d7e2e2;
    background: #f2f6f6;
    padding: 4px 8px;
    border-radius: 3px;
    color: #405762;
}

.card-top, .card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.card-top {
    margin-bottom: 18px;
}

.card-number {
    color: var(--muted);
    font-size: .78rem;
}

.service-card p {
    margin: 14px 0 24px;
    color: var(--muted);
}

.card-arrow {
    color: var(--accent);
}

.service-card:hover {
    border-color: var(--accent);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    gap: 45px;
    align-items: start;
}

.profile-copy h2 {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
}

.profile-role {
    color: var(--accent);
    font-weight: 600;
    margin: 12px 0 20px;
}

.profile-panel {
    background: #f3f4f1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
    min-height: 230px;
    justify-content: center;
}

.profile-mark {
    font-size: clamp(4rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: -.07em;
    font-weight: 500;
    color: var(--navy);
}

.profile-label {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 8px;
}

.profile-line {
    width: 100%;
    height: 1px;
    background: var(--line);
    margin-block: 20px;
}

.content-section > .work-process {
    margin-top: 85px;
}

.workflow-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.workflow-number {
    display: block;
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 18px;
}

.workflow-step p {
    margin-top: 12px;
    font-size: .94rem;
}

/* Footer */
.site-footer {
    background: #f4f5f3;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-block: 42px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    font-size: .88rem;
    color: #41545d;
}

.footer-bottom {
    padding-block: 18px;
    border-top: 1px solid var(--line);
    font-size: .78rem;
    color: var(--muted);
}

/*
 * ==============================================================
 * PARTNERNETZWERK (nur Startseite)
 * ==============================================================
 * Das Grid kann später mehrere Partner nebeneinander aufnehmen.
 * Auf schmalen Displays ordnen sich die Karten automatisch untereinander an.
 */
.partner-section h2 {
    /* Begrenzt die Überschrift auf ein gut lesbares Maß. */
    max-width: 680px;
}

.partner-intro {
    /* Abstand zwischen Überschrift und Einleitung. */
    margin-top: 16px;
}

.partner-grid {
    /* Karten füllen ein responsives Raster mit mindestens 260px. */
    display: grid;
    /* auto-fill reserviert Platz für weitere Partner, ohne die erste Karte
       über die ganze Seitenbreite aufzuziehen. */
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 20px;
    margin-top: 32px;
}

.partner-card {
    /* Partnerlogo und Linkhinweis werden vertikal angeordnet. */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
    min-height: 162px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: border-color .2s ease, transform .2s ease;
}

.partner-card:hover,
.partner-card:focus-visible {
    border-color: var(--accent);
}

/* Offizielles PW-Solutions-Logo aus dem lokalen assets-Verzeichnis. */
.partner-logo {
    /* Auf allen Bildschirmgrößen innerhalb der Partnerkarte halten. */
    display: block;
    width: min(100%, 235px);
    max-height: 150px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}


.partner-outbound {
    /* Dezenter Hinweis darauf, dass ein externer Link geöffnet wird. */
    color: var(--accent);
    font-size: .85rem;
}

/* KONTAKTSEITE: geschäftliche E-Mail-Adresse. */
.contact-email-label {
    margin-top: 30px;
    color: var(--muted);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.contact-email {
    /* Zeilenumbruch verhindert horizontalen Überlauf auf Smartphones. */
    display: inline-block;
    margin-top: 6px;
    overflow-wrap: anywhere;
    color: var(--accent);
    font-size: clamp(1.1rem, 2.5vw, 1.45rem);
    font-weight: 550;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.contact-help {
    margin-top: 22px;
}

/* Arbeitsentwürfe Impressum/Datenschutz: Gliederung ohne Inline-Stile. */
.legal-document h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    margin-top: 34px;
    margin-bottom: 12px;
}

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

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

.legal-document a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}


/*
 * ============================================================
 * SPRACHUMSCHALTER: DE / EN / PT
 * ============================================================
 * Drei Sprachkürzel sind jederzeit erreichbar.
 * Die aktive Sprache wird dezent unterstrichen.
 */
.language-switch {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.language-switch .language {
    display: inline-block;
    /* Die frühere .language-Regel hatte links einen Rand: hier entfernen. */
    padding: 4px 2px;
    padding-left: 2px;
    border-left: 0;
    font-size: .8rem;
    line-height: 1.3;
}

.language-switch .language.is-active {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.mobile-language-switch {
    padding-top: 12px;
    gap: 18px;
}

/* Responsive: layouts respond to actual viewport, not device type. */
@media (max-width: 1100px) {
    .desktop-nav {
        display: none;
    }
    .mobile-nav {
        display: block;
        position: relative;
        flex-shrink: 0;
    }
    .mobile-nav summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        border: 1px solid var(--line);
        border-radius: 5px;
    }
    .mobile-nav summary::-webkit-details-marker {
        display: none;
    }
    .mobile-nav nav {
        position: absolute;
        right: 0;
        top: 52px;
        width: min(280px, 83vw);
        background: white;
        border: 1px solid var(--line);
        border-radius: 6px;
        padding: 9px;
        box-shadow: 0 16px 32px #081f421b;
    }
    .mobile-nav nav a {
        display: block;
        padding: 12px;
    }
    .mobile-nav nav a:hover, .mobile-nav nav a[aria-current=page] {
        background: #edf4f4;
        color: var(--accent);
    }
    .shell {
        width: calc(100% - 64px);
    }
    .hero-shade {
        background: linear-gradient(90deg, #ffffffed 0%, #ffffffdb 32%, #ffffff9e 55%, #ffffff00 90%);
    }
}

@media (max-width: 850px) {
    .intro-grid, .services-editorial, .section-head, .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .service-list {
        margin-top: 14px;
    }
    .workflow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .profile-panel {
        min-height: 190px;
    }
    .hero {
        min-height: 510px;
    }
}

@media (max-width: 620px) {
    .shell {
        width: calc(100% - 36px);
    }
    .section {
        padding-block: 55px;
    }
    .header-inner {
        min-height: 72px;
        gap: 12px;
    }
    .brand {
        gap: 8px;
    }
    .brand-mark {
        width: 49px;
    }
    .brand-type {
        padding-left: 9px;
    }
    .brand-type strong {
        font-size: 1.14rem;
    }
    .brand-type small {
        font-size: .52rem;
        letter-spacing: .06em;
    }
    .hero {
        min-height: 0;
        align-items: flex-end;
        padding-top: 220px;
        background: white;
    }
    .hero-image {
        height: 280px;
        object-position: 72% 45%;
    }
    .hero-shade {
        height: 280px;
        background: linear-gradient(180deg, transparent 45%, white 100%);
    }
    .hero-content {
        padding-block: 20px 48px;
    }
    .hero-content .eyebrow {
        margin-bottom: 16px;
    }
    h1 {
        font-size: clamp(2.7rem, 10vw, 4.3rem);
    }
    .hero-intro {
        margin-top: 18px;
    }
    .hero-actions {
        margin-top: 25px;
    }
    .hero-actions .button {
        flex: 1 1 155px;
    }
    .service-row {
        grid-template-columns: 26px minmax(0, 1fr) 20px;
        gap: 10px;
        padding-block: 20px;
    }
    .service-row svg {
        width: 20px;
    }
    .further-grid, .detail-grid, .services-grid, .tech-grid, .project-grid, .workflow-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .further-link {
        padding: 23px 0;
    }
    .cta-panel, .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cta-panel {
        padding: 28px 23px;
        gap: 24px;
    }
    .footer-inner {
        gap: 28px;
        padding-block: 32px;
    }
    .footer-links {
        gap: 17px;
    }
    .content-section > .work-process {
        margin-top: 55px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}


/*
 * ============================================================
 * KONTAKT / IMPRESSUM / DATENSCHUTZ – ergänzende Layoutregeln
 * ============================================================
 * Die bestehenden .section-Abstände bleiben unangetastet.
 * Diese Klassen wirken ausschließlich auf die genannten Seiten.
 */
.contact-intro {
    /* Lesebreite auf großen Displays begrenzen. */
    max-width: 62ch;
    margin-top: 18px;
}

.contact-action {
    /* Eigener vertikaler Abstand des mailto-Buttons. */
    margin-top: 24px;
}

.contact-privacy-note {
    /* Abstand und kleinere Schrift für den Link zum Datenschutz. */
    margin-top: 14px;
    color: var(--muted);
    font-size: .9rem;
}

.contact-privacy-note a {
    /* Der Link ist auch ohne Farbunterschied erkennbar. */
    text-decoration: underline;
    text-underline-offset: 3px;
    color: var(--accent);
}

.legal-document h2:first-of-type {
    /* Die erste Überschrift folgt ohne unnötigen oberen Abstand. */
    margin-top: 0;
}

.legal-document p {
    /* Text und Zwischenüberschriften bleiben gut lesbar. */
    line-height: 1.75;
}

.legal-document h2 + p,
.legal-document h2 + .legal-address {
    margin-top: 8px;
}

.legal-address {
    /* <address> ist im Browser standardmäßig oft kursiv. */
    font-style: normal;
    line-height: 1.75;
}

.legal-contact-line {
    margin-top: 16px;
}

.legal-review-warning {
    /* Nur während der Entwicklung: sichtbare Freigabe-Erinnerung. */
    padding: 16px 20px;
    margin-bottom: 26px;
    border-left: 3px solid var(--accent);
    background: #f2f5f5;
    color: #374e5a;
    font-size: .92rem;
}

.legal-missing-address {
    /* Diese Warnung verschwindet durch Ausfüllen der zentralen Adresse. */
    display: inline-block;
    margin-top: 8px;
    color: #8a4200;
    font-weight: 650;
}

/* =============================================================
 * DATENSCHUTZ – GLIEDERUNG / LESEFREUNDLICHE AUSGABE
 * =============================================================
 * Nummerierung übernimmt CSS statt fest eingetragener Nummern.
 * Dadurch bleibt die Reihenfolge korrekt, wenn Cloudflare
 * in src/config.php deaktiviert bzw. aktiviert ist.
 */
.privacy-sections {
    /* Startet die Nummerierung am Anfang der Erklärung neu. */
    counter-reset: privacy-section;
}
.privacy-section {
    /* Erhöht bei jedem angezeigten Abschnitt den Zähler um eins. */
    counter-increment: privacy-section;
    margin-top: 30px;
}
.privacy-section h2::before {
    /* Stellt vor jede Überschrift automatisch die Abschnittsnummer. */
    content: counter(privacy-section) ". ";
}
.privacy-section .privacy-list {
    list-style: disc;
    padding-left: 1.65rem;
    margin: 12px 0 18px;
}
.privacy-section .privacy-list li {
    margin: 7px 0;
    line-height: 1.7;
}
.privacy-section p {
    overflow-wrap: anywhere;
}


/*
 * ============================================================
 * KONTAKTFORMULAR – dreisprachig (DE / EN / PT)
 * ============================================================
 * Alle Abstände sind bewusst auf die Kontaktseite begrenzt.
 * Allgemeine .section-Regeln bleiben unverändert.
 */
.contact-form-panel {
    /* Formular gegenüber dem E-Mail-Link klar absetzen. */
    margin-top: 40px;
    border-top: 1px solid var(--border, #dce5e8);
    padding-top: 32px;
}

.contact-form-intro {
    /* Abstand zwischen Einleitung und erster Eingabezeile. */
    margin-top: 12px;
    margin-bottom: 24px;
}

.contact-form {
    /* Jedes Eingabeelement folgt vertikal mit konsistentem Abstand. */
    display: grid;
    gap: 20px;
}

.contact-form-row {
    /* Zwei Spalten am Desktop, bei schmalen Geräten eine Spalte. */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.contact-form-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.contact-form-field label {
    /* Sichtbare Beschriftung – nicht nur ein Placeholder. */
    font-weight: 650;
    color: var(--navy);
}

.contact-form-field input,
.contact-form-field textarea {
    /* Einheitliche Eingabefelder mit ausreichender Touch-Fläche. */
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #b5c5ce;
    border-radius: 6px;
    background: #fff;
    color: var(--navy);
    font: inherit;
}

.contact-form-field textarea {
    /* Benutzer kann das Textfeld vertikal vergrößern. */
    min-height: 144px;
    resize: vertical;
}

.contact-form-field input:focus-visible,
.contact-form-field textarea:focus-visible {
    /* Deutlich sichtbare Tastatur-Fokusmarkierung. */
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.contact-form-required {
    color: var(--muted);
    font-size: .88rem;
}

.contact-form-success,
.contact-form-error {
    padding: 16px 18px;
    border-left: 4px solid var(--accent);
    background: #edf5f5;
    line-height: 1.65;
}

.contact-form-error {
    border-left-color: #ba4141;
    background: #fff2f2;
}

.contact-form-error ul {
    margin: 8px 0 0 20px;
}

.contact-form-honeypot {
    /* Anti-Spam-Falle für Bots, außerhalb des sichtbaren Bereichs. */
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 700px) {
    .contact-form-row {
        grid-template-columns: 1fr;
    }
}
