/* PDAD Unternehmensberatung – Stylesheet
   Schriften: IBM Plex Sans / IBM Plex Sans Condensed (SIL OFL), lokal eingebunden. */

@font-face {
    font-family: "Plex Sans";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Plex Sans";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
    font-family: "Plex Sans Condensed";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2");
}

:root {
    --papier: #f4f6f3;
    --flaeche: #e9eeeb;
    --tinte: #16242c;
    --petrol: #0d5560;
    --gelb: #f2c230;
    --linie: #c9d2ce;
    --grau: #46575f;

    --schrift: "Plex Sans", system-ui, "Segoe UI", Roboto, sans-serif;
    --schrift-eng: "Plex Sans Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

    --rand: clamp(1.25rem, 4vw, 2.5rem);
    --breite: 74rem;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 1rem;
}

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

body {
    margin: 0;
    background: var(--papier);
    color: var(--tinte);
    font: 400 1.125rem/1.6 var(--schrift);
}

h1,
h2,
h3 {
    font-family: var(--schrift-eng);
    font-weight: 600;
}

h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 0 0 1rem;
}

h3 {
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0 0 0.5rem;
}

a:focus-visible {
    outline: 3px solid var(--petrol);
    outline-offset: 3px;
}

.rahmen {
    width: min(100% - 2 * var(--rand), var(--breite));
    margin-inline: auto;
}

/* ---------- Kopfbereich ---------- */

.sprunglink {
    position: absolute;
    left: var(--rand);
    top: -4rem;
    z-index: 10;
    padding: 0.6rem 1rem;
    background: var(--tinte);
    color: var(--papier);
}

.sprunglink:focus {
    top: 0.5rem;
}

.kopf {
    padding-block: 1.25rem;
    border-bottom: 1px solid var(--linie);
}

.kopf-innen {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem 2rem;
}

.wortmarke {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    color: inherit;
    text-decoration: none;
}

.wortmarke-name {
    font: 600 1.75rem/1 var(--schrift-eng);
    letter-spacing: 0.04em;
}

.wortmarke-zusatz {
    font-size: 0.95rem;
    color: var(--grau);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.5rem;
    font-size: 1rem;
}

.nav a {
    padding-block: 0.25rem;
    border-bottom: 2px solid transparent;
    color: inherit;
    text-decoration: none;
}

.nav a:hover {
    border-bottom-color: var(--gelb);
}

/* ---------- Einstieg ---------- */

.hero {
    padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}

.hero-titel {
    max-width: 26ch;
    margin: 0 0 1.5rem;
    font-size: clamp(2.6rem, 6.4vw, 5rem);
    line-height: 1.02;
    letter-spacing: -0.01em;
}

.hero-text {
    max-width: 38rem;
    margin: 0 0 2rem;
    font-size: 1.25rem;
}

.hero-aktionen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 2rem;
    margin: 0 0 clamp(1.5rem, 4vw, 3rem);
}

.knopf {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    border: 2px solid var(--tinte);
    border-radius: 3px;
    background: var(--tinte);
    color: var(--papier);
    font-weight: 600;
    text-decoration: none;
}

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

.textlink {
    color: var(--petrol);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.25em;
}

/* Der Ablauf: Aus verstreuten Insellösungen wird ein durchgängiger Prozess.
   Die Animation läuft einmal beim Laden; ohne Animation (reduzierte Bewegung)
   steht sofort der fertige Ablauf da. */

.fluss-rahmen {
    padding-block: 3.5rem 1rem;
    overflow-x: clip;
}

.fluss {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.schritt {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 4.75rem;
    padding: 1rem 1.25rem;
    border-radius: 3px;
    background: var(--gelb);
    color: var(--tinte);
    animation: setzen 1.5s cubic-bezier(0.22, 0.9, 0.3, 1) 0.4s both;
}

.schritt > span {
    grid-area: 1 / 1;
}

.alt {
    font-weight: 600;
    animation: alt-aus 1.5s ease 0.4s both;
}

.neu {
    font: 600 1.5rem/1.1 var(--schrift-eng);
    animation: neu-ein 1.5s ease 0.4s both;
}

.schritt:nth-child(1) { --dx: 70%;  --dy: -110%; --rot: -6deg; }
.schritt:nth-child(2) { --dx: -40%; --dy: 130%;  --rot: 5deg; }
.schritt:nth-child(3) { --dx: 30%;  --dy: -140%; --rot: -4deg; }
.schritt:nth-child(4) { --dx: -80%; --dy: 90%;   --rot: 7deg; }

/* Verbindungen zwischen den Schritten: mobil senkrecht ... */
.schritt:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 1.5rem;
    width: 2px;
    height: 2.5rem;
    background: var(--tinte);
    animation: leitung 0.5s ease 1.7s both;
}

.schritt:not(:last-child)::before {
    content: "";
    position: absolute;
    top: calc(100% + 2.5rem - 8px);
    left: calc(1.5rem - 5px);
    border: 6px solid transparent;
    border-top: 8px solid var(--tinte);
    border-bottom: 0;
    animation: leitung 0.5s ease 1.7s both;
}

