/* ==========================================================================
   cet.css — gestalterisches Fundament

   Eigener Code. Wird NACH combined.css geladen: die Regeln hier haben teils
   dieselbe Spezifität wie die des Themes, und bei Gleichstand gewinnt das
   später geladene Stylesheet.

   Spec: docs/superpowers/specs/2026-09-21-design-fundament-design.md

   Gliederung
     1  Schriften
     2  Tokens
     3  Grundsatz: Typografie
     4  Komponenten
     5  Consent-Layer
   ========================================================================== */


/* ==========================================================================
   1 · Schriften

   combined.css verwies in 60 Regeln absolut auf die Produktionsdomain und lud
   zehn Lato-Schnitte in fünf Formaten. Hier bleiben vier Schnitte in woff2,
   mit relativen Pfaden.

   Poppins war im Theme für alle Überschriften und die Navigation gesetzt,
   wurde aber nie geladen — sämtliche Überschriften rendern deshalb bis zu
   dieser Änderung in der Systemschrift.
   ========================================================================== */

/* Poppins 300 — nur der Schriftzug „Center of European Transfer“ im Hero,
   deshalb ohne latin-ext. */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(../fonts/poppins-latin-300-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Poppins 500 — H3 aufwärts, Navigation, Buttons */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/poppins-latin-500-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* latin-ext trägt die polnischen Zeichen: ł ą ę ś ż ź ć ń */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(../fonts/poppins-latin-ext-500-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

/* Poppins 600 — H1 und H2 */
@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/poppins-latin-600-normal.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
        U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122,
        U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(../fonts/poppins-latin-ext-600-normal.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
        U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
        U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
        U+A720-A7FF;
}

/* FontAwesome. Die drei Regeln standen in combined.css und listeten je fünf
   Formate; ausgeliefert wurden dadurch bis zu 2,9 MB Schriftdateien für eine
   Handvoll Icons. font-display: block bleibt: bei Symbolschriften ist ein
   kurzer Leerraum besser als ein kurz aufblitzendes Ersatzzeichen.

   "Font Awesome 5 Free" in 400 (regular) wird im Markup nirgends verwendet.
   Die Regel bleibt trotzdem stehen — 13 KB gegen das Risiko, dass eine der
   Fremdbibliotheken des Kundenbereichs sie doch zieht. */
/* "Font Awesome 5 Brands" ist entfallen: 77 KB für ein einziges Symbol,
   das Instagram-Logo im Fuß. Es steht dort jetzt als SVG im Markup. */

@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url(../webfonts/fa-regular-400.woff2) format('woff2');
}

/* Der volle Schnitt: rund 1000 Symbole, 78 KB. Er steht zuerst und ohne
   unicode-range und ist damit die Rückfallebene — wer ein Symbol einbaut, das
   nicht im Auszug steckt, bekommt es zu sehen, es kostet dann nur eine zweite
   Datei. Die Prüfung in tests/Feature/IconSubsetTest.php meldet diesen Fall. */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url(../webfonts/fa-solid-900.woff2) format('woff2');
}

/* Der Auszug mit den 37 tatsächlich verwendeten Symbolen: 3 KB statt 78 KB.
   Er steht nach dem vollen Schnitt — bei gleicher Familie und überlappendem
   unicode-range gewinnt die zuletzt genannte Deklaration, und außerhalb des
   Bereichs greift sie gar nicht erst.

   Neu erzeugen nach jedem neuen Symbol: npm run icons */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url(../webfonts/fa-solid-900-subset.woff2) format('woff2');
    unicode-range: U+F002, U+F007, U+F00C, U+F00D, U+F015, U+F017, U+F018, U+F01C,
        U+F02E, U+F053, U+F054, U+F060, U+F061, U+F062, U+F067, U+F068, U+F06C,
        U+F06E, U+F070, U+F073, U+F077, U+F078, U+F095, U+F0C0, U+F0C5, U+F0C9,
        U+F0CA, U+F0D1, U+F0E0, U+F1B9, U+F201, U+F207, U+F234, U+F2B5, U+F2B9,
        U+F2F5, U+F303, U+F304, U+F362, U+F3C5, U+F46C, U+F4FE, U+F503, U+F508, U+F559, U+F574,
        U+F5B6, U+F7A2, U+F7D2;
}

/* Lato — Fließtext. Der vorhandene Satz deckt latin und latin-ext in einer
   Datei ab, deshalb ohne unicode-range. */
@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(../fonts/lato-v23-latin-ext_latin-regular.woff2) format('woff2');
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(../fonts/lato-v23-latin-ext_latin-700.woff2) format('woff2');
}


/* ==========================================================================
   2 · Tokens

   Navy und Gelb sind durch Logo, Fahrzeugbeschriftung und Drucksachen
   gesetzt. Die Kontrastwerte in den Kommentaren sind gegen --surface
   gerechnet (WCAG 2.1).
   ========================================================================== */

:root {
    /* Schrift */
    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-head: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Farbe */
    --ink: #002237;          /* 16,36:1 — Überschriften, Fließtext */
    --ink-2: #33505f;        /*  8,56:1 — Sekundärtext */
    --ink-3: #57707e;        /*  5,22:1 — Hilfetext, Beschriftungen */
    --deep: #004563;         /* 10,34:1 — Links, Fokusring */

    --accent: #ffde22;       /* nur Flächen, nie Text: auf Weiß nur 1,34:1 */
    --accent-ink: #002237;   /* 12,25:1 auf --accent */

    --surface: #ffffff;
    --surface-2: #f4f7f9;

    --line: #dde5ea;         /* dekorative Trenner */
    --line-strong: #7b8f9d;  /*  3,36:1 — Rahmen von Bedienelementen */

    --danger: #a4231b;       /*  7,41:1 */
    --success: #1d6b45;      /*  6,48:1 */

    /* Abstand, 4er-Raster */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;

    --radius: 4px;
    --radius-pill: 25px;

    /* Mindestgröße für Bedienelemente */
    --target: 44px;

    /* Abstand vom Brotkrumenpfad zum ersten Inhalt, auf allen Unterseiten
       gleich. Vorher je nach Seite 30, 55, 120 oder 240px. */
    --page-gap: 56px;
}

@media (max-width: 767px) {
    :root {
        --page-gap: 40px;
    }
}


/* ==========================================================================
   3 · Grundsatz: Typografie
   ========================================================================== */

/* Gilt für beide Flächen.

   scrollbar-gutter hält den Platz der Bildlaufleiste frei, auch wenn eine
   Seite kürzer als das Fenster ist. Ohne das ändert sich die nutzbare Breite
   je nach Seitenlänge, und alles Zentrierte — allen voran die Navigation —
   springt bei jedem Seitenwechsel um die halbe Leistenbreite zur Seite.
   overflow-y: scroll ist die Rückfallebene für Browser ohne scrollbar-gutter.

   Die Kantenglättung stand vorher nur auf body.site-public. Glyphen wurden
   dadurch auf der Website anders gerastert als im Kundenbereich, was die
   Textbreite der Navigation minimal verschob. */
html {
    overflow-y: scroll;
    scrollbar-gutter: stable;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Das Theme gibt #wrap overflow: hidden, damit die schräge Fläche im
   Seitenkopf keinen waagrechten Scrollbalken erzeugt. hidden macht #wrap aber
   zum Scroll-Container, und position: sticky bezieht sich dann auf ihn statt
   auf das Fenster — die Übersicht im Auftragsformular lief nicht mit. clip
   schneidet genauso ab, ohne Scroll-Container zu sein. Browser ohne clip
   (Safari vor 16) behalten hidden und damit eine stehende Übersicht. */
#wrap {
    overflow: hidden;
    overflow: clip;
}

/* Nur die öffentlichen Seiten. Die Kundenanwendung erbt ihre Schriftgröße
   vom Theme — mehrere ihrer Bestandteile (Detail-Modal, Navigations-Untermenü)
   hängen daran, ohne das je zu deklarieren. */
body.site-public {
    /* War Lato 300 in 18px/30px. Lato 300 auf Weiß ist für Fließtext zu dünn;
       400 in 17px mit 1.65 liest sich am Bildschirm deutlich ruhiger. */
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--surface);
}

/* Die Größen rechnen bewusst in px, nicht in rem: Bootstrap 3 aus
   public/assets/css/bootstrap.css setzt html { font-size: 10px } und wird auf
   sieben Kundenbereichs-Seiten NACH diesem Stylesheet geladen. Jede
   rem-Angabe schrumpfte dort auf 62,5 Prozent. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    letter-spacing: -0.01em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(28px, 19.2px + 2.2vw, 42px);
    font-weight: 600;
    line-height: 1.15;
}

h2 {
    font-size: clamp(24px, 17.6px + 1.6vw, 33px);
    font-weight: 600;
    line-height: 1.2;
}

h3 {
    font-size: clamp(20px, 16.8px + 0.8vw, 27px);
    font-weight: 500;
    line-height: 1.25;
}

h4, h5, h6 {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.3;
}

/* Seitenkopf der Unterseiten (seit 2026-11-25 wie der Hero der Startseite).

   Foto formatfüllend unter der Kopfzeile, links ein Navy-Verlauf, darauf der
   Titel linksbündig und ein gelber Strich. Vorher stand der Titel in
   Großbuchstaben auf einer schrägen Navy-Fläche des Themes, darüber das Logo
   als Bild mit eingebauter Karte (logo_big_with_underline.png). Auf den
   Unterseiten steht das Logo ohnehin in der Kopfzeile; zweimal war es eine
   Dopplung.

   --header-overlap: wie weit die Kopfzeile den Seitenkopf überdeckt, misst
   layout/header-offset. Ohne JavaScript gelten die Werte hier. */
#page-header {
    --header-overlap: 0px;
    position: relative;
    overflow: hidden;
    background-color: var(--ink);
    background-image: none;
}

#page-header .page-header-bg {
    position: absolute;
    z-index: 0;
    top: var(--header-overlap);
    right: 0;
    bottom: 0;
    left: 0;
    background-position: 70% center;
    background-repeat: no-repeat;
    background-size: cover;
}

#page-header::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg,
        rgba(0, 34, 55, .9) 0%,
        rgba(0, 34, 55, .72) 100%);
}

#page-header .container {
    position: relative;
    z-index: 2;
}

/* Gleich hoch, ob der Titel eine Zeile braucht oder zwei ("Bewerbung
   Subunternehmer", "Seite nicht gefunden"): die Mindesthöhe rechnet immer mit
   zwei Zeilen (2 × 1.15em) und dem Strich darunter (20px + 4px). */
#page-header .page-header-title {
    box-sizing: border-box;
    display: block;
    width: auto;
    max-width: 640px;
    min-height: calc(var(--header-overlap) + 40px + 2.3em + 24px + 36px);
    margin: 0;
    padding: calc(var(--header-overlap) + 40px) 0 36px;
    color: var(--surface);
    font-family: var(--font-body);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    text-align: left;
    text-transform: none;
}

/* Die schräge Fläche des Themes samt Logo. */
#page-header .page-header-title::before {
    content: none;
}

#page-header .page-header-title::after {
    width: 64px;
    margin-top: 20px;
    border-top: 4px solid var(--accent);
    border-radius: 2px;
}

@media (min-width: 768px) {
    #page-header {
        --header-overlap: 112px;
    }

    #page-header::before {
        background: linear-gradient(90deg,
            rgba(0, 34, 55, .92) 0%,
            rgba(0, 34, 55, .76) 32%,
            rgba(0, 34, 55, .3) 56%,
            rgba(0, 34, 55, 0) 72%);
    }

    #page-header .page-header-title {
        min-height: calc(var(--header-overlap) + 88px + 2.3em + 24px + 72px);
        padding: calc(var(--header-overlap) + 88px) 0 72px;
        font-size: clamp(30px, 2.6vw, 40px);
    }
}

/* Bis 1199px nimmt der Titel einen größeren Teil der Breite ein. */
@media (min-width: 768px) and (max-width: 1199px) {
    #page-header::before {
        background: linear-gradient(90deg,
            rgba(0, 34, 55, .92) 0%,
            rgba(0, 34, 55, .8) 45%,
            rgba(0, 34, 55, .35) 70%,
            rgba(0, 34, 55, 0) 88%);
    }
}

.site-public small,
.site-public .ewf-headline__subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink-3);
}

/* War font-weight 300 aus dem Theme. */
.ewf-headline__subtitle {
    font-weight: 400;
    letter-spacing: 0.02em;
}

.ewf-counter__standard,
.ewf-counter__symbol {
    font-family: var(--font-head);
    font-weight: 600;
}

.ewf-counter__title {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--ink-2);
}

/* Links im Fließtext. Navigation und Buttons sind ausgenommen — und der
   Kundenbereich ebenfalls: dessen Seitennavigation besteht aus schlichten
   Links innerhalb von .ewf-section__content und wurde dadurch komplett
   unterstrichen. */
.site-public .ewf-section__content a:not(.ewf-btn):not(.btn):not(.ewf-headline__title a):not(.ewf-hero__link),
#footer a:not(.ewf-social-icon) {
    color: var(--deep);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-public .ewf-section__content a:not(.ewf-btn):not(.btn):not(.ewf-headline__title a):not(.ewf-hero__link):hover,
#footer a:not(.ewf-social-icon):hover {
    color: var(--ink);
}

/* Footer.
   Derselbe Befund wie bei der Navigation: der Footer deklarierte weder
   Schriftgröße noch Zeilenhöhe und erbte beides vom body. Auf den sieben
   Kundenbereichs-Seiten, die Bootstrap 3 nachladen, setzt dieses
   body { line-height: 1.42857143 } — der Footer sah dort also anders aus als
   auf der Website. Er ist gemeinsames Rahmenteil und deklariert seine
   Typografie jetzt selbst, in px. */

#footer,
#footer-bottom {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
}

#footer .widget-title {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.3;
}

.footer-legal-links a {
    font-size: 15px;
}


