/* ==========================================================================
   Rechtsanwälte Adler & Stiebing PartG – Haupt-Stylesheet
   Mobile-first. Breakpoints: 768px (Tablet), 1024px (Desktop).
   ========================================================================== */

/* --- Schriften (lokal, DSGVO-konform) ----------------------------------- */
@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/notosans-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/notosans-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/notosans-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Serif';
    src: url('../fonts/notoserif-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Noto Serif';
    src: url('../fonts/notoserif-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* --- Design-Tokens ------------------------------------------------------- */
:root {
    /* Farben: Blau als Leitfarbe, das Rot des Kanzleilogos als Akzent.
       Der Kopfbereich ist hell gehalten, der Fussbereich dunkel. */
    --navy-900: #17324d;
    --navy-800: #1f4265;
    --navy-700: #2b567f;
    --navy-600: #17324d29;
    --accent: #d8322f;
    --accent-dark: #ae2522;
    --accent-soft: #fdf1f0;

    --text: #1b2c3d;
    --text-muted: #5a6b7d;
    --text-invert: #eef4fa;

    --surface: #ffffff;
    --surface-alt: #f2f7fc;
    --surface-tint: #e4eef8;
    --border: #d6e2ee;

    --focus: #b3282a;

    /* gedaempfter Text auf dunklen Flaechen (Fussbereich, Abschlussband) */
    --on-dark-muted: #c2d4e6;

    /* Typografie */
    --font-sans: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --font-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;

    /* Maße */
    --wrap: 72rem;
    --wrap-narrow: 46rem;
    --gutter: 1.25rem;
    --radius: 0.5rem;
    --radius-lg: 0.875rem;

    --shadow-sm: 0 1px 2px rgba(23, 50, 77, 0.06), 0 2px 6px rgba(23, 50, 77, 0.05);
    --shadow-md: 0 4px 12px rgba(23, 50, 77, 0.08), 0 10px 28px rgba(23, 50, 77, 0.07);
    --shadow-lg: 0 12px 34px rgba(23, 50, 77, 0.12);

    --header-h: 4.25rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
}

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

[hidden] {
    display: none;
}

a {
    color: var(--navy-700);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--accent);
}

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

h1,
h2,
h3,
h4 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.22;
    color: var(--navy-900);
    margin: 0 0 0.6em;
    letter-spacing: -0.01em;
    text-wrap: balance;
    /* Lange deutsche Komposita (z.B. "Umsatzsteueridentifikationsnummer")
       dürfen auf schmalen Displays getrennt werden. */
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: clamp(1.85rem, 1.35rem + 2.2vw, 3rem);
}

h2 {
    font-size: clamp(1.45rem, 1.15rem + 1.3vw, 2.1rem);
}

h3 {
    font-size: clamp(1.15rem, 1.02rem + 0.6vw, 1.4rem);
    font-weight: 600;
}

p {
    margin: 0 0 1.1rem;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

ul,
ol {
    padding-left: 1.3rem;
}

li {
    margin-bottom: 0.4rem;
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 2.5rem 0;
}

/* --- Layout-Bausteine ---------------------------------------------------- */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.wrap--narrow {
    max-width: var(--wrap-narrow);
}

.section {
    padding-block: clamp(2.75rem, 2rem + 3vw, 5rem);
}

.section--alt {
    background: var(--surface-alt);
}

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

.section__head {
    max-width: 44rem;
    margin-bottom: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);
}

.section__head p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.eyebrow {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.lead {
    font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.68;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--navy-900);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 0.97rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease,
        border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn--ghost {
    background: transparent;
    color: var(--navy-800);
    border-color: var(--border);
}

.btn--ghost:hover {
    background: var(--surface-alt);
    border-color: var(--navy-700);
    color: var(--navy-800);
}

.btn--onDark {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
}

.btn--onDark:hover {
    background: #fff;
    color: var(--navy-900);
}

/* --- Kopfbereich / Navigation -------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--navy-900);
    padding-block: 0.5rem;
}

/* Kanzleilogo (uebernommen von der bisherigen Webseite) */
.brand__mark {
    flex: none;
    width: 2.6rem;
    height: 2.6rem;
    display: block;
    border-radius: var(--radius);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand__name {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.02rem;
    color: var(--navy-900);
}

.brand__sub {
    font-size: 0.74rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Umschalter (nur mobil sichtbar) */
.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.85rem;
    height: 2.85rem;
    padding: 0 0.6rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--navy-900);
    border-radius: 2px;
    transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    display: none;
}

.site-nav.is-open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
}