/* ... am Desktop waagerecht */
@media (min-width: 52rem) {
    .fluss {
        grid-template-columns: repeat(4, 1fr);
    }

    .schritt:not(:last-child)::after {
        top: 50%;
        left: 100%;
        width: 2.5rem;
        height: 2px;
        margin-top: -1px;
    }

    .schritt:not(:last-child)::before {
        top: 50%;
        left: calc(100% + 2.5rem - 8px);
        margin-top: -6px;
        border: 6px solid transparent;
        border-left: 8px solid var(--tinte);
        border-right: 0;
    }
}

.fluss-unterschrift {
    margin: 2.5rem 0 0;
    font-size: 1rem;
    color: var(--grau);
}

@keyframes setzen {
    from { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); }
    to   { transform: none; }
}

@keyframes alt-aus {
    0%, 45%   { opacity: 1; }
    70%, 100% { opacity: 0; }
}

@keyframes neu-ein {
    0%, 45%   { opacity: 0; }
    70%, 100% { opacity: 1; }
}

@keyframes leitung {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .schritt,
    .neu,
    .schritt::before,
    .schritt::after {
        animation: none !important;
    }

    .alt {
        display: none;
    }
}

/* ---------- Abschnitte ---------- */

.sektion {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.sektion-flaeche {
    background: var(--flaeche);
}

.sektion-dunkel {
    background: var(--tinte);
    color: var(--papier);
}

.sektion-dunkel a:focus-visible {
    outline-color: var(--gelb);
}

.zweispaltig {
    display: grid;
    gap: 2rem clamp(2rem, 6vw, 5rem);
}

@media (min-width: 60rem) {
    .zweispaltig {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .sektion-kopf {
        position: sticky;
        top: 2rem;
        align-self: start;
    }
}

.sektion-kopf p {
    max-width: 30rem;
    margin: 0;
    color: var(--grau);
}

/* Leistungen */

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

.leistungen li {
    padding-block: 1.5rem;
    border-top: 1px solid var(--linie);
}

.leistungen li:first-child {
    border-top: 2px solid var(--tinte);
}

.leistungen p {
    max-width: 38rem;
    margin: 0;
}

/* Vorgehen: eine echte Abfolge, deshalb nummeriert */

.stufen {
    display: grid;
    gap: 2rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: stufe;
}

@media (min-width: 48rem) {
    .stufen {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 72rem) {
    .stufen {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stufe {
    padding-top: 1rem;
    border-top: 2px solid var(--tinte);
    counter-increment: stufe;
}

.stufe::before {
    content: counter(stufe);
    display: block;
    margin-bottom: 0.75rem;
    color: var(--petrol);
    font: 600 2.75rem/1 var(--schrift-eng);
}

.stufe p {
    margin: 0;
    color: var(--grau);
}

/* Erfahrung */

.grossaussage {
    max-width: 22ch;
    margin: 0 0 3rem;
    font-size: clamp(2.1rem, 5.2vw, 4rem);
    line-height: 1.05;
}

.erfahrung-raster {
    display: grid;
    gap: 2.5rem clamp(2rem, 6vw, 5rem);
    padding-top: 2rem;
    border-top: 2px solid var(--gelb);
}

@media (min-width: 60rem) {
    .erfahrung-raster {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
}

.erfahrung-raster p {
    max-width: 34rem;
    margin: 0;
}

.grundsaetze {
    display: grid;
    gap: 1.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.grundsaetze h3 {
    color: var(--gelb);
}

.grundsaetze p {
    max-width: 36rem;
    margin: 0;
}

/* Kontakt */

.kontakt-daten {
    font-style: normal;
}

.kontakt-liste {
    display: grid;
    gap: 1.25rem;
    margin: 0;
}

.kontakt-liste dt {
    font-size: 0.95rem;
    color: var(--grau);
}

.kontakt-liste dd {
    margin: 0;
    font-size: 1.25rem;
}

.platzhalter {
    padding: 0.1rem 0.4rem;
    border-radius: 2px;
    background: var(--gelb);
    outline: 1px dashed var(--tinte);
}

/* ---------- Fußbereich ---------- */

.fuss {
    padding-block: 2rem;
    border-top: 1px solid var(--linie);
    font-size: 0.95rem;
    color: var(--grau);
}

.fuss-innen {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem 2rem;
}

.fuss-innen p {
    margin: 0;
}

.fuss-links {
    display: flex;
    gap: 1.5rem;
}

.fuss a {
    color: inherit;
    text-underline-offset: 0.2em;
}

/* ---------- Textseiten (Impressum, Datenschutz) ---------- */

.textseite {
    padding-block: clamp(2.5rem, 7vw, 5rem);
}

.textseite-inhalt {
    max-width: 42rem;
}

.textseite-inhalt h1 {
    margin: 0 0 2rem;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.05;
}

.textseite-inhalt h2 {
    margin: 2.5rem 0 0.75rem;
    font-size: 1.6rem;
}

.textseite-inhalt p,
.textseite-inhalt ul {
    margin: 0 0 1rem;
}

.textseite-inhalt a {
    color: var(--petrol);
}