/* Navigation.
   Die Navigation ist gemeinsames Rahmenteil und muss auf jeder Seite gleich
   aussehen. Sie erbte ihre Typografie bisher vom body — und genau das hält
   auf dieser Website nicht: sieben der dreizehn Kundenbereichs-Views laden
   Bootstrap 3 (public/assets/css/bootstrap.css) NACH unseren Stylesheets und
   setzen dort body { line-height: 1.42857143 }. Auf /user/anfragen sah die
   Navigation deshalb anders aus als auf allen übrigen Seiten.
   Sie deklariert ihre Typografie deshalb vollständig selbst. */

.sf-menu > li > a,
.sf-menu > li.dropdown > a,
.sf-menu > li.mega > a {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
}

.sf-menu li.dropdown ul a,
.sf-menu li.mega .sf-mega a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    /* Die Einträge lagen knapp unter der Mindestgröße für Bedienelemente;
       der Sprachumschalter besteht aus einer Flagge von wenigen Pixeln. */
    min-height: var(--target);
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.65;
}

.sf-menu li.dropdown ul a img {
    flex: none;
}


/* Navigation, Erscheinungsbild.
   Das Theme färbte den Hauptpunkt beim Überfahren als dunklen Block mit
   gelber Schrift und hängte darunter eine dunkle Liste mit gelben Einträgen
   und Trennlinien an. Jetzt: Hauptpunkte bleiben dunkel auf Weiß und bekommen
   einen gelben Balken; das Untermenü ist ein weißes Panel mit Schatten.
   #desktop-menu statt .sf-menu, weil das Theme die gelbe Schrift mit
   !important setzt und nur höhere Spezifität dagegen ankommt. Das
   Handymenü ist ein Klon ohne diese ID und bleibt unberührt. */

#desktop-menu > li > a,
#desktop-menu > li > a:hover,
#desktop-menu > li > a:focus,
#desktop-menu > li.sfHover > a {
    /* !important gegen .sfHover:hover a { background: … !important } im Theme. */
    background: transparent !important;
    border-bottom-color: transparent;
    color: var(--ink) !important;
}

#desktop-menu > li > a::before {
    position: absolute;
    right: 22px;
    bottom: 26px;
    left: 22px;
    height: 3px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .2s ease;
    content: "";
}

@media (max-width: 1599px) {
    #desktop-menu > li > a::before {
        right: 0;
        left: 0;
    }
}

#desktop-menu > li:hover > a::before,
#desktop-menu > li.sfHover > a::before,
#desktop-menu > li > a:focus-visible::before,
#desktop-menu > li.current > a::before {
    transform: scaleX(1);
}

/* Tastaturfokus. Der globale Rahmen (a:focus-visible) umschloss hier den
   ganzen Hauptpunkt samt 40 px Polster. Stattdessen wird der Balken dunkel:
   Gelb auf Weiß reicht als einziges Fokuszeichen nicht (1,34:1). */
#desktop-menu > li > a:focus-visible {
    outline: none;
}

#desktop-menu > li > a:focus-visible::before {
    background: var(--deep);
}

/* Mausfokus. Der Kundenbereich lädt Bootstrap 3 mit
   a:focus { outline: 5px auto -webkit-focus-ring-color } und
   a:hover, a:focus { text-decoration: underline }. Ein Klick ohne
   Weiterleitung (gedrückt und weggezogen) ließ deshalb einen Rahmen um den
   Hauptpunkt und die Unterstreichung stehen. Der Tastaturfokus läuft weiter
   über :focus-visible. */
#desktop-menu a:hover,
#desktop-menu a:focus {
    text-decoration: none;
}

.site-app a:focus:not(:focus-visible) {
    outline: 0;
}

/* Pfeil an Hauptpunkten mit Untermenü. */
#desktop-menu > li.dropdown > a::after {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    transition: transform .2s ease;
    content: "";
}

#desktop-menu > li.dropdown:hover > a::after,
#desktop-menu > li.dropdown.sfHover > a::after {
    transform: translateY(0) rotate(225deg);
}

/* Panel. Es überlappt das Polster des Hauptpunkts, damit zwischen Punkt und
   Panel keine Lücke entsteht, in der das Menü beim Überfahren zuklappt. */
#desktop-menu li.dropdown > ul {
    top: calc(100% - 18px);
    left: 0;
    min-width: 250px;
    padding: var(--space-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: 0 18px 40px -12px rgba(0, 34, 55, .28), 0 4px 10px rgba(0, 34, 55, .06);
    animation: cet-nav-in .16s ease-out;
}

/* Die letzten beiden Punkte stehen am rechten Rand, ihr Panel öffnet nach links. */
#desktop-menu > li.dropdown:nth-last-child(-n+2) > ul {
    right: 0;
    left: auto;
}

@keyframes cet-nav-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    #desktop-menu li.dropdown > ul { animation: none; }
    #desktop-menu > li > a::before,
    #desktop-menu > li.dropdown > a::after { transition: none; }
}

#desktop-menu li.dropdown ul a {
    box-sizing: border-box;
    gap: var(--space-3);
    min-height: var(--target);
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: transparent !important;
    color: var(--ink) !important;
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}

/* Die alte Hover-Linie des Themes. */
#desktop-menu li.dropdown li > a:hover::before {
    content: none;
}

#desktop-menu li.dropdown ul a:hover,
#desktop-menu li.dropdown ul a:focus-visible {
    outline-offset: -2px;
    border-radius: 8px;
    background: var(--surface-2) !important;
    color: var(--deep) !important;
}

#desktop-menu li.dropdown ul a .nav-icon {
    flex: none;
    width: 18px;
    color: var(--ink-3);
    font-size: 15px;
    text-align: center;
    transition: color .15s ease;
}

#desktop-menu li.dropdown ul a:hover .nav-icon,
#desktop-menu li.dropdown ul a:focus-visible .nav-icon {
    color: var(--deep);
}

#desktop-menu li.dropdown ul li.nav-separated {
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--line);
}

#desktop-menu li.dropdown ul li.nav-danger > a:hover,
#desktop-menu li.dropdown ul li.nav-danger > a:focus-visible,
#desktop-menu li.dropdown ul li.nav-danger > a:hover .nav-icon {
    color: var(--danger) !important;
}

#desktop-menu li.dropdown ul li.nav-danger > a:hover {
    background: #fbefee !important;
}

/* Handymenü: die Symbole aus dem Desktop-Markup ausrichten. */
#mobile-menu .nav-icon {
    width: 18px;
    margin-right: var(--space-2);
    text-align: center;
}


/* Topbar.
   Das Theme legt die Einträge als Tabelle mit fester Höhe (36px) und
   overflow: hidden an. Der Slogan brach dadurch um und seine zweite Zeile
   wurde abgeschnitten; angemeldet, mit vier Einträgen, auch die
   Telefonnummer. Jetzt eine Flex-Zeile auf Containerbreite, bündig mit Logo
   und Navigation; der Slogan kürzt sich, statt umzubrechen. Gemeinsames
   Rahmenteil, deshalb px und eigene Typografie.

   Ab 768px liegt der Header absolut darunter; das Theme setzte ihn dort
   auf 92px, weil die Einträge untereinander standen. Jetzt ist die Topbar
   auch dort eine Zeile, und der Header sitzt überall ab 768px bei 45px. */
@media (min-width: 768px) {
    /* 44 + 1px Rahmen = 45px: auf diese Höhe positioniert das Theme den
       Header darunter (vorher 36 + 8 Padding + 1). Mit weniger blitzte
       zwischen Topbar und Header ein Streifen des Seitenkopf-Fotos durch. */
    #info-wrap {
        display: flex;
        align-items: center;
        box-sizing: content-box;
        height: 44px;
        padding: 0;
    }

    /* 1170px ist die Containerbreite von Bootstrap 3; 30px Innenabstand
       setzen den Text links auf die Kante des Logos und rechts auf das Ende
       der Navigation. */
    #info-wrap #info-content {
        box-sizing: border-box;
        width: 100%;
        max-width: 1170px;
        margin: 0 auto;
        padding: 0 30px;
        font-family: var(--font-body);
        font-size: 14px;
        font-weight: 400;
        line-height: 1.4;
    }

    #info-wrap #info-content ul {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        margin: 0;
        padding: 0;
    }

    #info-wrap #info-content ul li {
        display: block;
        flex: 0 0 auto;
        float: none;
        width: auto;
        min-height: 0;
        padding: 0;
        white-space: nowrap;
    }

    #info-wrap #info-content ul li:first-child {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #header-wrap {
        top: 45px;
    }
}

/* Zwischen 768 und 990px reicht die Zeile nicht für alle Einträge: Slogan
   und (angemeldet) AGB entfallen, Telefon und Mail bleiben. Die AGB stehen
   im Footer. */
@media (min-width: 768px) and (max-width: 990px) {
    #info-wrap #info-content {
        padding: 0 30px;
    }

    #info-wrap #info-content ul li:first-child,
    #info-wrap #info-content ul li:nth-child(4) {
        display: none;
    }
}

/* Schmal standen Slogan, Telefon, Mail und AGB untereinander, jede Zeile
   mit gelber Linie — bis zu 110px vor dem Logo. Jetzt Telefon und Mail
   nebeneinander (umbrechend, wenn nötig); Slogan und AGB entfallen, die
   AGB stehen im Footer. */
@media (max-width: 767px) {
    #info-wrap {
        padding: 8px 16px;
    }

    #info-wrap #info-content {
        font-family: var(--font-body);
        font-size: 14px;
        line-height: 1.5;
    }

    #info-wrap #info-content ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2px 20px;
        margin: 0;
        padding: 0;
    }

    #info-wrap #info-content ul li {
        display: block;
        float: none;
        width: auto;
        min-height: 0;
        padding: 0;
        border: 0;
        white-space: nowrap;
    }

    #info-wrap #info-content ul li:first-child,
    #info-wrap #info-content ul li:nth-child(4) {
        display: none;
    }
}

/* Ab 1600px verbreitert das Theme den Container auf 1470px, und Logo und
   Navigation sitzen dort 15px statt 30px innerhalb. Gemessen, nicht
   geschätzt: bei 1920px Logo 235px, Navigationsende 1675px. */
@media (min-width: 1600px) {
    #info-wrap #info-content {
        max-width: 1470px;
        padding: 0 15px;
    }
}

/* Unter 1200px gibt das Theme dem Logo nur unten Abstand (15px Padding am
   #header), oben keinen: es stieß an den Hinweisbalken der Startseite
   beziehungsweise an die Oberkante der Kopfzeile. Ab 1200px hat es bereits
   einen eigenen Rand (14px). */
@media (max-width: 1199px) {
    #logo {
        margin-top: 15px;
    }
}


/* Hinweis auf die Bewerbung über dem Header der Startseite. Die Fläche bleibt
   ruhig, der Button macht sofort sichtbar, dass jemand gesucht wird. */
.ewf-announce {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 16px;
    padding: 8px 16px;
    background-color: var(--deep);
    color: var(--surface) !important;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
}

.ewf-announce__btn {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    background-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
}

.ewf-announce__btn::after {
    content: '\f061';
    margin-left: 10px;
    font-family: 'Font Awesome 5 Free';
    font-size: 13px;
    font-weight: 900;
}

.ewf-announce:hover .ewf-announce__btn {
    background-color: var(--surface);
}

.ewf-announce__short {
    display: none;
}

/* Schmal eine Zeile: zweizeilig schob der Balken den Hero fast 100 px nach unten. */
@media (max-width: 991px) {
    .ewf-announce {
        flex-wrap: nowrap;
        gap: 12px;
        font-size: 14px;
    }

    .ewf-announce__long {
        display: none;
    }

    .ewf-announce__short {
        display: inline;
    }

    .ewf-announce__btn {
        flex: none;
    }
}

/* Bewerbung als eigener Abschnitt der Startseite. */
.ewf-join {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5) var(--space-7);
}

.ewf-join__body {
    flex: 1 1 420px;
    max-width: 720px;
}

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

/* Überschriften, die im Markup einen Link tragen (<h2><a href="#">).
   Im Kundenbereich färbte Bootstrap sie #337ab7, auf der Website unterstrich
   sie die Fließtext-Linkregel. */
.ewf-headline__title a {
    color: inherit;
    text-decoration: none;
}


/* ==========================================================================
   4 · Komponenten
   ========================================================================== */

/* --- Sichtbarer Tastaturfokus --------------------------------------------
   Das Theme definiert keinen. Bei einem Anfrageformular mit 55 Feldern ist
   das die Voraussetzung dafür, es ohne Maus überhaupt ausfüllen zu können. */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
    border-radius: var(--radius);
}


/* --- Buttons -------------------------------------------------------------
   Eine Familie für die ganze Website und den Kundenbereich. Vorher gab es
   sieben Formate: 72, 58, 48, 44 und 25 px hoch, in zwei Schriften, teils
   in Versalien, teils eckig.

   Varianten
     .ewf-btn              primär, Gelb — ausschließlich der Weg zur Anfrage
     .ewf-btn--secondary   Navy — die Haupthandlung einer Seite ohne Anfrage
     .ewf-btn--outline     weiß mit Rahmen — Nebenhandlungen, Werkzeuge
     .ewf-btn--quiet       Textlink in Button-Maßen
   Größen
     (Standard)            48 px
     .ewf-btn--sm          36 px — Werkzeugleisten, Tabellen, Adressbuch
     .ewf-btn--icon        quadratisch, nur Symbol; braucht aria-label

   box-sizing steht hier ausdrücklich: das Theme setzt es nicht, Bootstrap 3
   auf den Kundenbereichs-Seiten schon. min-height galt deshalb auf der
   Website für den Inhalt allein, und derselbe Button war dort 72 statt 44 px
   hoch.

   Die Farbe trägt !important, weil Theme-Regeln wie .ewf-theme-contrast a
   Linkfarben mit höherer Spezifität setzen. Alles andere kommt ohne aus —
   die konkurrierenden !important-Regeln aus Theme und Views sind entfernt.

   Die Doppelklassen decken das im Markup vorkommende
   class="ewf-btn btn btn-primary" ab. */