.site-nav__list li {
    margin: 0;
}

.site-nav__list a {
    display: block;
    padding: 0.8rem 0.25rem;
    font-weight: 600;
    color: var(--navy-800);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}

.site-nav__list a:hover,
.site-nav__list a[aria-current='page'] {
    color: var(--accent);
}

/* Untermenü Kompetenzen */
.site-nav__sub {
    list-style: none;
    margin: 0;
    padding: 0 0 0.35rem 0.9rem;
}

.site-nav__sub a {
    font-weight: 400;
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 0.6rem 0.25rem;
}

.site-header__cta {
    display: none;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    position: relative;
    background: linear-gradient(150deg, #dceaf7 0%, #eef5fb 55%, #f7fbfe 100%);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    right: -14%;
    top: -38%;
    width: 34rem;
    height: 34rem;
    background: radial-gradient(circle, rgba(216, 50, 47, 0.14), transparent 66%);
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    padding-block: clamp(3rem, 2rem + 5vw, 6rem);
    display: grid;
    gap: clamp(2rem, 1rem + 4vw, 3.5rem);
}

.hero h1 {
    color: var(--navy-900);
}

.hero__text p {
    color: #45596c;
    font-size: clamp(1.04rem, 1rem + 0.4vw, 1.2rem);
    max-width: 34rem;
}

/* Die kleine rote Zeile ueber der Ueberschrift braucht auf hellem Grund
   einen dunkleren Rotton, sonst ist sie zu schwach lesbar. */
.hero .eyebrow,
.page-head .eyebrow {
    color: var(--accent-dark);
}

/* Zweiter Knopf braucht auf hellem Grund dunkle Schrift */
.hero .btn--onDark {
    background: transparent;
    color: var(--navy-800);
    border-color: var(--navy-700);
}

.hero .btn--onDark:hover {
    background: var(--navy-900);
    color: #fff;
    border-color: var(--navy-900);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.hero__figure img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Kompakter Kopf für Unterseiten */
.page-head {
    background: linear-gradient(150deg, #dceaf7 0%, #eef5fb 100%);
    color: var(--text);
    border-bottom: 1px solid var(--border);
    padding-block: clamp(2.25rem, 1.6rem + 3vw, 3.75rem);
}

.page-head h1 {
    color: var(--navy-900);
    margin-bottom: 0.35rem;
}

.page-head p {
    color: #45596c;
    max-width: 44rem;
    margin-bottom: 0;
}

/* Brotkrumen */
.breadcrumb {
    font-size: 0.85rem;
    margin-bottom: 0.9rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
}

.breadcrumb li::after {
    content: '›';
    margin-left: 0.4rem;
    color: #8c9cad;
}

.breadcrumb li:last-child::after {
    content: '';
}

.breadcrumb a {
    color: #45596c;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb [aria-current='page'] {
    color: #6d7d8e;
}

/* --- Karten-Raster ------------------------------------------------------- */
.grid {
    display: grid;
    gap: 1.25rem;
    align-items: stretch;
}

/* Raster mit nur einem Eintrag: nur die Karte begrenzen, nicht das Raster,
   damit die Spaltenbreite des Rasters erhalten bleibt. */
.grid--single > * {
    max-width: 22rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.card--link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #c4d0e2;
}

.card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card__icon {
    width: 2.9rem;
    height: 2.9rem;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 1rem;
}

.card__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.9rem;
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--accent);
}

.card--link:hover .card__more {
    gap: 0.6rem;
}

/* --- Team ---------------------------------------------------------------- */
.person {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.person__photo {
    /* Die Originalfotos haben unterschiedliche Hintergründe (weiß/grau).
       Der Verlauf darunter fängt das optisch ab. */
    background: linear-gradient(175deg, #f7f8fb 0%, #e8edf4 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    flex: none;
}

.person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
}

.person__body {
    padding: 1.4rem 1.5rem 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.person__name {
    margin-bottom: 0.15rem;
}

.person__role {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.person__focus {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    padding-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.person__focus li {
    margin: 0;
    font-size: 0.82rem;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    color: var(--text-muted);
}

.person__meta {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    font-size: 0.92rem;
    color: var(--text-muted);
}

.person__meta dt {
    font-weight: 600;
    color: var(--text);
    margin-top: 0.65rem;
}

.person__meta dt:first-child {
    margin-top: 0;
}

.person__meta dd {
    margin: 0.1rem 0 0;
}

/* --- Infoleiste (Kontaktdaten) ------------------------------------------- */
.factbar {
    display: grid;
    gap: 1rem;
}

.fact {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.fact__icon {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent);
}

.fact__icon svg {
    width: 1.3rem;
    height: 1.3rem;
}

.fact__label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.1rem;
}

.fact__value {
    font-weight: 600;
    color: var(--navy-900);
    /* Lange E-Mail-Adressen sollen nicht mitten im Wort umbrechen */
    overflow-wrap: anywhere;
    line-height: 1.45;
}

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

.fact__value a:hover {
    color: var(--accent);
}

/* --- Inhaltstexte (Kompetenz-/Rechtsseiten) ------------------------------ */
.prose {
    font-size: 1.02rem;
}

.prose h2 {
    margin-top: 2.2rem;
}

.prose h3 {
    margin-top: 1.8rem;
}

.prose > :first-child {
    margin-top: 0;
}

.prose ul li::marker {
    color: var(--accent);
}

.prose a {
    color: var(--navy-700);
}

/* Buttons behalten ihre eigene Schriftfarbe, auch im Fliesstext */
.prose a.btn--primary,
.prose a.btn--primary:hover {
    color: #fff;
}

/* Themenliste mit Häkchen */
.topic-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
    display: grid;
    gap: 0.6rem;
}

.topic-list li {
    position: relative;
    padding-left: 1.85rem;
    margin: 0;
}

.topic-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 0.62rem;
    height: 0.34rem;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg) translateY(-0.1em);
}

/* Hervorgehobener Kasten */
.callout {
    background: var(--surface-alt);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.25rem 1.4rem;
    margin: 1.75rem 0;
}

.callout p:last-child {
    margin-bottom: 0;
}

.callout--note {
    font-size: 0.93rem;
    color: var(--text-muted);
    border-left-color: var(--navy-700);
}

/* Kleine Themenkarten (z.B. Arbeitsrecht-Themen auf der Startseite) */
.minicard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.1rem;
}

