/* truelations – gemeinsame Designtokens.
   Quelle: truelations-partnerportal/docs/Architektur/design-source-2026-09-06.md */

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/assets/fonts/playfair-display-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
    --petrol: #31515a;
    --nachtblau: #1f2e35;
    --leinen: #f6f3ee;
    --champagner: #e7ded1;
    --taupe: #a29387;
    --anthrazit: #2b2f31;
    --salbei: #9aa791;
    --walnuss: #a67c5f;

    --paper: #ffffff;
    --ink: var(--anthrazit);
    --muted: #635950;
    --line: #d8d0c6;

    --radius-control: 4px;
    --radius-container: 8px;
    --shadow: 0 1px 2px rgba(31, 46, 53, 0.06), 0 8px 24px rgba(31, 46, 53, 0.06);

    --measure: 66ch;
    --gutter: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    background: var(--leinen);
    color: var(--ink);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--nachtblau);
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2rem, 5.5vw, 3.1rem);
}

h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
}

h3 {
    font-size: 1.2rem;
}

/* Fliesstext laeuft auf dieselbe Breite wie die Bilder. Nur die reinen
   Textseiten behalten eine begrenzte Zeilenlaenge, dort gibt es keine Bilder,
   an die sich etwas anpassen muesste. */
p {
    margin: 0 0 1.1em;
    max-width: 100%;
}

a {
    color: var(--petrol);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--nachtblau);
}

:focus-visible {
    outline: 3px solid var(--walnuss);
    outline-offset: 3px;
    border-radius: var(--radius-control);
}

img {
    max-width: 100%;
    height: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: var(--gutter);
    top: var(--gutter);
    z-index: 10;
    background: var(--paper);
    padding: 12px 18px;
    border-radius: var(--radius-control);
    box-shadow: var(--shadow);
}

.wrap {
    width: 100%;
    max-width: 960px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Kopfbereich */

.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.site-header .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
}

.site-header img {
    display: block;
    height: 64px;
    width: auto;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 38px;
}

.site-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1;
    padding: 4px 0;
    transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--petrol);
    text-decoration: none;
}

section[id] {
    scroll-margin-top: 24px;
}

.hero {
    padding: 24px 0 64px;
}

.hero .claim {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.05rem, 2.2vw, 1.3rem);
    color: var(--walnuss);
    letter-spacing: 0.02em;
    margin: 0 0 18px;
}

.hero .lead {
    font-size: clamp(1.05rem, 2.1vw, 1.25rem);
    color: var(--muted);
}

/* Abschnitte */

section {
    padding: 56px 0;
    border-top: 1px solid var(--line);
}

section:first-of-type {
    border-top: 0;
}

.cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 28px;
    padding: 0;
    list-style: none;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-container);
    padding: 24px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin-top: 0;
    color: var(--petrol);
}

.card p:last-child {
    margin-bottom: 0;
}

.panel {
    background: var(--champagner);
    border-radius: var(--radius-container);
    padding: 32px;
    margin-top: 28px;
}

.panel p:last-child {
    margin-bottom: 0;
}

.button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 22px;
    background: var(--petrol);
    color: var(--leinen);
    border-radius: var(--radius-control);
    text-decoration: none;
    font-weight: 500;
}

.button:hover {
    background: var(--nachtblau);
    color: var(--leinen);
}

/* Bilder */

.media {
    margin: 0 0 8px;
    border-radius: var(--radius-container);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.media img {
    display: block;
    width: 100%;
    height: auto;
}

section .media {
    margin-block: 32px;
}

/* Personen */

.person {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
    margin-top: 48px;
}

/* Kein Zuschnitt: die Portraets werden in ihrem natuerlichen Seitenverhaeltnis
   gezeigt, damit die Person vollstaendig im Bild bleibt. */
.person img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-container);
    box-shadow: var(--shadow);
}

.person h3 {
    margin-top: 0;
}

.person .role {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 0.95rem;
}

.person p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .person {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .person img {
        max-width: 240px;
    }
}

/* Ruhige Aussage: gehoert zum Fliesstext, hebt sich nur leicht ab. */
.panel.quote p {
    margin: 0;
    max-width: 100%;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    line-height: 1.45;
    color: var(--nachtblau);
}

/* Starke Aussage: nur einmal je Seite, damit sie wirkt. */
.panel.highlight {
    background: var(--petrol);
    color: var(--leinen);
    padding: 40px;
}

.panel.highlight p {
    margin: 0;
    max-width: 100%;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.25rem, 2.6vw, 1.6rem);
    line-height: 1.4;
}

/* Luft zwischen einer Aussage und dem Text, der sie einordnet. */
.panel + p {
    margin-top: 36px;
}

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 22px;
    margin-top: 40px;
}

@media (max-width: 520px) {
    .panel,
    .panel.highlight {
        padding: 26px;
    }
}

/* Kontakt */

.contact dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px 24px;
    margin: 0;
}

.contact dt {
    color: var(--muted);
}

.contact dd {
    margin: 0;
}

/* Rechtsseiten */

.legal h2 {
    margin-top: 2em;
    font-size: 1.35rem;
}

.legal p {
    max-width: var(--measure);
}

.legal dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 24px;
    margin: 0 0 1.4em;
    max-width: var(--measure);
}

.legal dt {
    color: var(--muted);
}

.legal dd {
    margin: 0;
}

.legal .back {
    display: inline-block;
    margin-bottom: 8px;
}

@media (max-width: 520px) {
    .contact dl,
    .legal dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .contact dt,
    .legal dt {
        margin-top: 12px;
    }
}

/* Fussbereich */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 32px 0 48px;
    color: var(--muted);
    font-size: 0.93rem;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

.site-footer p {
    margin: 0;
}