.ewf-btn,
a.ewf-btn,
button.ewf-btn,
.ewf-btn[type],
.ewf-btn.btn,
.ewf-btn.btn-primary {
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin: 0;
    padding: 0 28px;
    border: 2px solid var(--accent);
    border-radius: var(--radius-pill);
    background-color: var(--accent);
    background-image: none;
    box-shadow: none;
    color: var(--accent-ink) !important;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    white-space: nowrap;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.ewf-btn:hover,
.ewf-btn[type]:hover,
.ewf-btn.btn:hover,
.ewf-btn.btn-primary:hover {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--accent) !important;
    text-decoration: none;
}

.ewf-btn i {
    font-size: 0.95em;
}

.ewf-btn:disabled,
.ewf-btn[disabled],
.ewf-btn[aria-disabled='true'] {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}

/* Navy. */
.ewf-btn.ewf-btn--secondary {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--surface) !important;
}

.ewf-btn.ewf-btn--secondary:hover {
    background-color: var(--deep);
    border-color: var(--deep);
    color: var(--surface) !important;
}

/* Rahmen statt Fläche: tritt neben einer Überschrift oder in einer
   Werkzeugleiste zurück. Der Rahmen ist 1px, die Höhe bleibt über
   min-height und border-box gleich. */
.ewf-btn.ewf-btn--outline {
    border: 1px solid var(--line-strong);
    background-color: var(--surface);
    color: var(--ink) !important;
}

.ewf-btn.ewf-btn--outline:hover {
    border-color: var(--ink);
    background-color: var(--surface-2);
    color: var(--ink) !important;
}

.ewf-btn.ewf-btn--quiet {
    border-color: transparent;
    background-color: transparent;
    color: var(--deep) !important;
    padding-left: 4px;
    padding-right: 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ewf-btn.ewf-btn--quiet:hover {
    border-color: transparent;
    background-color: transparent;
    color: var(--ink) !important;
}

.ewf-btn.ewf-btn--sm {
    gap: 6px;
    min-height: 36px;
    padding: 0 16px;
    font-size: 13px;
}

.ewf-btn.ewf-btn--icon {
    width: 36px;
    min-width: 36px;
    padding: 0;
}


/* --- Altbestand im Kundenbereich ----------------------------------------
   Bootstrap-.btn entsteht an Stellen, die kein Blade-Markup sind: im
   UserController (Aktionsspalte der Tabellen), in datatables.pagination.js
   und in der Spaltenauswahl von DataTables Buttons. Statt dieses Markup an
   drei Orten umzuschreiben, wird .btn hier auf die Outline-Variante in klein
   gesetzt.

   Spezifität (0,4,0): DataTables Buttons setzt seine Zustände mit
   button.dt-button:hover:not(.disabled) = (0,3,1) und nimmt im Fokus die
   Kontur weg. */

.site-app .btn,
.site-app .dt-button.btn,
.modal .btn,
.modal .btn-default {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    min-width: 36px;
    margin: 0 6px 6px 0;
    padding: 0 14px;
    float: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background-color: var(--surface);
    background-image: none;
    box-shadow: none;
    color: var(--ink) !important;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.site-app .btn:hover,
.site-app .dt-button.btn:hover:not(.disabled),
.site-app .dt-button.btn.active:not(.disabled),
.modal .btn:hover,
.modal .btn-default:hover {
    border-color: var(--ink);
    background-color: var(--surface-2);
    background-image: none;
    box-shadow: none;
    color: var(--ink) !important;
    text-decoration: none;
}

.site-app .dt-button.btn:focus-visible,
.site-app .btn:focus-visible,
.modal .btn:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
}

/* Die Tabellenaktionen tragen nur ein Symbol. */
.site-app .btn > i:only-child {
    width: auto;
}

.site-app .btn.disabled,
.site-app .btn[disabled],
.site-app .paginate_button.disabled.btn {
    opacity: .4;
    cursor: not-allowed;
}

/* Tabellenaktionen tragen nur ein Symbol: Kreis statt Oval. */
.site-app .btn:has(> i:only-child) {
    width: 36px;
    padding: 0;
}

.site-app td .btn {
    margin-bottom: 0;
}


/* --- Kundenbereich: Seitennavigation --------------------------------------
   Fünf gleich aussehende Links in Bootstrap-Blau, ohne Markierung der
   aktuellen Seite. */
.site-app .widget_nav_menu .menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-app .widget_nav_menu .menu-item,
.site-app .widget_nav_menu .menu-item:first-child {
    margin: 0 0 2px;
    padding: 0;
    border: 0;
}

.site-app .widget_nav_menu .menu-item a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.site-app .widget_nav_menu .menu-item a:hover {
    background-color: var(--surface-2);
    color: var(--ink);
}

/* Aktuelle Seite: Fläche, Gewicht und Kante — nicht Farbe allein. */
.site-app .widget_nav_menu .menu-item.current a {
    background-color: var(--surface-2);
    color: var(--ink);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--ink);
}

.site-app .widget_nav_menu .menu-item--logout {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}


/* --- Kundenbereich: Tabellen ----------------------------------------------
   DataTables kam mit schwarzen Rahmen oben und unten, Zebrastreifen und einer
   grau hinterlegten Sortierspalte. Jetzt ruhige Zeilen mit Haarlinien und
   einer Hover-Fläche.

   Die ID hebt die Regeln über die DataTables-Selektoren (bis 0,5,3) und über
   das td { padding: 5px !important } der Inline-Styles. Der Kopf läuft über
   .dataTables_wrapper statt über die ID: die Buttons-Erweiterung und die
   Spaltenwahl greifen ebenfalls auf ihn zu. */
.site-app .dataTables_wrapper table.dataTable thead th {
    padding: 12px 30px 12px 12px;   /* rechts Platz für das Sortier-Symbol */
    border-bottom: 1px solid var(--line-strong);
    background-color: transparent;
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

/* Sortier-Symbol: jquery.dataTables.css und datatables.min.css verweisen auf
   sort_both.png usw., die es hier nicht gibt (404 auf /user/all und
   /user/anfragen). Die Pfeile zeichnet dataTables.bootstrap4 schon per
   ::before/::after. Die Klasse .site-app hebt die Regel über die Selektoren
   der DataTables-Stile, die erst nach cet.css geladen werden. */
.site-app table.dataTable thead .sorting,
.site-app table.dataTable thead .sorting_asc,
.site-app table.dataTable thead .sorting_desc,
.site-app table.dataTable thead .sorting_asc_disabled,
.site-app table.dataTable thead .sorting_desc_disabled {
    background-image: none;
}

.site-app #request-table tbody tr,
.site-app #request-table tbody tr > td,
.site-app #request-table tbody tr > .sorting_1 {
    background-color: transparent;
}

.site-app #request-table tbody td {
    padding: 12px !important;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    vertical-align: middle;
}

/* Die Tabelle trägt class="nowrap". Auf schmalen Bildschirmen lief die
   Route dadurch über ihre Spalte hinaus unter die Aktions-Buttons. Die Route
   darf umbrechen, die Buttons bleiben beisammen. */
.site-app #request-table tbody td {
    white-space: normal;
}

.site-app #request-table tbody td:last-child {
    white-space: nowrap;
}

.site-app #request-table tbody tr:hover > td {
    background-color: var(--surface-2);
}

.site-app #request-table.no-footer {
    border-bottom: 1px solid var(--line) !important;
}


/* --- Kundenbereich: Rahmen und Fuß der Tabelle ----------------------------

   Vorher lief die Tabelle mit scrollX: DataTables baut dafür Kopf und Körper
   in zwei getrennte Tabellen und rechnet deren Spaltenbreiten in Pixeln aus.
   Bei fünf sichtbaren Spalten kam es auf 922px in einem 920px breiten Rahmen
   — eine Bildlaufleiste für zwei Pixel, dauerhaft sichtbar.

   Jetzt eine Tabelle in einem Rahmen, der nur rollt, wenn er muss. Das
   entscheidet der Browser, nicht eine Breitenrechnung in JavaScript. */
/* Spaltenwahl und Suchfeld in einer Zeile. DataTables stellt beide per float
   nebeneinander — und ein schwebendes Element ist der Grund, warum der
   Rahmen darunter zu schmal war: overflow-x macht ihn zu einem eigenen
   Formatierungskontext, und der weicht einem Float aus, statt ihn zu
   unterlaufen. Aus 920px wurden so 606px. Ohne float stellt sich die Frage
   nicht mehr. */
.ewf-table-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.site-app .ewf-table-head .dt-buttons,
.site-app .ewf-table-head .dataTables_filter,
.site-app .ewf-table-head .dataTables_length {
    float: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

/* Die Beschriftung von Suchfeld und Längenwahl trägt den allgemeinen
   Abstand nach unten; er hob das Feld gegenüber der Schaltfläche daneben
   um acht Pixel an. */
.site-app .ewf-table-head label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
}

/* Das Theme gibt jedem Eingabefeld 30px Abstand nach unten. In der Zeile
   hier zählt der Abstand zur Höhe und hob das Suchfeld gegenüber der
   Schaltfläche daneben an. */
.site-app .ewf-table-head input,
.site-app .ewf-table-head select,
.site-app .ewf-table-head .btn {
    margin: 0;
}

/* Das Theme setzt table { table-layout: fixed } für alle Tabellen. Fest
   heißt: die Spalten teilen sich die Breite nach den Angaben im Kopf, nicht
   nach dem Inhalt — die Auftragsnummer bekam so viel Platz wie das Ziel.
   Hier entscheidet der Inhalt. */
.site-app table.dataTable {
    table-layout: auto;
}

.ewf-table-scroll {
    overflow-x: auto;
    /* Falls doch einmal etwas daneben schwebt. */
    clear: both;
    /* Ohne das schneidet overflow-x auch oben und unten ab und verdeckt den
       Fokusring der Aktionsschaltflächen in der ersten und letzten Zeile. */
    padding: 2px 0;
}

/* Anzahl der Einträge und Seitenwahl in einer Zeile. Beide schwammen vorher
   per float; sobald die Seitenwahl breiter wurde als der Platz rechts,
   rutschten ihre Teile einzeln in die nächste Zeile. */
.ewf-table-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.site-app .ewf-table-foot .dataTables_info,
.site-app .ewf-table-foot .dataTables_paginate {
    float: none;
    margin: 0;
    padding: 0;
}

/* Die Seitenwahl vom Typ "input": Erste, Zurück, "Seite [n] von m",
   Nächste, Letzte. Sie hatte bisher keine einzige Layoutregel — die
   Beschriftungen, das Eingabefeld und die fünf Schaltflächen standen als
   einzelne Inline-Elemente da und brachen an beliebiger Stelle um. */
.site-app .dataTables_paginate.paging_input {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
    white-space: nowrap;
}

.site-app .paginate_page,
.site-app .paginate_of {
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: 14px;
}

/* Das Plugin setzt die Breite als style-Attribut auf 30px — zu schmal für
   vierstellige Seitenzahlen. */
.site-app input.paginate_input {
    width: 60px !important;
    margin: 0;
    text-align: center;
}

.site-app .dataTables_paginate.paging_input .btn {
    margin: 0;
}

/* Schmal ist für "Erste" und "Letzte" kein Platz; Zurück und Nächste
   genügen, die Seitenzahl lässt sich weiterhin eintippen. */
@media (max-width: 575px) {
    .site-app .dataTables_paginate.paging_input .first,
    .site-app .dataTables_paginate.paging_input .last {
        display: none;
    }

    .ewf-table-foot {
        justify-content: flex-start;
    }
}

.site-app .dataTables_wrapper .dataTables_info,
.site-app .dataTables_wrapper .dataTables_filter label,
.site-app .dataTables_wrapper .dataTables_length label {
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: 14px;
}


/* Reihe aus Buttons über einer Liste oder Tabelle. Ersetzt die einzeln per
   style="float:right" gesetzten Links. */
.ewf-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 16px;
}

/* Spaltenauswahl: eine Liste, keine Reihe aus Pillen. Aktive Spalten sind
   am Haken erkennbar, nicht nur an der Farbe. */
.site-app div.dt-button-collection {
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(0, 34, 55, .12);
}

.site-app div.dt-button-collection .dt-button.btn {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    border-color: transparent;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
}

.site-app div.dt-button-collection .dt-button.btn::before {
    content: '';
    display: inline-block;
    width: 16px;
    flex: none;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 11px;
}

.site-app div.dt-button-collection .dt-button.btn.active:not(.disabled) {
    border-color: transparent;
    background-color: transparent;
    font-weight: 700;
}

.site-app div.dt-button-collection .dt-button.btn.active::before {
    content: '\f00c';
}

.site-app div.dt-button-collection .dt-button.btn:hover:not(.disabled) {
    border-color: transparent;
    background-color: var(--surface-2);
}


/* Ruhige Sektionsfläche. Das Theme hat für die Abstände bereits ein System
   (60/90/120 px über drei Breakpoints); daran wird nichts geändert. Die
   Gliederung entsteht über den Wechsel der Fläche. */
.ewf-section--muted {
    background-color: var(--surface-2);
}


/* Zählerreihe. Die Farbe stand neunmal als style="color:#FFDE22 !important"
   im Markup. Hier ist sie einmal gesetzt — und der Akzent trägt an dieser
   Stelle Zahlen, nicht die Handlung: das ist die eine Ausnahme von der Regel,
   und sie stammt aus dem Bestand, nicht aus einer neuen Entscheidung. */
.ewf-counter__icon i,
.ewf-counter__standard,
.ewf-counter__symbol,
.ewf-counter__title {
    color: var(--accent);
}


/* Die Kopfzeile ist klebend; ohne diesen Abstand verdeckt sie die Überschrift,
   auf die der Hero springt. */
#leistungen,
#fragen {
    scroll-margin-top: 120px;
}