.minicard h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.minicard h4 a {
    color: var(--navy-900);
    text-decoration: none;
}

.minicard h4 a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.minicard p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Fristhinweis im Kopfbereich */
.hero__note {
    border-left: 3px solid var(--accent);
    padding-left: 0.9rem;
    font-size: 0.95rem;
}

/* Nummerierter Ablauf */
.steps {
    list-style: none;
    counter-reset: step;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    gap: 0.9rem;
}

.steps li {
    counter-increment: step;
    position: relative;
    padding-left: 3rem;
    margin: 0;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- Download-Liste ------------------------------------------------------ */
.downloads {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.downloads li {
    margin: 0;
}

.download {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.download:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text);
}

.download__icon {
    flex: none;
    width: 2.4rem;
    height: 2.4rem;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.download__text {
    flex: 1;
}

.download__title {
    display: block;
    font-weight: 600;
    color: var(--navy-900);
}

.download__meta {
    display: block;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.download__arrow {
    flex: none;
    color: var(--text-muted);
}

.download:hover .download__arrow {
    color: var(--accent);
}

/* --- Standorte / Karte --------------------------------------------------- */
.location {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.location__body {
    padding: 1.5rem;
}

.location__tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.location address {
    font-style: normal;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* 2-Klick-Karte: lädt erst nach Zustimmung */
.map {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--surface-tint);
    border-top: 1px solid var(--border);
}

.map__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
    padding: 1.5rem;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 2.5rem 2.5rem;
    background-color: var(--surface-alt);
}

.map__placeholder p {
    max-width: 26rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- Kontaktformular ----------------------------------------------------- */
.form {
    display: grid;
    gap: 1.1rem;
}

.form__row {
    display: grid;
    gap: 1.1rem;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: 0.93rem;
    margin-bottom: 0.35rem;
    color: var(--navy-900);
}

.field .req {
    color: var(--accent);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(27, 111, 212, 0.16);
}

.field textarea {
    min-height: 9.5rem;
    resize: vertical;
}

.field__hint {
    font-size: 0.84rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

/* Honeypot – für Menschen unsichtbar, für Bots ein Köder */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.checkbox {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.93rem;
    line-height: 1.55;
}

.checkbox input {
    flex: none;
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    accent-color: var(--accent);
}

.form__status {
    padding: 0.95rem 1.15rem;
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.form__status--ok {
    background: #edf7ef;
    border: 1px solid #bcdfc4;
    color: #1f6b33;
}

.form__status--error {
    background: var(--accent-soft);
    border: 1px solid #f0c3c7;
    color: var(--accent-dark);
}

/* --- Aufruf-Band --------------------------------------------------------- */
.cta-band {
    background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-700) 100%);
    color: var(--text-invert);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
    text-align: center;
}

.cta-band h2 {
    color: #fff;
}

.cta-band p {
    color: var(--on-dark-muted);
    max-width: 38rem;
    margin-inline: auto;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* --- Fußbereich ---------------------------------------------------------- */
.site-footer {
    background: var(--navy-900);
    color: var(--on-dark-muted);
    padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem) 1.5rem;
    font-size: 0.94rem;
    margin-top: 0;
}

.site-footer a {
    color: #d4dceb;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.site-footer h2,
.site-footer h3 {
    color: #fff;
    font-size: 0.82rem;
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

.site-footer address {
    font-style: normal;
    line-height: 1.75;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.55rem;
}

.footer-brand {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.6rem;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    font-size: 0.87rem;
    color: #8b99ae;
}

.footer-bottom ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
}

.footer-bottom li {
    margin: 0;
}

/* --- Hilfsklassen -------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center {
    text-align: center;
}

.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

/* Rechtstexte: dichtere Gliederung */
.legal h2 {
    margin-top: 2.5rem;
    font-size: 1.3rem;
}

.legal h3 {
    margin-top: 1.6rem;
    font-size: 1.08rem;
}

.legal dl {
    margin: 0 0 1.2rem;
}

.legal dt {
    font-weight: 600;
    margin-top: 0.8rem;
}

.legal dd {
    margin: 0.15rem 0 0;
    color: var(--text-muted);
}

/* ==========================================================================
   Tablet ab 768px
   ========================================================================== */
@media (min-width: 48em) {
    :root {
        --gutter: 2rem;
    }

    .grid--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .form__row--2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .factbar {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 2.5rem;
    }

    .hero__inner {
        grid-template-columns: 1.05fr 0.95fr;
        align-items: center;
    }
}

/* ==========================================================================
   Desktop ab 1024px
   ========================================================================== */
@media (min-width: 64em) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: block;
    }

    .site-nav__list {
        display: flex;
        align-items: center;
        gap: 0.2rem;
        padding: 0;
    }

    .site-nav__list > li {
        position: relative;
    }

    .site-nav__list a {
        border-bottom: 0;
        padding: 0.55rem 0.8rem;
        border-radius: var(--radius);
        font-size: 0.95rem;
        font-weight: 600;
        white-space: nowrap;
    }

    .site-nav__list > li > a:hover {
        background: var(--surface-alt);
        color: var(--accent);
    }

    .site-nav__list > li > a[aria-current='page'] {
        color: var(--accent);
    }

    /* Aufklappmenü Kompetenzen */
    .has-sub > a::after {
        content: '';
        display: inline-block;
        width: 0.4rem;
        height: 0.4rem;
        margin-left: 0.4rem;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: translateY(-2px) rotate(45deg);
    }

    .site-nav__sub {
        position: absolute;
        top: calc(100% + 0.35rem);
        left: 0;
        min-width: 17rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-md);
        padding: 0.4rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-4px);
        transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    }

    .has-sub:hover .site-nav__sub,
    .has-sub:focus-within .site-nav__sub {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .site-nav__sub a {
        font-size: 0.93rem;
        font-weight: 400;
        color: var(--text);
        padding: 0.55rem 0.7rem;
    }

    .site-nav__sub a:hover {
        background: var(--surface-alt);
        color: var(--accent);
    }

    .site-header__cta {
        display: inline-flex;
        flex: none;
        padding: 0.6rem 1.15rem;
        font-size: 0.92rem;
        white-space: nowrap;
    }

    .grid--3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid--4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .factbar {
        grid-template-columns: repeat(4, 1fr);
    }

    .split {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        gap: 3rem;
        align-items: start;
    }

    .split--even {
        grid-template-columns: 1fr 1fr;
    }

    .sticky-aside {
        position: sticky;
        top: calc(var(--header-h) + 1.5rem);
    }
}

/* --- Druck --------------------------------------------------------------- */
@media print {
    .site-header,
    .site-footer,
    .cta-band,
    .map,
    .nav-toggle {
        display: none;
    }

    body {
        color: #000;
        font-size: 11pt;
    }

    a {
        text-decoration: underline;
    }
}

/* --- Bewegung reduzieren ------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
