/* ==========================================================================
   schultheis.it – Web-Visitenkarte
   Schrift, Grafik und Styles liegen ausschließlich auf dem eigenen Server.
   Kein JavaScript, keine Cookies, keine Inline-Styles (taugt für eine
   strikte Content-Security-Policy).
   ========================================================================== */

/* Barlow, SIL Open Font License 1.1 – Lizenztext: fonts/OFL.txt */
@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/barlow-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/barlow-latin-600-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/barlow-latin-700-normal.woff2") format("woff2");
}

:root {
    --blau: #4a90e2;         /* Markenblau des bisherigen Auftritts */
    --blau-tief: #357abd;    /* Verlaufspartner des Markenblaus */
    --blau-text: #245d9c;    /* Links und Schaltflächen auf hellem Grund (Kontrast > 4,5:1) */
    --blau-hell: #9cc4f2;    /* Links auf Graphit */
    --graphit: #2c2c2c;
    --text: #333;
    --text-leise: #5a5f66;
    --papier: #fff;
    --tisch-hell: #f5f5f5;
    --tisch: #e0e0e0;
    --linie: #d5d9de;
    --radius-karte: 0.5rem;
    --schrift: "Barlow", Arial, Helvetica, sans-serif;
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--schrift);
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--text);
    background: var(--papier);
}

main {
    flex: 1;
}

a {
    color: var(--blau-text);
    text-underline-offset: 0.18em;
}

a:hover {
    text-decoration-thickness: 0.12em;
}

/* Telefonnummern nicht mitten in der Nummer umbrechen */
a[href^="tel:"] {
    white-space: nowrap;
}

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

:target {
    scroll-margin-top: 1.5rem;
}

.rahmen {
    width: min(100% - 2.5rem, 68rem);
    margin-inline: auto;
}

.sprung {
    position: absolute;
    left: 1rem;
    top: -6rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: var(--papier);
    color: var(--blau-text);
    font-weight: 600;
}

.sprung:focus {
    top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Kopfleiste
   -------------------------------------------------------------------------- */

.leiste {
    background: var(--graphit);
    color: #fff;
}

.leiste :focus-visible,
.kontakt :focus-visible,
.fuss :focus-visible {
    outline-color: var(--blau-hell);
}

.leiste__innen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    column-gap: 2rem;
}

.marke {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding-block: 0.9rem;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
}