/* --- Startseite: Logo in der Kopfzeile ------------------------------------

   Der Hero trägt das große CET-Logo in der schrägen Navy-Fläche. Daneben
   stand dasselbe Logo noch einmal klein in der Kopfzeile. Auf der Startseite
   erscheint es deshalb erst, wenn die Seite an der Kopfzeile vorbeigescrollt
   ist — dann ist das große aus dem Bild. Auf allen anderen Seiten bleibt es,
   wie es war: dort gibt es kein zweites Logo.

   visibility statt display: das Logo behält seinen Platz, sonst rückt die
   Navigation beim Einblenden zur Seite. Die Klasse is-scrolled setzt
   layout/header-offset. */
.js .page-home #logo {
    visibility: hidden;
    opacity: 0;
    transition: opacity .25s ease;
}

.js .page-home.is-scrolled #logo {
    visibility: visible;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .js .page-home #logo {
        transition: none;
    }
}


/* --- Hero ----------------------------------------------------------------
   Erster Bildschirm der Startseite (Entwurf B, 2026-11-25): das Foto des
   CET-LKW mit Logo auf der Plane formatfüllend, links ein ruhiger
   Navy-Verlauf, darauf Logo, Überschrift und Anfrage.

   Vorher lag links eine schräge Navy-Fläche und darin das Logo als Bild mit
   eingebauter Europakarte und weißem Verlauf (logo_big.png). Auf dem Foto
   zeichnete es sich als Kasten ab. Jetzt ist die Wortmarke freigestellt
   (cet-wortmarke.png), Schriftzug und Sterne sind Schrift und SVG und
   bleiben auf jeder Breite scharf.

   Die Überschrift steht zweizeilig. Einzeilig (Wunsch vom 2026-11-12 für die
   alte Fläche) liefe sie breit über die Plane mit dem CET-Logo im Foto.

   Maße in px: bootstrap.css setzt auf den Kundenbereichs-Seiten
   html { font-size: 10px }, und der Hero soll davon unberührt bleiben. */

.ewf-hero {
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    /* --header-overlap: wie weit die Kopfzeile den Hero überdeckt. Ab 768px
       liegt sie absolut darüber, darunter gar nicht. layout/header-offset
       misst den Wert; ohne JavaScript gilt dieser. Sichtbar bleiben unter der
       Kopfzeile 500 bis 640px. */
    --header-overlap: 100px;
    min-height: calc(var(--header-overlap) + clamp(500px, 34vw, 640px));
    padding: calc(var(--header-overlap) + var(--space-6)) 0 var(--space-8);
    background-color: var(--ink);
}

/* Das Foto beginnt unter der Kopfzeile: Die Plane mit dem CET-Logo liegt im
   oberen Drittel des Bildes und verschwand sonst hinter ihr. */
.ewf-hero__bg {
    position: absolute;
    z-index: 0;
    top: var(--header-overlap);
    right: 0;
    bottom: 0;
    left: 0;
    background-position: 58% top;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Verlauf statt Fläche: links deckend genug für weiße Schrift auch über dem
   hellen Abendhimmel, rechts frei für den LKW. */
.ewf-hero__overlay {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg,
        rgba(0, 34, 55, .92) 0%,
        rgba(0, 34, 55, .76) 32%,
        rgba(0, 34, 55, .3) 56%,
        rgba(0, 34, 55, 0) 72%);
}

.ewf-hero .container {
    position: relative;
    z-index: 2;
}

.ewf-hero__content {
    max-width: 560px;
}

/* Logo wie im Original: Wortmarke, darunter Schriftzug und 13 Sterne, alles
   mittig zueinander. --logo-w bestimmt die übrigen Maße. */
.ewf-hero__logo {
    --logo-w: clamp(180px, 15vw, 230px);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 var(--space-6);
}

.ewf-hero__logo img {
    display: block;
    width: var(--logo-w);
    height: auto;
}

.ewf-hero__tagline {
    margin-top: calc(var(--logo-w) * .045);
    color: var(--surface);
    font-family: var(--font-head);
    font-size: calc(var(--logo-w) * .084);
    font-weight: 300;
    letter-spacing: .06em;
    line-height: 1.2;
    white-space: nowrap;
}

.ewf-hero__stars {
    display: block;
    width: calc(var(--logo-w) * .9);
    height: auto;
    margin-top: calc(var(--logo-w) * .045);
    color: var(--surface);
    opacity: .85;
}

/* Lato statt Poppins: weicher und aus einem Guss mit dem Text darunter. */
.ewf-hero__title {
    margin: 0;
    color: var(--surface);
    font-family: var(--font-body);
    font-size: clamp(30px, 3.1vw, 46px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
}

.ewf-hero__iso {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin: var(--space-5) 0 0;
    padding: 6px 14px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-pill);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
}

.ewf-hero__lead {
    max-width: 46ch;
    margin-top: var(--space-4);
    font-size: 19px;
    line-height: 1.55;
    color: var(--surface);
}

.ewf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-5);
    margin-top: var(--space-6);
}

/* Die Nebenhandlung springt nur weiter unten auf der Seite und bekommt
   deshalb keine Fläche — Gelb trägt allein den Weg zur Anfrage. */
.ewf-hero__link {
    color: var(--surface);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.ewf-hero__link:hover {
    color: var(--accent);
}

/* Bis 1199px nimmt der Text einen größeren Teil der Breite ein; der Verlauf
   reicht deshalb weiter nach rechts. */
@media (min-width: 768px) and (max-width: 1199px) {
    .ewf-hero__overlay {
        background: linear-gradient(90deg,
            rgba(0, 34, 55, .94) 0%,
            rgba(0, 34, 55, .86) 42%,
            rgba(0, 34, 55, .4) 66%,
            rgba(0, 34, 55, 0) 84%);
    }
}

/* Schmal steht der Text über dem ganzen Bild: der Verlauf läuft von oben nach
   unten, der LKW scheint unten durch. */
@media (max-width: 767px) {
    .ewf-hero {
        align-items: flex-start;
        min-height: 0;
        padding-top: calc(var(--header-overlap) + var(--space-6));
    }

    /* Hinten am Auflieger statt an der Plane: deren gelbes Logo stand sonst
       halb hinter dem Logo im Hero. */
    .ewf-hero__bg {
        background-position: 85% center;
    }

    .ewf-hero__overlay {
        background: linear-gradient(180deg,
            rgba(0, 34, 55, .92) 0%,
            rgba(0, 34, 55, .84) 60%,
            rgba(0, 34, 55, .62) 100%);
    }

    .ewf-hero__logo {
        --logo-w: 180px;
    }
}


/* --- Kleine Bedienelemente -----------------------------------------------
   Die Prüfung vom 20.09.2026 fand zehn Bedienelemente unter 32 px:
   Sprachflaggen und Social-Icons. */

/* .flag-switch gibt es im Markup nicht — der Selektor war tot und ist
   entfernt. Die Sprachflaggen sitzen in .sf-menu und brauchen eine eigene
   Lösung, sobald die Navigation in Teilprojekt 2 angefasst wird. */
.ewf-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--target);
    min-height: var(--target);
}


/* --- Formularfelder ------------------------------------------------------
   Die Felder tragen im Markup überwiegend keine Klasse, deshalb über
   Element-Selektoren. */

/* Kein display hier: das Theme setzt label { display: block }, und die
   gefloateten Bootstrap-Spalten im Anfrageformular hängen daran. Mit
   inline-block umflossen die Spalten das Label, und Datum und Uhrzeit
   rutschten auseinander. */
.site-public label {
    margin-bottom: var(--space-2);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink-2);
}

/* Beschriftungen von Auswahlfeldern sind Fließtext, keine Feldüberschriften.
   Ohne diese Ausnahme wurden "Mautpflicht: Ja/Nein" und "Zugelassen: Ja/Nein"
   klein, fett und grau gesetzt. */
.site-public input[type='checkbox'] + label,
.site-public input[type='radio'] + label {
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
}

/* Dasselbe für Auswahlfelder, die im Label stehen statt davor —
   <label><input type="radio"> Ja</label>. So sind Mautpflicht, Zugelassen
   und Kraftstoff im Auftragsformular aufgebaut; die Regel oben greift dort
   nicht, und die Optionen standen klein, fett und grau wie Feldüberschriften. */
.site-public label:not(.ewf-chip):not(.ewf-switch):has(> input[type='radio']),
.site-public label:not(.ewf-chip):not(.ewf-switch):has(> input[type='checkbox']) {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 1rem;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
}

/* Nur die öffentlichen Formulare. Im Kundenbereich bringen DataTables,
   x-editable und Handsontable ihre eigenen Felder mit — das globale
   input[type='search'] hatte dort das Filterfeld aufgebläht. */
.site-public input[type='text'],
.site-public input[type='email'],
.site-public input[type='tel'],
.site-public input[type='number'],
.site-public input[type='password'],
.site-public input[type='date'],
.site-public input[type='time'],
.site-public input[type='search'],
.site-public input[type='url'],
.site-public select,
.site-public textarea {
    /* Das Theme setzt height: 60px auf alle Eingabefelder. Auf den beiden
       Formularseiten hob eine #requestPage-Regel des Themes das mit
       height: auto wieder auf; die ist entfernt, die Aufhebung steht hier. */
    height: auto;
    min-height: var(--target);
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background-color: var(--surface);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.4;
    color: var(--ink);
    transition: border-color .2s ease;
}

.site-public textarea {
    line-height: 1.6;
}

.site-public input::placeholder,
.site-public textarea::placeholder {
    color: var(--ink-3);
    opacity: 1;
}

.site-public input:focus,
.site-public select:focus,
.site-public textarea:focus {
    border-color: var(--deep);
}

/* Fehler tragen nie Farbe allein: die Meldung steht unter dem Feld und wird
   über aria-describedby verknüpft. */
.site-public input.is-invalid,
.site-public select.is-invalid,
.site-public textarea.is-invalid,
.site-public input[aria-invalid='true'],
.site-public select[aria-invalid='true'],
.site-public textarea[aria-invalid='true'] {
    border-color: var(--danger);
}

.invalid-feedback,
.validation-error {
    display: block;
    margin-top: var(--space-2);
    font-size: 14px;
    color: var(--danger);
}

.alert-success,
#contact-form-status.alert-success {
    color: var(--success);
}

/* Pflichtfeldkennzeichen */
.required-mark {
    color: var(--danger);
}


/* Beschriftung einer Feldgruppe. Datum und Uhrzeit gehören zusammen und
   teilen sich eine Beschriftung; ein <label for> kann nur auf ein Feld
   zeigen, deshalb ein <span> plus aria-labelledby an der Gruppe. */
.site-public .form-group-label {
    display: block;
    margin-bottom: var(--space-2);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ink-2);
}


/* --- Kundenbereich: Formularfelder --------------------------------------
   Gleiche Optik wie der öffentliche Bereich. Die Werte stehen hier in px:
   auf sieben Kundenbereichs-Seiten lädt Bootstrap 3 mit
   html { font-size: 10px } nach cet.css, und rem würde auf 62,5 %
   schrumpfen.

   DataTables-, x-editable- und Handsontable-Inputs sind ausgenommen: die
   Bibliotheken bringen ihr eigenes Styling mit, das nicht überschrieben
   werden darf. */
.site-app input[type='text'],
.site-app input[type='email'],
.site-app input[type='tel'],
.site-app input[type='number'],
.site-app input[type='password'],
.site-app input[type='date'],
.site-app input[type='time'],
.site-app input[type='url'],
.site-app select,
.site-app textarea {
    height: auto;
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid #7b8f9d;
    border-radius: 4px;
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.4;
    color: #002237;
    transition: border-color .2s ease;
}

.site-app textarea {
    line-height: 1.6;
}

.site-app input::placeholder,
.site-app textarea::placeholder {
    color: #57707e;
    opacity: 1;
}

.site-app input:focus,
.site-app select:focus,
.site-app textarea:focus {
    border-color: #004563;
}

.site-app input.is-invalid,
.site-app select.is-invalid,
.site-app textarea.is-invalid,
.site-app input[aria-invalid='true'],
.site-app select[aria-invalid='true'],
.site-app textarea[aria-invalid='true'] {
    border-color: #a4231b;
}

/* Login/Register tragen class="form-control" — Bootstrap 3 setzt dort eigene
   Höhe und Rahmen. Der Selektor form-control allein reicht nicht, weil
   Bootstrap 3 erst später lädt. Die Doppelklasse gewinnt durch Spezifität,
   ohne DataTables-Inputs (.dataTables_filter input) zu treffen. */
/* Login/Register tragen class="form-control" — Bootstrap 3 setzt dort eigene
   Höhe und Rahmen. DataTables-Suchfelder sind input[type='search'] mit
   form-control-sm und werden hier bewusst nicht gefasst. */
.site-app input.form-control,
.site-app select.form-control,
.site-app textarea.form-control {
    min-height: 44px;
    padding: 12px 16px;
    border: 1px solid #7b8f9d;
    border-radius: 4px;
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.4;
    color: #002237;
    transition: border-color .2s ease;
    box-shadow: none;
}

.site-app input.form-control:focus,
.site-app select.form-control:focus,
.site-app textarea.form-control:focus {
    border-color: #004563;
    box-shadow: none;
}

/* DataTables-Inputs im Kundenbereich (Suchfeld + Pagination) behalten ihre
   native Größe — die generischen Input-Regeln oben fassen type='search' nicht
   mehr, aber das Paginierungsfeld ist type='text' und würde 44px bekommen. */
.site-app .dataTables_filter input,
.site-app .dataTables_wrapper input[type='text'],
.site-app .dataTables_wrapper select {
    height: auto;   /* Theme: 60px */
    min-height: 0;
    padding: 4px 8px;
    font-size: 14px;
}

/* Label im Kundenbereich an den öffentlichen Bereich angleichen. */
.site-app label {
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    color: #33505f;
}

/* Blockkopf: Überschrift und Adressbuch-Button in einer Zeile.
   Der Button schwebte vorher per float in der Überschrift, war 58px hoch und
   schob die rechte Feldspalte darunter eine Zeile nach unten. */
.ewf-form-block-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.ewf-form-block-head > h2,
.ewf-form-block-head > h3 {
    margin: 0;
}

/* Die Rechnungsadresse ist per Checkbox zuschaltbar; ihr Kopf enthält
   Checkbox und Label statt einer reinen Überschrift. */
.ewf-form-block-head__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

/* Das Theme gibt input[type=checkbox] + label 15px Abstand nach unten und
   rechts (Spezifität 0,1,2); die Flex-Zentrierung rechnete den Rand mit, und
   der Text stand höher als die Checkbox. [for] und [type] heben darüber. */
.ewf-form-block-head__toggle label[for],
.ewf-form-block-head__toggle input[type] {
    margin: 0;
}


/* --- Auftragsformular -------------------------------------------------------
   /ueberfuehrungsauftrag: vier Abschnitte in Arbeitsreihenfolge, rechts eine
   mitlaufende Übersicht mit dem Absenden. Die Nummern stehen, weil die
   Abschnitte tatsächlich eine Reihenfolge sind.

   Maße in px: auf dieser Seite lädt bootstrap_striped.css nach cet.css. */

.ewf-visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Kontoleiste */
.ewf-account-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin: 0 0 32px;
    padding: 14px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: var(--surface-2);
}

.ewf-account-bar__who {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ewf-account-bar__avatar {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--ink);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .02em;
}

.ewf-account-bar__name {
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.35;
    color: var(--ink);
}

.ewf-account-bar__label,
.ewf-account-bar__company {
    font-size: 13px;
    color: var(--ink-3);
}

.ewf-account-bar__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.ewf-account-bar__logout {
    margin: 0;
}

/* Auf Touch-Geräten gibt es kein Tastenkürzel für Lesezeichen. */
@media (hover: none) and (pointer: coarse) {
    .ewf-account-bar [data-bookmark-hint] {
        display: none;
    }
}

.ewf-account-bar__hint {
    flex-basis: 100%;
    margin: 0;
    font-size: 14px;
    color: var(--ink-2);
}

/* Raster: Hauptspalte und Übersicht */
.ewf-order {
    display: grid;
    gap: 32px;
}

@media (min-width: 992px) {
    .ewf-order {
        grid-template-columns: minmax(0, 1fr) 300px;
        align-items: start;
    }

    /* Die Kopfzeile klebt oben; die Übersicht darunter. */
    .ewf-order__aside {
        position: sticky;
        top: 140px;
    }
}

.ewf-order__intro {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.55;
    color: var(--ink);
}

.ewf-order__legend {
    margin: 0 0 16px;
    font-size: 14px;
    color: var(--ink-3);
}

.ewf-order__hint {
    margin: -8px 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-3);
}

.ewf-order-alert {
    margin: 0 0 24px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 15px;
}

.ewf-order-alert ul {
    margin: 0;
    padding-left: 18px;
}

.ewf-order-alert--success {
    border: 1px solid #b7dcc8;
    background-color: #eef7f2;
    color: var(--success);
}

.ewf-order-alert--danger {
    border: 1px solid #e8c0bc;
    background-color: #fbefee;
    color: var(--danger);
}

/* Abschnitt */
.ewf-order-step {
    margin: 0 0 24px;
    padding: 28px 28px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background-color: var(--surface);
}

.ewf-order-step__title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 24px;
    font-size: 24px;
    line-height: 1.2;
}

.ewf-order-step__num {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: var(--ink);
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
}

.ewf-order-step input,
.ewf-order-step select,
.ewf-order-step textarea {
    width: 100%;
    margin-bottom: 20px;
}

/* Datum und Uhrzeit: weniger Innenabstand, sonst schnitt das Kalendersymbol
   in den Halbspalten der Adresskarten die Jahreszahl ab. */
.ewf-order-step input[type='date'],
.ewf-order-step input[type='time'] {
    padding-left: 12px;
    padding-right: 8px;
}

.ewf-order-step input[type='checkbox'],
.ewf-order-step input[type='radio'] {
    width: auto;
    margin-bottom: 0;
}

/* Abholung und Anlieferung: zwei Flächen nebeneinander */
.ewf-order-address {
    height: 100%;
    margin-bottom: 16px;
    padding: 20px 20px 4px;
    border-radius: 10px;
    background-color: var(--surface-2);
}

.ewf-order-address h3 {
    font-size: 20px;
}

/* Überschrift und Adressbuch untereinander: "Anlieferadresse" ist länger als
   "Abholadresse" und brach sonst als einzige um — die Felder der beiden
   Karten begannen dann auf verschiedener Höhe. */
.ewf-order-address .ewf-form-block-head {
    flex-direction: column;
    align-items: flex-start;
}

/* Auswahlgruppen */
.ewf-order-choices {
    display: grid;
    /* 260px: drei Optionen ("Ja", "Nein", "nicht bekannt") passen in eine
       Zeile. Bei 200px brach die dritte um. */
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 4px 28px;
    margin: 8px 0 12px;
}

.ewf-choice {
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.ewf-choice--wide {
    grid-column: 1 / -1;
}

.ewf-choice > legend,
.ewf-choice > label {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink-2);
}

.ewf-choice__options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Option als Pille. Das Radio bleibt im Label und damit für Tastatur,
   Screenreader und die Pflichtprüfung des Browsers erreichbar; sichtbar ist
   nur die Fläche. */
.site-public .ewf-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background-color: var(--surface);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.site-public .ewf-chip input {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.site-public .ewf-chip:hover {
    border-color: var(--ink);
}

.site-public .ewf-chip:has(input:checked) {
    border-color: var(--ink);
    background-color: var(--ink);
    color: var(--surface);
}

.site-public .ewf-chip:has(input:focus-visible) {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
}

/* Ein- und ausklappbare Bereiche */
.ewf-order-more {
    margin: 0 0 16px;
    border-top: 1px solid var(--line);
}

.ewf-order-more > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    padding: 14px 0;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    color: var(--deep);
}

.ewf-order-more > summary::-webkit-details-marker {
    display: none;
}

.ewf-order-more > summary::before {
    content: '\f054';
    display: inline-block;
    width: 12px;
    font-family: 'Font Awesome 5 Free';
    font-size: 11px;
    font-weight: 900;
    transition: transform .15s ease;
}

.ewf-order-more[open] > summary::before {
    transform: rotate(90deg);
}

.ewf-order-more > summary:hover {
    color: var(--ink);
}

.ewf-order-more__hint {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    color: var(--ink-3);
}

/* Das Reset des Themes setzt strong { font: inherit }. */
.ewf-order-customer__data strong,
.ewf-chip strong {
    font-weight: 700;
}

.ewf-order-customer__data {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
}

/* Zuschaltbare Angaben: Checkbox mit Label als Zeile */
.site-public .ewf-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
}

.ewf-toggle input[type='checkbox'],
.ewf-check input[type='checkbox'] {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--ink);
}

.ewf-order-extra {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
}

.ewf-order-reveal {
    padding-top: 12px;
}

/* Dateiauswahl */
.ewf-file {
    display: block;
    width: 100%;
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background-color: var(--surface-2);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink-2);
    cursor: pointer;
}

.ewf-file::file-selector-button {
    margin-right: 16px;
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background-color: var(--surface);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.ewf-file::file-selector-button:hover {
    border-color: var(--ink);
}

/* Übersicht */
.ewf-order-summary {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background-color: var(--surface-2);
}

.ewf-order-summary__title {
    margin: 0 0 16px;
    font-size: 20px;
}

.ewf-order-summary__list {
    margin: 0 0 20px;
}

.ewf-order-summary__list > div {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.ewf-order-summary__list dt {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-3);
}

.ewf-order-summary__list dd {
    margin: 2px 0 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.ewf-order-summary__list dd.is-open {
    color: var(--ink-3);
    font-style: italic;
}

.ewf-order-summary__consent {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
}

.site-public .ewf-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--ink);
    cursor: pointer;
}

.ewf-check input[type='checkbox'] {
    margin-top: 1px;
}

.ewf-order-summary__submit {
    width: 100%;
}

@media (max-width: 767px) {
    .ewf-order-step {
        padding: 20px 16px 4px;
    }

    .ewf-order-step__title {
        font-size: 20px;
    }

    .ewf-order-address {
        padding: 16px 14px 1px;
    }
}


/* --- Dialoge -----------------------------------------------------------------
   Die Kopfzeile ist fixiert und liegt auf z-index 9999, Bootstraps Dialog auf
   1050: der Kopf jedes Dialogs verschwand darunter. Gilt für alle Dialoge,
   auch die Auftragsdetails im Kundenbereich.

   "body" hebt die Spezifität über .modal { z-index: 1050 } aus Bootstrap,
   das auf den Formular- und Kundenbereichs-Seiten nach cet.css lädt. */
body .modal {
    z-index: 10050;
}

body .modal-backdrop {
    z-index: 10040;
    background-color: var(--ink);
}

.ewf-modal .modal-dialog {
    width: auto;
    max-width: 1040px;
    margin: 40px auto;
    padding: 0 16px;
}

.ewf-modal .modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 80px);
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 34, 55, .28);
}

.ewf-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--line);
}

/* Bootstrap setzt hier einen Clearfix; als Flex-Kinder schoben die beiden
   Pseudo-Elemente den Inhalt auseinander. */
.ewf-modal .modal-header::before,
.ewf-modal .modal-header::after {
    content: none;
}

.ewf-modal .modal-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.ewf-modal__subtitle {
    margin: 4px 0 0;
    font-size: 15px;
    color: var(--ink-3);
}

.ewf-modal .modal-body {
    overflow: auto;
    padding: 0 28px 28px;
}

.ewf-modal__loading {
    margin: 24px 0 0;
    color: var(--ink-3);
}


/* --- Adressbuch -------------------------------------------------------------- */

/* Suche und Schalter bleiben beim Scrollen der Liste stehen. */
.ewf-addressbook__toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 20px 0 12px;
    background-color: var(--surface);
}

.ewf-addressbook__search {
    position: relative;
    display: flex;
    flex: 1 1 380px;
    min-width: 0;
    gap: 8px;
    max-width: 560px;
}

.ewf-addressbook__search > i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--ink-3);
    pointer-events: none;
}

/* min-width: 0 — Suchfelder haben eine eingebaute Mindestbreite und
   schoben den Button auf dem Handy über den Rand. */
.ewf-addressbook__search input[type='search'] {
    flex: 1;
    width: auto;
    min-width: 0;
    margin: 0;
    padding-left: 44px;
}

/* Schalter */
.site-public .ewf-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
}

.ewf-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.ewf-switch__track {
    position: relative;
    flex: none;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background-color: #b5c3cc;
    transition: background-color .15s ease;
}

.ewf-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: var(--surface);
    box-shadow: 0 1px 3px rgba(0, 34, 55, .3);
    transition: transform .15s ease;
}

.ewf-switch input:checked + .ewf-switch__track {
    background-color: var(--ink);
}

.ewf-switch input:checked + .ewf-switch__track::after {
    transform: translateX(18px);
}

.ewf-switch input:focus-visible + .ewf-switch__track {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
}

.ewf-addressbook__count {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--ink-3);
}

.ewf-addressbook__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ewf-addressbook__item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ewf-addressbook__item:hover {
    border-color: var(--line-strong);
    box-shadow: 0 4px 16px rgba(0, 34, 55, .08);
}

.ewf-addressbook__address {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 15px;
    font-style: normal;
    line-height: 1.5;
    color: var(--ink);
}

/* Das Reset des Themes setzt strong { font: inherit }. */
.ewf-addressbook__address strong {
    font-size: 16px;
    font-weight: 700;
}

.ewf-addressbook__contact {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    color: var(--ink-2);
    overflow-wrap: anywhere;
}

.ewf-addressbook__contact i {
    width: 18px;
    color: var(--ink-3);
}

.ewf-addressbook__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

/* „Weitere laden“ steht als letztes Listenelement über die ganze Breite. */
.ewf-addressbook__more {
    display: flex;
    grid-column: 1 / -1;
    justify-content: center;
    padding-top: 4px;
}

.ewf-addressbook__error {
    margin: 0 0 12px;
}

.ewf-addressbook__empty {
    margin: 0;
    padding: 40px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    text-align: center;
    color: var(--ink-2);
}

@media (max-width: 767px) {
    .ewf-modal .modal-dialog {
        margin: 16px auto;
        padding: 0 8px;
    }

    .ewf-modal .modal-content {
        max-height: calc(100vh - 32px);
    }

    .ewf-modal .modal-header {
        padding: 18px 18px 14px;
    }

    .ewf-modal .modal-body {
        padding: 0 18px 18px;
    }
}


/* --- Kundenbereich: Auftragsübersicht ------------------------------------ */

.ewf-overview-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    margin-bottom: 28px;
}

/* Der Strich unter dem Titel sitzt 25px unter ihm (Theme, absolut); der
   Abstand hält ihn frei, ohne die 60/90px Luft darunter. */
.ewf-overview-head .ewf-headline {
    margin-bottom: 0;
    padding-bottom: 25px;
}


/* Umschalter zwischen zwei Ansichten derselben Liste. */
.ewf-segmented {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 20px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background-color: var(--surface-2);
}

.ewf-segmented a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    color: var(--ink-2);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.ewf-segmented a:hover {
    background-color: rgba(0, 34, 55, .06);
    color: var(--ink);
}

.ewf-segmented a[aria-current='page'] {
    background-color: var(--ink);
    color: #ffffff;
}

.ewf-segmented a:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
}

/* Zelle "von – nach": Orte vorn, Termine leiser darunter. */
.ewf-route {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ewf-route__cities {
    font-weight: 700;
}

.ewf-route__dates {
    color: var(--ink-3);
    font-size: 14px;
}

/* Die ganze Zeile öffnet die Details (auth.partials.order-details-script). */
.site-app #request-table tbody tr {
    cursor: pointer;
}


/* --- Auftragsdetails ------------------------------------------------------ */

.ewf-details .modal-dialog {
    max-width: 1120px;
}