.marke__wort {
    font-size: 1.125rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.marke__it {
    padding: 0.22rem 0.4rem 0.2rem;
    border: 2px solid #fff;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

.leiste ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: clamp(1rem, 3vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.leiste nav a {
    display: block;
    padding: 0.95rem 0 0.75rem;
    border-bottom: 3px solid transparent;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.leiste nav a:hover,
.leiste nav a[aria-current="page"] {
    border-bottom-color: var(--blau);
}

/* --------------------------------------------------------------------------
   Die Visitenkarte: Vorder- und Rückseite im Format 85 × 55 mm
   -------------------------------------------------------------------------- */

.tisch {
    padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem);
    background: linear-gradient(135deg, var(--tisch-hell) 0%, var(--tisch) 100%);
}

.karten {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3.5vw, 3rem);
    align-items: start;
}

.karte {
    position: relative;
    display: flex;
    flex-direction: column;
    aspect-ratio: 85 / 55;
    container-type: inline-size;
    border-radius: var(--radius-karte);
    box-shadow:
        0 1px 2px rgba(31, 45, 61, 0.24),
        0 16px 30px -14px rgba(31, 45, 61, 0.5);
}

/* Vorderseite: blaues Feld mit Logo, Graphit-Band mit dem Leistungsversprechen */

.karte--vorn {
    z-index: 1;
    background: var(--graphit);
}

.karte__feld {
    flex: 1;
    display: flex;
    align-items: center;
    padding-inline: 1.5rem;
    padding-inline: 7.5cqi;
    border-radius: var(--radius-karte) var(--radius-karte) 0 0;
    background: linear-gradient(135deg, var(--blau) 0%, var(--blau-tief) 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    gap: 2.4cqi;
    margin: 0;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}

.logo__wort {
    font-size: clamp(1.6rem, 4.2vw, 3.2rem);
    font-size: 10.2cqi;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo__it {
    padding: 0.3rem 0.5rem;
    padding: 1.3cqi 2.1cqi 1.1cqi;
    border: 3px solid #fff;
    border-width: max(2px, 0.65cqi);
    background: var(--graphit);
    font-size: clamp(1rem, 2.5vw, 1.9rem);
    font-size: 5.9cqi;
    letter-spacing: 0.04em;
}

.karte__band {
    margin: 0;
    padding: 0.9rem 1.5rem;
    padding: 3.5cqi 7.5cqi;
    color: #fff;
    font-size: 0.9375rem;
    font-size: max(0.9375rem, 3.7cqi);
    font-weight: 600;
    line-height: 1.25;
    text-wrap: balance;
}

/* Rückseite: Name, Titel, Kontaktdaten */

.karte--hinten {
    background:
        linear-gradient(var(--blau), var(--blau)) top / 100% 5px no-repeat,
        var(--papier);
}

.karte__innen {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.7rem 1.5rem 1.2rem;
    padding: calc(6.6cqi + 5px) 7.5cqi 6cqi;
}

.karte__name {
    margin: 0;
    color: var(--graphit);
    font-size: 1.625rem;
    font-size: max(1.625rem, 8.2cqi);
    font-weight: 700;
    line-height: 1.08;
}

.karte__titel {
    margin: 0.2rem 0 0;
    margin-top: 0.9cqi;
    color: var(--blau-text);
    font-size: 1rem;
    font-size: max(1rem, 4.3cqi);
    font-weight: 600;
    line-height: 1.3;
}

.karte__daten {
    display: grid;
    gap: 0.3rem;
    gap: max(0.25rem, 1.1cqi);
    margin: auto 0 0;
    padding-top: 1rem;
    font-size: 0.9375rem;
    font-size: max(0.9375rem, 3.9cqi);
    line-height: 1.35;
}

.karte__daten div {
    display: grid;
    grid-template-columns: 4.6em minmax(0, 1fr);
    align-items: baseline;
}

.karte__daten dt {
    color: var(--text-leise);
    font-size: 0.8125rem;
    font-size: max(0.8125rem, 0.84em);
}

.karte__daten dd {
    margin: 0;
    color: var(--graphit);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.karte__daten a {
    text-decoration: none;
}

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

.aktionen {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: clamp(1.75rem, 4vw, 2.75rem) 0 0;
}

.knopf {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border: 2px solid var(--blau-text);
    border-radius: 5px;
    background: var(--blau-text);
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.knopf:hover {
    border-color: var(--graphit);
    background: var(--graphit);
}

.knopf--zweit {
    background: var(--papier);
    color: var(--blau-text);
}

.knopf--zweit:hover {
    background: var(--papier);
    color: var(--graphit);
}

/* Ab Tablet-Breite liegen beide Seiten nebeneinander, die Rückseite leicht versetzt */

@media (min-width: 48rem) {
    .karte--hinten {
        margin-top: clamp(1.25rem, 3.5vw, 3rem);
    }
}

@media (max-width: 35.99rem) {
    .marke {
        padding-block: 0.9rem 0.2rem;
    }

    .leiste nav {
        width: 100%;
    }

    .leiste ul {
        flex-wrap: nowrap;
        justify-content: space-between;
        column-gap: 0.5rem;
    }

    .leiste nav a {
        padding-top: 0.7rem;
        font-size: clamp(0.8125rem, 3.9vw, 1rem);
    }
}

@media (max-width: 47.99rem) {
    .karten {
        grid-template-columns: minmax(0, 28rem);
    }

    .karte--hinten {
        --von-x: 0;
        --von-y: -45%;
    }
}

/* Einziger Bewegungsmoment: Die Rückseite wird unter der Vorderseite hervorgezogen */

@media (prefers-reduced-motion: no-preference) {
    .karte--hinten {
        animation: ausgeben 0.7s cubic-bezier(0.22, 0.8, 0.24, 1) 0.2s backwards;
    }
}

@keyframes ausgeben {
    from {
        opacity: 0;
        transform: translate(var(--von-x, -45%), var(--von-y, 0));
    }
}

/* --------------------------------------------------------------------------
   Leistungen
   -------------------------------------------------------------------------- */

.blatt {
    padding-block: clamp(3rem, 7vw, 5.5rem);
    background: var(--papier);
}

.blatt h2,
.kontakt h2 {
    margin: 0 0 1rem;
    color: var(--graphit);
    font-size: clamp(1.75rem, 3.4vw, 2.25rem);
    font-weight: 700;
    line-height: 1.15;
}

.einleitung {
    max-width: 44rem;
    margin: 0 0 clamp(2rem, 5vw, 3.25rem);
    font-size: clamp(1.125rem, 2vw, 1.3125rem);
    line-height: 1.5;
}

.leistungen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
    column-gap: clamp(1.5rem, 4vw, 3.5rem);
    margin: 0;
}

.leistungen > div {
    padding: 1.05rem 0 2rem;
    border-top: 3px solid var(--blau);
}

.leistungen dt {
    margin-bottom: 0.3rem;
    color: var(--graphit);
    font-size: 1.3125rem;
    font-weight: 700;
    line-height: 1.25;
}

.leistungen dd {
    margin: 0;
    color: var(--text-leise);
}

/* --------------------------------------------------------------------------
   Kontakt und Fußzeile
   -------------------------------------------------------------------------- */

.kontakt {
    padding-block: clamp(3rem, 7vw, 5rem);
    background: var(--graphit);
    color: #dfe2e6;
}

.kontakt h2 {
    color: #fff;
}

.kontakt p {
    max-width: 40rem;
    margin: 0;
}

.kontakt .kontakt__wege {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2.75rem;
    max-width: none;
    margin-top: 1.75rem;
    font-size: clamp(1.375rem, 3.2vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
}

.kontakt__wege a {
    color: #fff;
    text-decoration-color: var(--blau);
    text-decoration-thickness: 0.11em;
    text-underline-offset: 0.24em;
    overflow-wrap: anywhere;
}

.kontakt__wege a:hover {
    color: var(--blau-hell);
}

.fuss {
    border-top: 1px solid #4a4a4a;
    background: var(--graphit);
    color: #c9ccd1;
    font-size: 1rem;
}

.fuss__innen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 2rem;
}

.fuss p {
    margin: 0;
    padding-block: 1rem;
}

.fuss ul {
    display: flex;
    flex-wrap: wrap;
    column-gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fuss a {
    display: block;
    padding-block: 1rem;
    color: #fff;
}

.fuss a:hover {
    color: var(--blau-hell);
}

/* --------------------------------------------------------------------------
   Textseiten: Impressum und Datenschutzerklärung
   -------------------------------------------------------------------------- */

.text {
    max-width: 44rem;
}

.text h1 {
    margin: 0 0 1.5rem;
    color: var(--graphit);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
    overflow-wrap: break-word;
    hyphens: auto;
}

.blatt .text h2 {
    margin: 2.5rem 0 0.6rem;
    font-size: 1.4375rem;
    line-height: 1.25;
}

.text p,
.text ul,
.text address {
    margin: 0 0 1rem;
}

.text address {
    font-style: normal;
}

.text ul {
    padding-left: 1.25rem;
}

.text li {
    margin-bottom: 0.3rem;
}

.text a {
    overflow-wrap: anywhere;
}

.text .vorspann {
    font-size: clamp(1.125rem, 2vw, 1.3125rem);
    line-height: 1.5;
}

.text dl {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0.2rem 1.25rem;
    margin: 0 0 1rem;
}

.text dt {
    color: var(--text-leise);
}

.text dd {
    margin: 0;
}

.hinweis {
    margin: 1.75rem 0;
    padding: 1.1rem 1.35rem 0.35rem;
    border-left: 4px solid var(--blau);
    background: #eef4fb;
}

.blatt .text .hinweis h3 {
    margin: 0 0 0.5rem;
    color: var(--graphit);
    font-size: 1.1875rem;
    line-height: 1.3;
}

.stand {
    margin-top: 2.5rem;
    color: var(--text-leise);
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   Druck
   -------------------------------------------------------------------------- */

@media print {
    .leiste nav,
    .aktionen,
    .sprung,
    .fuss nav {
        display: none;
    }

    body {
        font-size: 11pt;
    }

    .tisch {
        padding-block: 0 1.5rem;
        background: none;
    }

    .karte {
        break-inside: avoid;
        box-shadow: none;
        outline: 1px solid #999;
        animation: none;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .leiste,
    .kontakt,
    .fuss {
        background: none;
        color: #000;
    }

    .marke,
    .kontakt h2,
    .kontakt__wege a,
    .fuss a {
        color: #000;
    }

    .marke__it {
        border-color: #000;
    }

    .blatt,
    .kontakt {
        padding-block: 1.5rem;
    }
}