.ewf-details__error {
    margin: 24px 0 0;
    color: var(--danger);
}

/* Reiter bleiben beim Scrollen stehen.

   overflow-x ist für schmale Fenster nötig — zwei bis drei Reiter passen dort
   nicht nebeneinander. Es hat aber eine Nebenwirkung: sobald eine Achse nicht
   mehr "visible" ist, wird die andere vom Browser auf "auto" gesetzt. Der
   aktive Reiter zog seine 3px-Markierung per margin-bottom: -1px über die
   Trennlinie der Leiste und stand damit einen Pixel über deren Unterkante
   hinaus — genug für eine senkrechte Bildlaufleiste am rechten Ende der
   Leiste, auf jedem System mit klassischen Bildlaufleisten sichtbar.

   Die Trennlinie liegt deshalb jetzt als innerer Schatten im Kasten statt als
   Rahmen darunter. Sie sitzt an derselben Stelle, der aktive Reiter
   überdeckt sie weiterhin — er wird nach ihr gezeichnet —, und nichts ragt
   mehr hinaus. */
.ewf-details__tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 28px;
    margin: 0 0 20px;
    overflow-x: auto;
    box-shadow: inset 0 -1px 0 var(--line);
    background-color: var(--surface);
}

.ewf-details__tab {
    flex: none;
    margin: 0;
    padding: 18px 0 12px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: none;
    color: var(--ink-3);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
}

.ewf-details__tab:hover {
    color: var(--ink);
}

.ewf-details__tab[aria-selected='true'] {
    border-bottom-color: var(--ink);
    color: var(--ink);
}

.ewf-details__tab:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
}

.ewf-details__tab[hidden],
.ewf-details__panel[hidden],
.ewf-details__group[hidden],
.ewf-details__row[hidden] {
    display: none;
}

.ewf-details__panel {
    display: grid;
    gap: 16px;
}

.ewf-details__panel:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 4px;
}

.ewf-details__group {
    min-width: 0;
    padding: 16px 20px 10px;
    border-radius: 12px;
    background-color: var(--surface-2);
}

.ewf-details__group-title {
    margin: 0 0 6px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

/* Trennlinie über jeder Zeile; die der ersten Zeile schneidet overflow ab,
   auch wenn die ersten Zeilen ausgeblendet sind oder zwei Spalten
   nebeneinander beginnen. */
/* Innenabstand, damit die Hover-Fläche der Werte (negativer Rand) nicht
   mit abgeschnitten wird. */
.ewf-details__list {
    margin: 0 -8px;
    padding: 0 8px;
    overflow: hidden;
}

.ewf-details__row {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    gap: 12px;
    margin-top: -1px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

.ewf-details__row dt {
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

.ewf-details__row dd {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

@media (min-width: 768px) {
    .ewf-details__panel--transfer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .ewf-details__group--vehicle,
    .ewf-details__group--trailer {
        grid-column: 1 / -1;
    }

    .ewf-details__group--vehicle .ewf-details__list,
    .ewf-details__group--trailer .ewf-details__list,
    .ewf-details__group--billing .ewf-details__list,
    .ewf-details__group--customer .ewf-details__list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 40px;
    }
}

/* Inline-Bearbeitung (x-editable). Vorher rot-kursives "Leer" in jeder
   leeren Zeile und gestrichelte Unterstreichungen; jetzt ein leiser
   Strich und eine Fläche mit Stift beim Überfahren. */
.ewf-details dd.editable {
    position: relative;
    margin: -4px -8px;
    padding: 4px 32px 4px 8px;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.ewf-details dd.editable::after {
    content: '\f303';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: var(--ink-3);
    font-family: 'Font Awesome 5 Free';
    font-size: 12px;
    font-weight: 900;
    opacity: 0;
}

.ewf-details dd.editable:hover,
.ewf-details dd.editable:focus-visible {
    background-color: var(--surface);
    outline: none;
    box-shadow: inset 0 0 0 1px var(--line);
}

.ewf-details dd.editable:hover::after,
.ewf-details dd.editable:focus-visible::after {
    opacity: 1;
}

.ewf-details dd.editable.editable-empty,
.ewf-details dd.editable.editable-empty:hover {
    color: var(--ink-3);
    font-style: normal;
}

/* Während der Bearbeitung trägt das dd das Formular. */
.ewf-details dd.editable-open {
    display: none;
}

.ewf-details .editable-container.editable-inline {
    display: block;
    grid-column: 2;
    width: 100%;
}

.ewf-details .editableform .control-group > div:first-child {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ewf-details .editableform .editable-input {
    flex: 1;
    min-width: 0;
}

/* margin: das Theme gibt Eingabefeldern 30px Abstand nach unten. */
.ewf-details .editableform .form-control {
    width: 100%;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 4px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background-color: var(--surface);
    color: var(--ink);
    font-size: 15px;
    box-shadow: none;
}

.ewf-details .editableform .form-control:focus {
    border-color: var(--deep);
    outline: 2px solid var(--deep);
    outline-offset: 0;
}

.ewf-details .editable-buttons {
    display: flex;
    gap: 6px;
    margin: 0;
}

.ewf-details .editable-buttons .editable-cancel {
    margin-left: 0;
}

.ewf-details .editable-error-block {
    margin-top: 6px;
    color: var(--danger);
    font-size: 13px;
}

.ewf-details .ewf-details__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 16px 28px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.ewf-details__footer::before,
.ewf-details__footer::after {
    content: none;
}

.ewf-details__hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--ink-3);
    font-size: 14px;
}

.ewf-details__footer [data-details-action] {
    margin-left: auto;
}

/* Übergabeprotokoll: steht rechts neben der Hauptaktion, nicht allein links. */
.ewf-details__footer [data-details-protocol] {
    margin-left: auto;
}

.ewf-details__footer [data-details-protocol]:not([hidden]) + [data-details-action] {
    margin-left: 0;
}

.ewf-details__footer [hidden] {
    display: none;
}

/* Hinweis in der Auftragsübersicht des Kundenbereichs und auf den Anmeldeseiten
   (z. B. abgelaufener Bestätigungslink), bewusst ohne Warnfarbe. */
.ewf-account .ewf-order-alert--note,
.ewf-auth .ewf-order-alert--note {
    border: 1px solid var(--line);
    background-color: var(--surface-2);
    color: var(--ink-2);
}

@media (max-width: 767px) {
    .ewf-details .ewf-details__footer {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 18px;
    }

    .ewf-details__footer [data-details-action],
    .ewf-details__footer [data-details-protocol] {
        justify-content: center;
        margin-left: 0;
    }

    .ewf-details__group {
        padding: 14px 14px 8px;
    }
}


/* --- Kundenbereich: Gerüst (layout.account) ------------------------------- */

/* Unter 992px steht die Navigation über dem Inhalt. Statt sechs Zeilen
   untereinander (gut 300px vor dem ersten Inhalt) eine waagrechte Reihe,
   die sich seitlich schieben lässt. */
@media (max-width: 991px) {
    .ewf-account__nav {
        margin-bottom: 32px;
    }

    .site-app .ewf-account__nav .widget-title {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .site-app .ewf-account__nav .widget_nav_menu {
        margin: 0;
    }

    .site-app .ewf-account__nav .menu {
        display: flex;
        gap: 6px;
        margin: 0 -16px;
        padding: 0 16px 4px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .site-app .ewf-account__nav .menu-item,
    .site-app .ewf-account__nav .menu-item:first-child {
        flex: none;
        margin: 0;
    }

    .site-app .ewf-account__nav .menu-item a {
        min-height: 40px;
        padding: 0 16px;
        border: 1px solid var(--line);
        border-radius: var(--radius-pill);
        font-size: 15px;
        white-space: nowrap;
    }

    .site-app .ewf-account__nav .menu-item.current a {
        border-color: var(--ink);
        background-color: var(--ink);
        color: #ffffff;
        box-shadow: none;
    }

    .site-app .ewf-account__nav .menu-item--logout {
        margin: 0;
        padding: 0;
        border: 0;
    }
}

.ewf-overview-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.ewf-overview-head__actions form {
    margin: 0;
}

@media (max-width: 767px) {
    .ewf-overview-head__actions {
        margin-bottom: 0;
    }
}

.ewf-account__intro {
    max-width: 640px;
    margin: -8px 0 24px;
    color: var(--ink-2);
    font-size: 16px;
}

.ewf-account__empty {
    margin: 0;
    padding: 40px 24px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    color: var(--ink-2);
    text-align: center;
}

.ewf-backlink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--ink-2);
    font-size: 15px;
    text-decoration: none;
}

.ewf-backlink:hover {
    color: var(--ink);
    text-decoration: underline;
}

.ewf-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    vertical-align: middle;
}

.ewf-badge--accent {
    border-color: transparent;
    background-color: var(--accent);
    color: var(--accent-ink);
}


/* --- Kundenbereich: Gruppen ----------------------------------------------- */

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

/* Die ganze Karte ist klickbar (der Link im Namen deckt sie ab). */
.ewf-group-card {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.ewf-group-card:not(.is-pending):hover {
    border-color: var(--line-strong);
    box-shadow: 0 6px 18px rgba(0, 34, 55, .08);
}

.ewf-group-card.is-pending {
    background-color: var(--surface-2);
}

.ewf-group-card__name {
    margin: 0 0 6px;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.ewf-group-card__name a {
    color: var(--ink);
    text-decoration: none;
}

.ewf-group-card__name a::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
}

.ewf-group-card__name a:focus-visible {
    outline: none;
}

.ewf-group-card__name a:focus-visible::after {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
}

.ewf-group-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
    color: var(--ink-3);
    font-size: 14px;
}

.ewf-group-card__actions {
    display: flex;
    gap: 8px;
}

.ewf-group-card__actions form {
    margin: 0;
}

.ewf-group-card__chevron {
    color: var(--ink-3);
}

/* Mitgliederliste */
.ewf-members {
    width: 100%;
    border-collapse: collapse;
}

.ewf-members th {
    padding: 12px;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
}

.ewf-members td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
    vertical-align: middle;
}

.ewf-members__name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.ewf-members__mail {
    display: block;
    color: var(--ink-3);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.ewf-members__none {
    color: var(--ink-3);
}

.ewf-members__actions {
    white-space: nowrap;
    text-align: right;
}

.ewf-members__actions > *,
.ewf-members__actions form {
    display: inline-flex;
    margin: 0 0 0 6px;
    vertical-align: middle;
}

.ewf-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.ewf-status--ok {
    color: var(--success);
}

.ewf-status--wait {
    color: var(--ink-3);
}

/* "Übernommen als Auftrag …" in der Anfragenliste darf umbrechen; sonst ragt er
   auf schmalen Bildschirmen aus der Tabelle. */
.ewf-account #request-table .ewf-status {
    white-space: normal;
}

.ewf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ewf-chips li {
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    background-color: var(--surface-2);
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
}

/* Schmal: jede Zeile eine Karte, die Spaltenüberschrift steht davor. */
@media (max-width: 767px) {
    .ewf-members thead {
        display: none;
    }

    .ewf-members,
    .ewf-members tbody,
    .ewf-members tr,
    .ewf-members td {
        display: block;
    }

    .ewf-members tr {
        position: relative;
        margin-bottom: 12px;
        padding: 14px 16px;
        border: 1px solid var(--line);
        border-radius: 12px;
    }

    .ewf-members td {
        padding: 4px 0;
        border: 0;
    }

    .ewf-members td[data-label]:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        color: var(--ink-3);
        font-size: 13px;
    }

    .ewf-members__actions {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .ewf-members td:first-child {
        padding-right: 90px;
    }
}


/* --- Kundenbereich: Formulare --------------------------------------------- */

.ewf-account-forms {
    display: grid;
    gap: 24px;
}

.ewf-form-card {
    max-width: 760px;
    margin: 0;
    padding: 24px 28px 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background-color: var(--surface);
}

.ewf-form-card__title {
    margin: 0 0 4px;
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.ewf-form-card__hint {
    margin: 0 0 20px;
    color: var(--ink-3);
    font-size: 15px;
}

.ewf-form-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

/* Links als Button tragen keine Unterstreichung, auch nicht über die
   Link-Regel des Kundenbereichs. */
.site-app a.ewf-btn,
.site-app a.ewf-btn:hover {
    text-decoration: none;
}

.ewf-form-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0 16px;
}

.ewf-field {
    grid-column: 1 / -1;
    min-width: 0;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .ewf-field--half { grid-column: span 3; }
    .ewf-field--third { grid-column: span 2; }
    .ewf-field--two-thirds { grid-column: span 4; }
}

.site-app .ewf-field label,
.site-public .ewf-field label {
    display: block;
    margin: 0 0 6px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
}

/* border-box: sonst zählt min-height: 44px ohne Innenabstand und Rahmen,
   die Felder wurden 70px hoch und ragten über ihre Spalte hinaus. */
.site-app .ewf-field input,
.site-app .ewf-field select,
.site-app .ewf-field textarea,
.site-public .ewf-field input,
.site-public .ewf-field select,
.site-public .ewf-field textarea {
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
}

.site-app .ewf-field input[readonly],
.site-public .ewf-field input[readonly] {
    background-color: var(--surface-2);
    color: var(--ink-2);
}

.ewf-field__hint {
    margin: 6px 0 0;
    color: var(--ink-3);
    font-size: 14px;
}

.ewf-field__hint.is-ok {
    color: var(--success);
}

.ewf-field__hint.is-error,
.ewf-field__error {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 14px;
}

.ewf-member-summary {
    display: flex;
    flex-direction: column;
    margin: 0 0 20px;
}

.ewf-member-summary strong {
    font-weight: 700;
}

.ewf-member-summary span {
    color: var(--ink-3);
}

/* Rechte eines Gruppenmitglieds */
.ewf-rights {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
}

.ewf-rights legend {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
}

.site-app .ewf-right {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-weight: 400;
    cursor: pointer;
}

.site-app .ewf-right:has(input:checked) {
    border-color: var(--ink);
    background-color: var(--surface-2);
}

.site-app .ewf-right input[type='checkbox'] {
    flex: none;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: var(--ink);
}

.site-app .ewf-right strong {
    display: block;
    color: var(--ink);
    font-weight: 700;
}

.ewf-right__hint {
    display: block;
    color: var(--ink-3);
    font-size: 14px;
}

@media (max-width: 767px) {
    .ewf-form-card {
        padding: 20px 18px 22px;
    }
}


/* --- Anmelden und Registrieren ------------------------------------------- */

.ewf-auth__intro {
    max-width: 70ch;
    margin: 0 0 28px;
    color: var(--ink-2);
    font-size: 18px;
    line-height: 1.6;
}

/* Vorher lagen Einleitung, Anmeldung und Registrierung als drei Spalten
   nebeneinander; die Anmeldung war so schmal, dass ihre Felder nur die halbe
   Karte füllten. */
.ewf-auth {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .ewf-auth {
        grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    }
}

.ewf-auth .ewf-form-card {
    max-width: none;
}

/* Passwort- und Bestätigungsseiten: eine Karte, nicht über die ganze
   Bildschirmbreite. */
.ewf-auth--single {
    max-width: 640px;
    margin: 0 auto;
}

.ewf-auth .ewf-check {
    margin-top: 4px;
}

.ewf-auth .ewf-order-alert ul {
    margin: 0;
    padding-left: 18px;
}


/* --- Startseite: Bild und Leistungen -------------------------------------- */

.ewf-figure {
    margin: 0;
}

.ewf-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
}

/* Vorher zwei Bootstrap-Reihen mit Symbolen in unterschiedlichen Größen und
   ohne gemeinsame Grundlinie. */
/* Fünf Fahrzeugarten. Ein Raster aus drei Spalten ließ die zweite Reihe halb
   leer stehen — der Umbruch machte den Abschnitt unruhig. Breit stehen sie
   deshalb in genau einer Reihe, schmal untereinander; eine halbe Reihe
   entsteht in keiner Breite. */
.ewf-services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.ewf-service {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: var(--surface);
}

@media (min-width: 992px) {
    .ewf-services {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }

    .ewf-service {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 24px 14px;
        text-align: center;
    }
}

.ewf-service__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--ink);
    color: var(--accent);
    font-size: 20px;
}

.ewf-service__text {
    margin: 0;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.5;
}

.ewf-service__body {
    min-width: 0;
}

.ewf-service__title {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
}

/* Der Satz unter den Karten lief vorher über die volle Containerbreite. */
.ewf-services__note {
    max-width: 70ch;
    margin: 0;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.7;
}


/* --- Startseite: Vertrauensleiste unter dem Hero --------------------------
   Vier Aussagen, die vorher im Fließtext weiter unten standen. Die Leiste
   sitzt bewusst zwischen Hero und erstem Abschnitt: sie ist das Erste, was
   nach dem Bild kommt, und beantwortet "warum ihr" ohne Scrollen. */

.ewf-usp-band {
    border-bottom: 1px solid var(--line);
    background-color: var(--surface);
    padding: 28px 0;
}

.ewf-usps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ewf-usp {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ewf-usp__icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface-2);
    color: var(--deep);
    font-size: 17px;
}

.ewf-usp__body {
    min-width: 0;
}

.ewf-usp__title {
    display: block;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.ewf-usp__text {
    display: block;
    margin-top: 2px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.5;
}


/* --- Startseite: Ablauf ---------------------------------------------------
   Vier Schritte statt zweier Absätze in einem Textblock. Die Zahl steht in
   einem eigenen Kreis, damit die Reihenfolge auch beim Überfliegen trägt;
   die Liste ist ein <ol>, also auch ohne Bild eine Reihenfolge. */

.ewf-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.ewf-step {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background-color: var(--surface);
}

.ewf-step__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 50%;
    background-color: var(--ink);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
}

.ewf-step__title {
    margin: 0 0 6px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.ewf-step__text {
    margin: 0;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
}


/* --- Startseite: Häufige Fragen ------------------------------------------
   <details> statt eines Akkordeons aus JavaScript: funktioniert ohne Skript,
   der Text steht im Dokument und ist mit der Seitensuche zu finden. */

.ewf-faq {
    max-width: 70ch;
}

.ewf-faq__item {
    border-bottom: 1px solid var(--line);
}

.ewf-faq__item:first-child {
    border-top: 1px solid var(--line);
}

.ewf-faq__question {
    position: relative;
    display: block;
    padding: 18px 40px 18px 0;
    color: var(--ink);
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
}

/* Das Standarddreieck von Safari und Chrome. */
.ewf-faq__question::-webkit-details-marker {
    display: none;
}

.ewf-faq__question::after {
    content: '\f067';
    position: absolute;
    top: 18px;
    right: 8px;
    color: var(--deep);
    font-family: 'Font Awesome 5 Free';
    font-size: 13px;
    font-weight: 900;
}

.ewf-faq__item[open] .ewf-faq__question::after {
    content: '\f068';
}

.ewf-faq__question:hover {
    color: var(--deep);
}

.ewf-faq__question:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
}

.ewf-faq__answer {
    margin: 0;
    padding: 0 40px 20px 0;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.7;
}


/* --- Rechtstexte (Impressum, Datenschutz, AGB) ----------------------------
   Vorher lief der Text über die volle Containerbreite — bei 1440px rund 150
   Zeichen je Zeile. */

.ewf-legal {
    max-width: 70ch;
}

.ewf-legal > .row {
    /* Eine .row ohne Spalte darin: ihr negativer Rand zog den Text 15px
       nach links, aus der Flucht mit Brotkrumenpfad und Seitenkopf. */
    margin-right: 0;
    margin-left: 0;
}

.ewf-legal .ewf-headline {
    margin-bottom: 40px;
}

.ewf-legal__text h2,
.ewf-legal__text h3,
.ewf-legal__text h4,
.ewf-legal__text h5 {
    margin: 36px 0 8px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.ewf-legal__text h2 {
    font-size: 24px;
}

.ewf-legal__text h3 {
    font-size: 20px;
}

.ewf-legal__text h4,
.ewf-legal__text h5 {
    font-size: 17px;
}

/* Auch eine Ebene tiefer: die Sub-AGB stecken in <div class="section">,
   ihre erste Überschrift begann sonst 36px unter dem gemeinsamen Abstand. */
.ewf-legal__text > :first-child,
.ewf-legal__text > :first-child > :first-child {
    margin-top: 0;
}

.ewf-legal__text p,
.ewf-legal__text li {
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.7;
}

.ewf-legal__text p {
    margin: 0 0 14px;
}

.ewf-legal__text strong {
    color: var(--ink);
    font-weight: 700;
}

.ewf-legal__text a {
    overflow-wrap: anywhere;
}


/* --- Kontakt -------------------------------------------------------------- */

.ewf-contact {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .ewf-contact {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    }
}

.ewf-contact .ewf-form-card {
    max-width: none;
}

.ewf-contact__details {
    background-color: var(--surface-2);
}

.ewf-contact__list {
    margin: 0;
}

.ewf-contact__list dt {
    margin-top: 18px;
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
}

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

.ewf-contact__list dd {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
}

.ewf-contact__list address {
    margin: 0;
    font-style: normal;
}

.ewf-contact__list strong {
    font-weight: 700;
}

.ewf-contact__note {
    display: block;
    margin: 8px 0 0;
    color: var(--ink-3);
    font-size: 14px;
    line-height: 1.5;
}


/* --- Brotkrumenpfad -----------------------------------------------------
   Schmale Leiste direkt unter dem Seitenkopf, auf allen Unterseiten gleich.
   Maße in px: im Kundenbereich setzt bootstrap.css html { font-size: 10px }. */

/* Die schräge Fläche im Seitenkopf ragt 10px unter das Bild (Theme:
   padding-bottom am ::before) und schnitt in die Leiste. Die Leiste liegt
   deshalb darüber; #page-header bekommt einen eigenen Stapelkontext, sonst
   stünde die Fläche mit z-index 222 des Titels über allem. */
#page-header {
    position: relative;
    z-index: 1;
}

.ewf-breadcrumb {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--line);
    background-color: var(--surface);
}

.ewf-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 14px 0;
    list-style: none;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.4;
}

.ewf-breadcrumb li {
    display: flex;
    align-items: center;
    min-width: 0;
    color: var(--ink);
}

.ewf-breadcrumb li + li::before {
    content: "\203A";
    margin: 0 10px;
    color: var(--ink-3);
}

.ewf-breadcrumb a {
    color: var(--ink-2);
    text-decoration: none;
}

.ewf-breadcrumb a:hover {
    color: var(--deep);
    text-decoration: underline;
}

.ewf-breadcrumb .fas {
    margin-right: 6px;
    font-size: 13px;
}

.ewf-breadcrumb [aria-current="page"] {
    font-weight: 700;
}

.ewf-breadcrumb + .ewf-section {
    padding-top: var(--page-gap);
}


/* --- Über uns -------------------------------------------------------------
   Vorher zwei lange Absätze in zwei halben Spalten, rund 30 Zeichen je
   Zeile, und ein Bild mit fester Größe. */

.ewf-about {
    display: grid;
    gap: 32px;
    align-items: start;
}

@media (min-width: 992px) {
    .ewf-about {
        grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
        gap: 56px;
    }
}

.ewf-about__text {
    max-width: 65ch;
}

.ewf-about__text > p {
    margin: 0 0 16px;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.7;
}

.ewf-about__text strong {
    color: var(--ink);
    font-weight: 700;
}

.ewf-about__quote {
    margin: 28px 0;
    padding: 4px 0 4px 20px;
    border-left: 4px solid var(--accent);
}

.ewf-about__quote p {
    margin: 0;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
}

.ewf-about__quote .ewf-about__slogan {
    margin-bottom: 6px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 600;
}

/* Die fünf Punkte als schlichte Liste im Text, nicht als eigenes Raster. */
.ewf-about__text > .ewf-about__list-title {
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 700;
}

.ewf-about__list {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.ewf-about__list li {
    position: relative;
    padding: 4px 0 4px 28px;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.6;
}

.ewf-about__list .fa-check {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--deep);
    font-size: 14px;
}

.ewf-about__text > .ewf-about__claim {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 600;
}

/* Der Text ist jetzt länger als das Bild; das Bild bleibt beim Lesen stehen. */
@media (min-width: 992px) {
    .ewf-about__image {
        position: sticky;
        top: 24px;
    }
}

.ewf-about__facts {
    margin-top: 8px;
}

/* Auf grauem Grund verschwand der graue Kreis hinter dem Symbol. */
.ewf-section--muted .ewf-usp__icon {
    background-color: var(--surface);
}

/* Das Theme gibt jedem Abschnitt 120px oben und unten; für eine Zeile
   Eckdaten war das mehr Luft als Inhalt. */
.ewf-section.ewf-section--compact {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.ewf-about__cta-title {
    color: var(--surface);
}


/* --- Impressum -------------------------------------------------------------
   Links die Abschnitte als gleichförmige Blöcke, rechts die Pflichtangaben
   als Seitenleiste wie auf Kontakt und Vermietung. Vorher ein Kasten über
   dem Text und darunter Überschriften in drei Größen. */

.ewf-imprint-layout {
    display: grid;
    gap: 32px;
    align-items: start;
}

/* Schmal stehen die Pflichtangaben zuerst. */
.ewf-imprint {
    order: -1;
    background-color: var(--surface-2);
}

@media (min-width: 992px) {
    .ewf-imprint-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
        gap: 56px;
    }

    .ewf-imprint {
        position: sticky;
        top: 140px;
        order: 0;
    }
}

.ewf-imprint__text {
    max-width: 70ch;
}

/* Alle Abschnitte gleich: kleine Überschrift, feine Linie darüber. */
.ewf-imprint__text > h2,
.ewf-imprint__text > h3 {
    margin: 28px 0 8px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 17px;
}

.ewf-imprint__text > h2:first-child,
.ewf-imprint__text > h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.ewf-imprint__text p {
    font-size: 15px;
}

.ewf-imprint__list {
    margin: 12px 0 0;
}

.ewf-imprint__list div + div {
    margin-top: 16px;
}

.ewf-imprint__list dt {
    color: var(--ink-3);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 400;
}

.ewf-imprint__list dd {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
}

.ewf-imprint__list address {
    margin: 0;
    font-style: normal;
}

.ewf-imprint__list strong {
    font-weight: 700;
}

.ewf-imprint__privacy {
    margin: 20px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 15px;
}


/* --- Kranvermietung ------------------------------------------------------
   Aufbau wie die Anfrage: nummerierte Schritte, daneben die technischen
   Daten. Vorher standen Stil und Skript der Seite in einem <style>-Block im
   Markup. */

.ewf-rental {
    display: grid;
    gap: 32px;
    align-items: start;
}

/* Schmal stehen die technischen Daten über dem Formular: man sieht zuerst,
   was man mietet. */
.ewf-rental__specs {
    order: -1;
    background-color: var(--surface-2);
}

@media (min-width: 992px) {
    .ewf-rental {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    }

    .ewf-rental__specs {
        order: 0;
    }
}

.ewf-rental .ewf-form-card {
    max-width: none;
}

/* .ewf-order-step gibt jedem Feld 20px Abstand nach unten; hier trägt den
   Abstand schon .ewf-field. */
.ewf-rental .ewf-order-step .ewf-field input,
.ewf-rental .ewf-order-step .ewf-field select {
    margin-bottom: 0;
}

/* Nicht als .ewf-field: dessen Regel für Beschriftungen (fett, Block)
   träfe auch die Pillen. */
.ewf-rental__choice {
    grid-column: 1 / -1;
}

@media (min-width: 640px) {
    .ewf-rental__choice {
        grid-column: span 3;
    }
}

.ewf-rental .ewf-choice > legend {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: 15px;
}

.ewf-rental__consent {
    display: grid;
    gap: 12px;
    margin-top: 8px;
}

.ewf-rental__model {
    margin: 0 0 16px;
    color: var(--ink-2);
    font-size: 15px;
}

.ewf-rental__list {
    margin: 0 0 20px;
}

.ewf-rental__list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.ewf-rental__list div:last-child {
    border-bottom: 1px solid var(--line);
}

.ewf-rental__list dt {
    color: var(--ink-2);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 400;
}

.ewf-rental__list dd {
    margin: 0;
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

/* Tage-Zähler: Zahlenfeld zwischen zwei Knöpfen, die Einheit dahinter. */
.ewf-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ewf-stepper__btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--target);
    height: var(--target);
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background-color: var(--surface);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.ewf-stepper__btn:hover {
    border-color: var(--ink);
    background-color: var(--surface-2);
}

.site-public .ewf-rental .ewf-stepper input {
    flex: none;
    width: 72px;
    text-align: center;
    font-weight: 700;
}

.ewf-stepper__unit {
    color: var(--ink);
    font-weight: 700;
}


/* --- Bewerbung als Subunternehmer ----------------------------------------
   Vorher Formular und Gründe als zwei halbe Spalten: das Formular war
   gequetscht, die Gründe steckten in einem Akkordeon. Jetzt die Gründe als
   Leiste oben, darunter Formular und Ablauf wie bei der Kontaktseite. */

.ewf-apply__why {
    margin-bottom: 48px;
}

/* Untertitel unter der Überschrift. Stand vorher als großer Absatz allein
   über ihr und gehörte zu nichts. */
.ewf-apply__lead {
    max-width: 65ch;
    margin: 0 0 28px;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
}

/* Fünf Gründe: drei je Reihe statt vier und einer allein darunter. */
.ewf-apply__why .ewf-usps {
    gap: 28px 32px;
}

@media (min-width: 992px) {
    .ewf-apply__why .ewf-usps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ewf-heading {
    margin: 0 0 8px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.ewf-apply {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .ewf-apply {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    }
}

.ewf-apply .ewf-form-card {
    max-width: none;
}

.ewf-form-section {
    margin: 28px 0 14px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none;
}

.ewf-form-section--first {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.ewf-upload-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.ewf-upload-group legend {
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
}

/* Upload-Feld: das Eingabefeld ist nur optisch verborgen, die Fläche
   darunter nimmt Klick, Fokus und den Dateinamen auf. */
.site-public .ewf-upload {
    position: relative;
    display: block;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.site-public .ewf-upload__label {
    display: block;
    margin: 0 0 6px;
    color: var(--ink-2);
    font-size: 14px;
}

.ewf-upload__optional {
    color: var(--ink-3);
}

/* border-box: sonst kamen Innenabstand und Rahmen zur Mindesthöhe hinzu,
   die Fläche war 82 statt 56px hoch. */
.ewf-upload__box {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 12px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: 10px;
    background-color: var(--surface-2);
    color: var(--ink-2);
    font-size: 15px;
    transition: border-color .15s ease, background-color .15s ease;
}

.ewf-upload__box .fas {
    flex: none;
    color: var(--deep);
    font-size: 18px;
}

.ewf-upload__name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ewf-upload:hover .ewf-upload__box {
    border-color: var(--ink);
}

.ewf-upload:focus-within .ewf-upload__box {
    border-color: var(--ink);
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.ewf-upload.is-filled .ewf-upload__box {
    border-style: solid;
    border-color: var(--success);
    background-color: var(--surface);
    color: var(--ink);
}

.ewf-upload.is-filled .ewf-upload__box .fas {
    color: var(--success);
}

.ewf-upload.is-invalid .ewf-upload__box {
    border-color: var(--danger);
}

.ewf-apply__consent {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.ewf-apply .ewf-order-alert ul {
    margin: 0 0 8px;
    padding-left: 18px;
}

.ewf-apply .ewf-order-alert p {
    margin: 0;
}

.ewf-apply__aside {
    background-color: var(--surface-2);
}

.ewf-apply__steps {
    margin: 12px 0 20px;
    padding: 0;
    list-style: none;
}

.ewf-apply__steps li {
    position: relative;
    min-height: 32px;
    margin: 0 0 16px;
    padding-left: 46px;
}

.ewf-apply__steps .ewf-apply__number {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--ink);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 15px;
    font-weight: 700;
}

.ewf-apply__steps strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.ewf-apply__steps span:not(.ewf-apply__number) {
    display: block;
    margin-top: 2px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.5;
}

.ewf-apply__contact {
    display: grid;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 16px;
}

.ewf-apply__contact span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ewf-apply__contact .fas {
    width: 18px;
    color: var(--deep);
}


/* --- Kundenbereich: Tabellenstatus ---------------------------------------- */

.ewf-table-status {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-left: 3px solid var(--danger);
    border-radius: 8px;
    background-color: #fbeeed;
    color: var(--ink);
}

.ewf-table-status[hidden],
.ewf-table-status [hidden] {
    display: none;
}

.site-app div.dataTables_wrapper div.dataTables_processing {
    top: 64px;
    width: auto;
    margin: 0;
    padding: 8px 16px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface);
    box-shadow: 0 6px 18px rgba(0, 34, 55, .12);
    color: var(--ink-2);
    font-size: 14px;
}


/* --- Trennlinien ---------------------------------------------------------- */

hr {
    border: 0;
    border-top: 1px solid var(--line);
}


/* ==========================================================================
   5 · Website-Ergänzungen

   Aus combined.css hierher verschoben: eigener Code gehört nicht in die
   Theme-Datei. Inhaltlich unverändert.
   ========================================================================== */

/* Schnellzugriff in der bisher leeren Mittelspalte des Footers. */
.footer-quicklinks {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-quicklinks a {
    display: inline-flex;
    align-items: center;
    min-height: var(--target);
}

/* Rechtstexte im globalen Footer. */
.footer-legal-links {
    margin-top: var(--space-2);
}

.footer-legal-links a {
    display: inline-block;
    margin-right: var(--space-5);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-legal-links a:last-child {
    margin-right: 0;
}

/* Die Vorspannzeile im Hero war eine H4 in einem <p> — eine Überschrift vor
   der H1 und ungültiges HTML. Sie ist jetzt ein <span> und übernimmt hier die
   Darstellung, die sie vorher über das h4-Element hatte. */
.ewf-hero-lead {
    display: block;
    margin-top: var(--space-3);
    font-family: var(--font-head);
    font-size: 1.25em;
    font-weight: 500;
    line-height: 1.3;
}


/* ==========================================================================
   6 · Consent-Layer (Klaro)

   Klaro kommt als dunkles Widget mit eigenen Blau- und Grüntönen. Die Tokens
   unten stammen ausnahmslos aus dem Bestand: --ink und die Poppins/Lato-
   Paarung aus der Typografie, --accent und die Pille aus .ewf-btn.

   Zurückhaltung: Gelb trägt genau eine Sache, die Zustimmen-Schaltfläche.
   ========================================================================== */

.klaro {
    --font-family: var(--font-body);
    --title-font-family: var(--font-head);
    --font-size: 15px;

    /* Klaro benennt seine Flächen für ein dunkles Thema. Hier tragen sie die
       helle Variante: dark1 ist die Kartenfläche, light1 die Schrift darauf. */
    --dark1: #ffffff;
    --dark2: #002237;
    --dark3: #004563;
    --light1: #002237;
    --light2: #33505f;
    --light3: #dde5ea;
    --white2: #f4f7f9;
    --white3: #ffffff;

    --border-radius: 3px;
    --border-width: 1px;
    --border-style: solid;
    --box-shadow-color: rgba(0, 34, 55, .22);
    --button-text-color: #ffffff;
}

/* --- Flächen ------------------------------------------------------------ */

.klaro .cookie-modal .cm-modal.cm-klaro,
.klaro .cookie-notice:not(.cookie-modal-notice) {
    background-color: var(--surface);
    color: var(--ink);
    box-shadow: 0 10px 40px rgba(0, 34, 55, .22);
}

.klaro .cookie-modal .cm-bg {
    background: rgba(0, 34, 55, .72);
}

.klaro .cookie-notice:not(.cookie-modal-notice) {
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
}

/* --- Typografie --------------------------------------------------------- */

.klaro .cookie-modal .cm-modal .cm-header h1,
.klaro .cookie-modal .cm-modal .cm-header h1.title {
    font-family: var(--font-head);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
}

.klaro .cookie-modal .cm-modal .cm-header,
.klaro .cookie-modal .cm-modal .cm-footer {
    border-color: var(--line);
}

.klaro .cookie-modal p,
.klaro .cookie-notice p {
    max-width: 62ch;
    line-height: 1.6;
    color: var(--ink-2);
}

.klaro .cookie-modal a,
.klaro .cookie-notice a,
.klaro .cookie-modal .cm-link {
    color: var(--deep);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.klaro .cookie-modal a:hover,
.klaro .cookie-notice a:hover {
    color: var(--ink);
}

/* --- Dienstliste -------------------------------------------------------- */

.klaro .cookie-modal .cm-services .cm-service,
.klaro .cookie-modal .cm-service {
    border-color: var(--line);
}

.klaro .cookie-modal .cm-list-title,
.klaro .cookie-notice .cm-list-title {
    font-weight: 700;
    color: var(--ink);
}

.klaro .cookie-modal .cm-list-description,
.klaro .cookie-notice .cm-list-description {
    color: var(--ink-3);
    line-height: 1.55;
}

.klaro .cookie-modal .cm-list-input + .cm-list-label .slider,
.klaro .cookie-notice .cm-list-input + .cm-list-label .slider {
    background-color: #c3ced5;
}

.klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider,
.klaro .cookie-notice .cm-list-input:checked + .cm-list-label .slider {
    background-color: var(--deep);
}

.klaro .cookie-modal .cm-list-input:focus-visible + .cm-list-label .slider,
.klaro .cookie-notice .cm-list-input:focus-visible + .cm-list-label .slider {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
}

/* --- Schaltflächen ------------------------------------------------------ */

.klaro .cookie-modal .cm-btn,
.klaro .cookie-notice .cm-btn {
    display: inline-block;
    min-height: var(--target);
    padding: var(--space-3) var(--space-6);
    border: 2px solid transparent;
    border-radius: var(--radius-pill);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    background-color: var(--ink);
    color: var(--surface);
    transition: .2s all ease;
}

/* Zustimmen trägt als einziges Element das Gelb. */
.klaro .cookie-modal .cm-btn.cm-btn-success,
.klaro .cookie-modal .cm-btn.cm-btn-accept-all,
.klaro .cookie-notice .cm-btn.cm-btn-success,
.klaro .cookie-notice .cm-btn.cm-btn-accept-all {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}

.klaro .cookie-modal .cm-btn.cm-btn-success:hover,
.klaro .cookie-modal .cm-btn.cm-btn-accept-all:hover,
.klaro .cookie-notice .cm-btn.cm-btn-success:hover,
.klaro .cookie-notice .cm-btn.cm-btn-accept-all:hover {
    background-color: var(--ink);
    border-color: var(--accent);
    color: var(--accent);
}

/* Ablehnen bekommt dieselbe Größe und eine volle Fläche: die Entscheidung
   darf optisch nicht schwerer wiegen als die Zustimmung. */
.klaro .cookie-modal .cm-btn.cn-decline,
.klaro .cookie-modal .cm-btn.cm-btn-decline,
.klaro .cookie-modal .cm-btn.cm-btn-danger,
.klaro .cookie-notice .cm-btn.cn-decline,
.klaro .cookie-notice .cm-btn.cm-btn-decline,
.klaro .cookie-notice .cm-btn.cm-btn-danger {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--surface);
    opacity: 1;
}

.klaro .cookie-modal .cm-btn.cn-decline:hover,
.klaro .cookie-modal .cm-btn.cm-btn-decline:hover,
.klaro .cookie-modal .cm-btn.cm-btn-danger:hover,
.klaro .cookie-notice .cm-btn.cn-decline:hover,
.klaro .cookie-notice .cm-btn.cm-btn-decline:hover,
.klaro .cookie-notice .cm-btn.cm-btn-danger:hover {
    background-color: var(--surface);
    border-color: var(--ink);
    color: var(--ink);
}

/* "Ausgewählte akzeptieren" sichert die gesetzten Schalter — eine
   Nebenhandlung neben den beiden Entscheidungen, deshalb ohne Fläche. */
.klaro .cookie-modal .cm-btn.cm-btn-success-var,
.klaro .cookie-notice .cm-btn.cm-btn-info {
    background-color: transparent;
    border-color: transparent;
    color: var(--deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-left: var(--space-3);
    padding-right: var(--space-3);
}

.klaro .cookie-modal .cm-btn.cm-btn-success-var:hover,
.klaro .cookie-notice .cm-btn.cm-btn-info:hover {
    background-color: transparent;
    color: var(--ink);
}

.klaro .cookie-modal .cm-btn:focus-visible,
.klaro .cookie-notice .cm-btn:focus-visible {
    outline: 2px solid var(--deep);
    outline-offset: 2px;
}

.klaro .cookie-modal .cm-footer-buttons,
.klaro .cookie-notice .cn-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
}

.klaro .cookie-modal .cm-btn-close {
    background: transparent;
    border: 0;
    color: var(--ink-3);
    padding: var(--space-1);
}

.klaro .cookie-modal .cm-btn-close:hover {
    color: var(--ink);
    background: transparent;
}


/* ==========================================================================
   7 · Schmale Darstellung
   ========================================================================== */

@media (max-width: 480px) {
    .klaro .cookie-modal .cm-footer-buttons,
    .klaro .cookie-notice .cn-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .klaro .cookie-modal .cm-btn,
    .klaro .cookie-notice .cm-btn {
        width: 100%;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ewf-btn,
    .klaro .cookie-modal .cm-btn,
    .klaro .cookie-notice .cm-btn,
    .klaro .cookie-modal .slider,
    .klaro .cookie-notice .slider,
    .site-public input,
    .site-public select,
    .site-public textarea,
    .site-app input,
    .site-app select,
    .site-app textarea {
        transition: none;
    }
}
