/*
================================================================================
  BASTELBEN: style.css (Haupt-Stylesheet, auf allen Seiten geladen)
================================================================================
*/

/*
================================================================================
  1. RESET UND GRUNDLAYOUT
================================================================================
*/

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    background-color: var(--blackblue);
    color: var(--ghostwhite);
    font-family: var(--lexenddeca);
    min-height: 100vh;
    min-height: 100dvh;
}

body {
    display: flex;
    flex-direction: column;
    /* Header, Main und Footer untereinander */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    /* Platz für die fixierte Navigation bei Anker-Sprüngen */
    scrollbar-width: none;
    /* Scrollbalken ausblenden (Firefox) */
}

/* Scrollbalken ausblenden (Chrome, Safari) */
html::-webkit-scrollbar {
    display: none;
}

main,
.footer-inhalt,
.footer-unten {
    width: 65%;
    margin: 0 auto;
    flex: 1;
}

/* Auf kleineren Bildschirmen: Inhalt breiter (gilt auch unter 768px) */
@media (max-width: 1100px) {

    main,
    .footer-inhalt,
    .footer-unten {
        width: 85%;
    }
}

.fullwidth {
    width: auto;
    margin-inline: calc(50% - 50vw);
    max-width: 100vw;
    overflow: hidden;
}

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/*
================================================================================
  2. DESIGN-VARIABLEN
  Alle Farben, Schriften, Größen und Abstände. Die Navigation ergänzt weiter unten
  eigene Variablen (--nav-*) in einem zweiten :root.
================================================================================
*/

:root {
    /*FARBEN*/
    --blue: rgb(111 128 234);
    --lightblue: rgb(191 205 255);
    --ghostwhite: rgb(249 249 249);
    --blackblue: rgb(27 29 36);

    /*TYPOGRAFIE*/
    --poppins: 'Poppins', sans-serif;
    --lexenddeca: 'Lexend Deca', sans-serif;

    --light: 300;
    --regular: 400;
    --medium: 500;
    --semibold: 600;
    --bold: 700;

    /* TYPOGRAFIE — fluid von 320px bis 1280px Viewport */
    --font-size-h1: clamp(1.75rem, 1.2rem + 3vw, 3.5rem);
    --font-size-h2: clamp(1.4rem, 1.2rem + 1vw, 2rem);
    --font-size-h3: clamp(1.25rem, 1.2rem + 0.4vw, 1.5rem);
    --font-size-h4: clamp(1rem, 1rem + 0.2vw, 1.2rem);
    --font-size-p: 1rem;
    --font-size-hint: 0.75rem;

    /* ABSTÄNDE */
    --space-xs: 0.25rem;
    --space-s: 0.5rem;
    --space-m: 1rem;
    --space-l: clamp(1.25rem, 1.2rem + 0.4vw, 1.5rem);
    --space-xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
    --space-2xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
    --space-3xl: clamp(3.5rem, 2.6rem + 4.2vw, 10rem);
}

/*
================================================================================
  3. TYPOGRAFIE
================================================================================
*/

h1 {
    font-family: var(--poppins);
    font-size: var(--font-size-h1);
    font-weight: var(--semibold);
    margin-bottom: var(--space-s);
}

.headline {
    /* clamp(Minimum, Bevorzugt, Maximum) */
    /* Minimum von 1.6rem sorgt dafür, dass selbst 320px breite Screens passen */
    font-size: clamp(1.6rem, 5vw + 1rem, 5.5rem);
    line-height: 1.35;
}

h2 {
    font-family: var(--poppins);
    font-size: var(--font-size-h2);
    font-weight: var(--semibold);
    margin-bottom: var(--space-s);
}

h3 {
    font-family: var(--poppins);
    font-size: var(--font-size-h3);
    font-weight: var(--semibold);
    margin-bottom: var(--space-s);
}

h4 {
    font-family: var(--poppins);
    font-size: var(--font-size-h4);
    font-weight: var(--semibold);
    margin-bottom: var(--space-s);
}

p {
    font-family: var(--lexenddeca);
    font-weight: var(--light);
    font-size: var(--font-size-p);
    line-height: 1.6;
    margin-bottom: var(--space-s);
}

.headline {
    /* Erzwingt eine Silbentrennung bei sehr langen Wörtern */
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    /* Nutzt automatische deutsche Silbentrennung */
}

ul {
    list-style: none;
}

.liste {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    margin: var(--space-s) 0 var(--space-l);
}

.liste li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: var(--lexenddeca);
    font-weight: var(--light);
    font-size: var(--font-size-p);
    line-height: 1.6;
}

.liste li::before {
    content: '—';
    color: var(--blue);
    flex-shrink: 0;
    font-weight: var(--regular);
}

.highlight,
.link {
    color: var(--blue);
}

.highlight02 {
    color: var(--lightblue);
}

h1, h2, h3, h4, h5, h6, .link, .headline, .highlight ul, ol {
    text-wrap: pretty;
}



/*
================================================================================
  4. TEXTMARKIERUNG
  Farbe beim Markieren von Text.
================================================================================
*/

::selection {
    background-color: var(--lightblue);
    color: #000000;
}

/*
================================================================================
  5. RECHTLICHE SEITEN
  Gilt für datenschutz.html, impressum.html und nutzungsbedingungen.html (<main class="rechtliche-seite">).
================================================================================
*/

.rechtliche-seite {
    padding: 0 var(--space-3xl);
    max-width: 60rem;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .rechtliche-seite {
        padding: 0;
    }
}

/* Hauptkapitel (h2): große Abstände und Trennlinie */

.rechtliche-seite h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-l);
    border-bottom: 1px solid rgba(249, 249, 249, 0.1);
    padding-bottom: var(--space-s);
}

/* Unterkapitel (h3) */

.rechtliche-seite h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-m);
}

.rechtliche-seite h2,
.rechtliche-seite h3 {
    hyphens: auto;
    overflow-wrap: break-word;
    max-width: 100%;
    /* nie breiter als das umgebende main */
}

.rechtliche-seite p {
    margin-bottom: var(--space-l);
    line-height: 1.7;
    /* etwas mehr Zeilenabstand für lange Texte */
}

/* Aufzählungen */

.rechtliche-liste {
    margin-bottom: var(--space-l);
    padding-left: var(--space-m);
}

.rechtliche-liste li {
    margin-bottom: var(--space-s);
    display: flex;
    gap: var(--space-s);
}

.rechtliche-seite .link {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.rechtliche-seite .link:hover {
    border-bottom-color: var(--blue);
}

/* Greift nur, wenn die h1 das erste Kind von main ist. Aktuell steht davor die leere .projekt-hero-Section, dann greift die Regel nicht. */

.rechtliche-seite h1:first-child {
    margin-bottom: var(--space-2xl);
}

/*
================================================================================
  6. BUTTONS
  .primary-btn: gefüllt, blau (Hauptaktion)   .secondary-btn: nur Rahmen
  .download-btn: mit Icon (Shop)   .senden-btn: Absenden (Formulare)
  Die erste Regel setzt die gemeinsame Basis, die folgenden nur die Unterschiede.
  Zustand [disabled] steht hier und noch einmal weiter unten im Kapitel 13.
================================================================================
*/

.primary-btn,
.secondary-btn,
.download-btn,
.senden-btn {
    font-family: var(--lexenddeca);
    font-size: var(--font-size-p);
    font-weight: var(--light);
    color: white;
    text-decoration: none;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 0.625rem;
    cursor: pointer;
    width: fit-content;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.primary-btn {
    background-color: var(--blue);
    display: inline-block;
}

.primary-btn:hover {
    background-color: var(--ghostwhite);
    color: var(--blackblue);
}

.secondary-btn {
    border: 2px solid var(--ghostwhite);
    display: inline-block;
}

.secondary-btn:hover {
    background-color: var(--ghostwhite);
    color: var(--blackblue);
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-s);
    background-color: var(--blue);
    border: none;
    /* hebt den Rahmen von .secondary-btn auf, falls beide Klassen am selben Element stehen */
    margin-top: var(--space-s);
}

.download-btn svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.download-btn:hover {
    background-color: var(--ghostwhite);
    color: var(--blackblue);
}

.primary-btn[disabled],
.senden-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 768px) {

    .primary-btn,
    .secondary-btn,
    .download-btn {
        font-size: var(--font-size-hint);
    }
}

/*
================================================================================
  7. KONTAKT-POPUP
  Kleine Karte unten rechts mit Foto. Im offenen Zustand die Karte (.popup-card),
  im geschlossenen nur der runde Avatar (.popup-badge). Sichtbar wird beides über .ist-sichtbar.
  TODO: Die Farben (Indigo, Slate) sind fest eingetragen und weichen von der Markenpalette ab.
================================================================================
*/

.popup-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    pointer-events: none;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Offene Karte */

.popup-card {
    position: relative;
    width: 460px;
    background-color: #f8f9fa;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.35s;
    visibility: hidden;
    pointer-events: none;
}

.popup-card.ist-sichtbar {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    pointer-events: auto;
}

/* Schließen-Button oben rechts */

.popup-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e2e8f0;
    border: none;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.popup-close-btn:hover {
    background-color: #cbd5e1;
    transform: scale(1.05);
}

.popup-close-btn svg {
    width: 16px;
    height: 16px;
}

/* Foto links */

.popup-image-container {
    width: 165px;
    min-width: 165px;
    position: relative;
}

.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Inhaltsspalte rechts */

.popup-content {
    flex: 1;
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
}

.popup-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    margin: 0 0 10px 0;
    padding-right: 20px;
    /* Platz für den Schließen-Button */
}

.popup-text {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.45;
    margin: 0 0 18px 0;
}

/* Aktions-Buttons */

.popup-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.popup-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.popup-action-btn:hover {
    background-color: #e0e7ff;
    transform: translateY(-2px);
}

.popup-action-btn svg {
    width: 20px;
    height: 20px;
}

/* Geschlossener Zustand (Avatar-Badge) */

.popup-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.35s;
    visibility: hidden;
    pointer-events: none;
}

.popup-badge.ist-sichtbar {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
    pointer-events: auto;
}

.popup-badge:hover {
    transform: scale(1.06);
}

.popup-badge-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #6366f1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.popup-badge-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #6366f1;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.popup-badge-icon svg {
    width: 16px;
    height: 16px;
}

/* Mobil */

@media (max-width: 520px) {
    .popup-card {
        width: calc(100vw - 32px);
        max-width: 400px;
        flex-direction: column;
    }

    .popup-image-container {
        width: 100%;
        height: 160px;
    }

    .popup-container {
        bottom: 16px;
        right: 16px;
    }
}

/*
================================================================================
  HEADER FÜR UNTERSEITEN
================================================================================
*/

/*<header class="site-heder" */
header.site-header {
    width: 100%;
    min-height: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    /* Entfernt Raster-, Verlaufs- oder Hero-Hintergründe */
    box-sizing: border-box;
    display: block;
}

/*<main> >>> <section class="projekt-hero">*/
.subsite-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    height: 40vh;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background-color: var(--blackblue);

    background-image:
        /* Waagerechte Linien — harte Kante bei 8px, siehe FUND 31 */
        linear-gradient(rgba(249, 249, 249, 0.1) 8px, transparent 2px),
        /* Senkrechte Linien — harte Kante bei 8px */
        linear-gradient(90deg, rgba(249, 249, 249, 0.1) 8px, transparent 2px);

    /* Größe der Quadrate — aktuell 100px */
    background-size: 100px 100px;

    background-position: center;
    background-repeat: repeat;

    .projekt-hero {
        height: none;
    }
}

.subsite-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(27, 29, 36, 0.95) 0%,
            rgba(27, 29, 36, 0.4) 50%,
            rgba(27, 29, 36, 0.1) 100%);
}

/*
================================================================================
  8. NAVIGATION (Slide-in-Menü)
  Fixe Leiste oben (.nav-bar) mit Logo und Menü-Button. Der Button öffnet das Menü (.nav-overlay.ist-offen),
  das von rechts hereingleitet. Das HTML liefert navfooter-load.js.
================================================================================
*/

:root {
    --nav-hoehe: 5rem;
    --nav-rand: clamp(1.25rem, 4vw, 3rem);
    --nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-ease-panel: cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: var(--nav-hoehe);
    padding: 0 calc(var(--nav-rand) + var(--scrollbar-breite, 0px)) 0 var(--nav-rand);
    box-sizing: border-box;
    background-color: rgba(27, 29, 36, 0.94);
    transition: transform 0.5s var(--nav-ease), background-color 0.3s ease;
}

/* Beim Runterscrollen nach oben aus dem Bild schieben (Klasse setzt navscroll.js) */

.nav-bar--versteckt {
    transform: translateY(-100%);
}

.nav-logo {
    display: block;
    border-radius: 0.375rem;
}

.nav-logo img {
    display: block;
    width: 9rem;
    height: auto;
}

/* ---------------------------------------------------------------------------
   Menü-Button: Text und Kreis mit Pfeil
   --------------------------------------------------------------------------- */

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0;
    border: none;
    background: none;
    color: var(--ghostwhite);
    font-family: var(--lexenddeca);
    font-weight: var(--light);
    font-size: var(--font-size-p);
    cursor: pointer;
}

.nav-toggle__kreis {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(249, 249, 249, 0.4);
    border-radius: 50%;
    transition: background-color 0.35s var(--nav-ease), border-color 0.35s var(--nav-ease);
}

.nav-toggle__kreis svg {
    width: 1.375rem;
    height: 1.375rem;
    transition: transform 0.45s var(--nav-ease);
}

.nav-toggle:hover .nav-toggle__kreis {
    background-color: var(--blue);
    border-color: var(--blue);
}

.nav-toggle:hover .nav-toggle__kreis svg {
    transform: rotate(-45deg);
}

/* Auf schmalen Bildschirmen nur der Kreis */

@media (max-width: 30rem) {
    .nav-toggle__text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* ---------------------------------------------------------------------------
   Sichtbarer Tastatur-Fokus
   --------------------------------------------------------------------------- */

.nav-logo:focus-visible,
.nav-toggle:focus-visible,
.nav-schliessen:focus-visible,
.nav-links a:focus-visible {
    outline: 2px solid var(--lightblue);
    outline-offset: 4px;
}

.nav-panel .primary-btn:focus-visible {
    outline: 2px solid var(--blackblue);
    outline-offset: 3px;
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.6s;
}

.nav-overlay.ist-offen {
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
}

/* Scrollen der Seite sperren, solange das Menü offen ist */

html.nav-offen,
html.nav-offen body {
    overflow: hidden;
}

html.nav-offen {
    padding-right: var(--scrollbar-breite, 0px);
}

.nav-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(27, 29, 36, 0.65);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.nav-overlay.ist-offen .nav-backdrop {
    opacity: 1;
}

/* ---------------------------------------------------------------------------
   Menü-Fläche
   --------------------------------------------------------------------------- */

.nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(100%, 36rem);
    overflow: hidden;
    background-color: var(--blackblue);
    color: var(--ghostwhite);
    transform: translateX(100%);
    transition: transform 0.6s var(--nav-ease-panel);

    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: var(--space-m);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    /* Rahmen nur links */
}

.nav-overlay.ist-offen .nav-panel {
    transform: translateX(0);
}

/* Scrollt nur der Inhalt, nicht der Hintergrund */

.nav-panel__inhalt {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.25rem var(--nav-rand) 2.5rem;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Schließen-Button oben rechts */

.nav-schliessen {
    align-self: flex-end;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(249, 249, 249, 0.4);
    border-radius: 50%;
    background: none;
    color: var(--ghostwhite);
    cursor: pointer;
    transition: background-color 0.35s var(--nav-ease), color 0.35s var(--nav-ease),
        border-color 0.35s var(--nav-ease);
}

.nav-schliessen svg {
    width: 1.25rem;
    height: 1.25rem;
    transition: transform 0.45s var(--nav-ease);
}

.nav-schliessen:hover {
    background-color: var(--ghostwhite);
    border-color: var(--ghostwhite);
    color: var(--blackblue);
}

.nav-schliessen:hover svg {
    transform: rotate(90deg);
}

.nav-schliessen:focus-visible {
    outline-color: var(--blue);
}

.nav-head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* ---------------------------------------------------------------------------
   Links: groß, in Poppins, fliegen nacheinander ein
   Die Reihenfolge steuert die Variable --i (am li gesetzt).
   --------------------------------------------------------------------------- */

.nav-links {
    margin: 10rem 0 2rem 0;
    padding: 2rem 0;
}

.nav-links li {
    opacity: 0;
    transform: translateX(2.5rem);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0.5rem 0;
}

.nav-overlay.ist-offen .nav-links li {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s var(--nav-ease), transform 0.7s var(--nav-ease);
    transition-delay: calc(0.18s + var(--i, 0) * 0.07s);
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.1em 0;
    color: var(--ghostwhite);
    text-decoration: none;
    font-family: var(--poppins);
    font-weight: var(--semibold);
    font-size: clamp(2.25rem, 1.4rem + 4.2vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    transition: color 0.3s ease, transform 0.4s var(--nav-ease);
}

.nav-links a:hover {
    color: var(--blue);
    transform: translateX(0.5rem);
}

/* TODO: Setzt nur die Breite eines ::before, das hier nirgends Inhalt (content) bekommt. Vermutlich Rest eines Seiten-Markers. */
.nav-links a[aria-current="page"]::before {
    width: 0.32em;
}

/* ---------------------------------------------------------------------------
   Fußbereich: Social-Icons, Button, Rechtliches
   --------------------------------------------------------------------------- */

.nav-panel_fuss {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.nav-social {
    display: flex;
    gap: 1rem;
    /* wie .footer-social */
}

.nav-social a {
    display: block;
    border-radius: 999px;
}

.nav-social .social-icon-bg {
    background-color: var(--ghostwhite);
}

.nav-social .social-icon-bg img {
    filter: invert(1);
    transition: filter 0.3s ease;
}

.nav-social .social-icon-bg:hover {
    background-color: var(--blue);
}

.nav-social .social-icon-bg:hover img {
    filter: none;
}

/* Button im Menü: dunkel abgesetzt. ACHTUNG: Die folgende .primary-btn-Regel gilt für ALLE .primary-btn der Seite und überschreibt die Textfarbe white aus Kapitel 6 mit ghostwhite. */

.primary-btn {
    background-color: var(--blue);
    color: var(--ghostwhite);
}

.nav-panel .primary-btn:hover {
    background-color: var(--ghostwhite);
    color: var(--blackblue);
}

.nav-head img {
    width: 30%;
}

.nav-rechtlich {
    color: var(--ghostwhite);
    margin-top: auto;

    ul {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        color: var(--ghostwhite);
        font-size: var(--font-size-hint);
        font-family: var(--lexenddeca);
        font-weight: var(--regular);
        margin-bottom: var(--space-m);

        a {
            color: var(--ghostwhite);
            text-decoration: none;
            transition: color 0.3s ease;

            &:hover {
                color: var(--blue);
            }
        }
    }

    span {
        color: var(--ghostwhite);
    }
}

.nav-meta-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* TODO: .nav-panel__kreis (hier, unten und im Reduced-Motion-Block) hat keine Grundregel mehr. Wahrscheinlich Rest der entfernten Kreis-Dekoration. */
@media (min-width: 48rem) {
    .nav-panel__kreis {
        right: -10rem;
        bottom: -10rem;
        width: 28rem;
    }
}

/* ---------------------------------------------------------------------------
   Bewegung reduzieren: alles ohne Animation
   --------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .nav-bar,
    .nav-toggle__kreis,
    .nav-toggle__kreis svg,
    .nav-overlay,
    .nav-backdrop,
    .nav-panel,
    .nav-schliessen,
    .nav-schliessen svg,
    .nav-links li,
    .nav-links a,
    .nav-links a::before,
    .nav-panel__kreis,
    .nav-overlay.ist-offen .nav-links li,
    .nav-overlay.ist-offen .nav-panel__kreis {
        transition: none;
        transition-delay: 0s;
    }

    .nav-links li {
        transform: none;
    }

    .nav-panel__kreis {
        transform: scale(1);
    }
}

/* ---------------------------------------------------------------------------
   Mobile Navigation (320px bis 610px)
   --------------------------------------------------------------------------- */

@media (min-width: 320px) and (max-width: 610px) {

    /* Top-Bar fixieren & saubere Ränder erzwingen */
    .nav-bar {
        height: 4.25rem;
        padding: 0 1rem;
        background-color: rgba(27, 29, 36, 0.95);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Logo proportional skalieren */
    .nav-logo img {
        width: 7rem;
        height: auto;
    }

    /* Menü-Button: Text auf schmalen Screens ausblenden, nur Kreis/Icon anzeigen */
    .nav-toggle {
        gap: 0;
    }

    .nav-toggle__text {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .nav-toggle__kreis {
        width: 2.6rem;
        height: 2.6rem;
    }

    .nav-toggle__kreis svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    /* Fullscreen Slide-In-Panel auf Mobilgeräten */
    .nav-panel {
        width: 100vw;
        height: 100dvh;
        /* dvh verhindert Sprünge durch Browser-Adressleisten */
        border-left: none;
    }

    .nav-head img {
        width: 7.5rem;
    }

    .nav-schliessen {
        width: 2.6rem;
        height: 2.6rem;
    }

    /* Links im offenen Menü übersichtlich skalieren */
    .nav-links {
        margin: 5rem 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    .nav-links a {
        font-size: clamp(1.5rem, 6vw, 2rem);
        line-height: 1.2;
    }

    /* Menü-Footer (Social Links & Rechtliches) untereinander ausrichten */
    .nav-panel_fuss {
        gap: 1.25rem;
        width: 100%;
    }

    .nav-panel_fuss .primary-btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .nav-rechtlich ul {
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-bottom: 0.5rem;
    }
}

/*
================================================================================
  9. HERO UND ANIMATIONEN
  header: Hero-Fläche über volle Höhe mit Linienraster. Unterseiten nutzen .clean-header (nur Navigation).
  Danach: Headline-Rotator, Scroll-Reveal, Scroll-Pfeil und der CTA-Button im Hero.
================================================================================
*/

header {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    background-color: var(--blackblue);
    background-image:
        /* Raster: waagerechte Linien (8px dick, der zweite Stopp liegt davor und ergibt eine harte Kante) */
        linear-gradient(rgba(249, 249, 249, 0.05) 8px, transparent 2px),
        /* Raster: senkrechte Linien */
        linear-gradient(90deg, rgba(249, 249, 249, 0.05) 8px, transparent 2px);
    /* Rasterweite */
    background-size: 100px 100px;
    background-position: center;
    background-repeat: repeat;
}

/* Kopfbereich der Unterseiten: nur Navigation, kein Hero */

.clean-header {
    max-height: 5rem;
}

.hero-content {
    position: relative;
    z-index: 10;
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 1.5rem;

    p {
        font-size: 1.2rem;
    }
}

.subline,
.hero-text {
    font-size: clamp(0.95rem, 2.5vw + 0.5rem, 1.25rem);
    line-height: 1.5;
}

/* 4. Spezieller Schutz für sehr geringe Bildschirmhöhen (z.B. Querformat am Handy) */
@media (max-height: 600px) {
    .hero-content {
        padding: 3rem 1rem 2rem 1rem;
        /* Padding reduzieren */
    }

    .headline {
        font-size: clamp(1.5rem, 4vh + 1rem, 2.5rem);
        /* Schrift skaliert mit der Höhe (vh) */
    }

    .cta-btn {
        margin-top: 1.5rem;
    }
}

/* --- Mobile-Spezifische Anpassungen (z.B. bis 768px) --- */
@media (max-width: 450px) {
    .hero-content {
        /* Text & Unterüberschrift linksbündig ausrichten */
        text-align: left;
        align-items: flex-start;

        /* Angenehmer Rand an den Seiten */
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .headline {
        /* Nochmals kompaktere Schriftgröße für kleine Handys */
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 1rem;
    }

    .subline,
    .hero-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Der Button richtet sich links aus oder nimmt die volle Breite ein */
    .cta-btn,
    .hero-content .button {
        align-self: flex-start;
        /* Oder 'stretch', falls der Button volle Breite haben soll */
    }
}

/* ---------------------------------------------------------------------------
   Headline-Rotator (Text-Wechsel mit Ein- und Ausblenden)
   Klassen .is-fading und .is-entering werden von headline.js gesetzt.
   --------------------------------------------------------------------------- */

.headline-fade {
    opacity: 1;
}

.headline-fade.is-fading {
    animation: headlineFadeOut 0.5s ease-in forwards;
}

.headline-fade.is-entering {
    animation: headlineFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes headlineFadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.98);
        filter: blur(6px);
    }
}

@keyframes headlineFadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ---------------------------------------------------------------------------
   Scroll-Reveal: Elemente blenden beim Hineinscrollen ein
   Startzustand .scroll-reveal, Endzustand .is-visible (setzt scroll-animation.js).
   --------------------------------------------------------------------------- */

.scroll-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    filter: blur(6px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.scroll-indicator {
    position: absolute;
    bottom: -4rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator svg {
    width: 2.5rem;
    height: 2.5rem;
    display: block;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(0.5rem);
    }
}

.cta-btn {
    margin-top: 5rem;
}

#news {
    background-color: var(--blue);
    color: var(--ghostwhite);
    text-align: center;
    padding: 2rem 0;

    h3 {
        font-family: var(--lexenddeca);
        font-weight: var(--light);
    }
}

/*
================================================================================
  10. ÜBER MICH (#aboutme)
================================================================================
*/

#aboutme img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 20px;
}

.aboutme-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 65rem;
    align-items: center;
}

.aboutme-text a {
    width: fit-content;
}

#aboutme {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 5rem 0;
}

/*
================================================================================
  11. EINFÜHRUNG (Feature-Zeilen auf der Startseite)
  Heller Block über die volle Breite mit abwechselnd Text links und rechts (.reverse).
================================================================================
*/

.features-section {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-3xl) 0;
    background-color: var(--ghostwhite);
    color: var(--blackblue);

    /* Hintergrund bis zum Bildschirmrand, Inhalt bleibt in der Spalte */
    box-shadow: 0 0 0 100vmax ghostwhite;
    clip-path: inset(0 -100vmax);
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* Dreht die Reihenfolge für jede zweite Zeile um */

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;

    a {
        margin-top: var(--space-m);
    }

    a:hover {
        background-color: var(--blackblue);
        color: var(--ghostwhite);
    }
}

.feature-text p {
    font-size: 1.2rem;
    line-height: 1.6;
}

.feature-image {
    flex: 1;
}

.feature-image img {
    width: 100%;
    border-radius: 20px;
}

/* Mobil: Text und Bild untereinander */

@media (max-width: 768px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: left;
    }
}

/*
================================================================================
  12. PROJEKT-VORSCHAU (Startseite)
  TODO: .projekt-card und .projekt-label sind vermutlich Altlast. Die Karten auf der Startseite heißen
  .portfolio-karte (projekte.css). Vor dem Löschen in allen HTML-Dateien prüfen.
================================================================================
*/

#projekte {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 4rem 0;
    margin-top: var(--space-3xl);
}

#projekte>a {
    align-self: center;
}

.projekte-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.projekt-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* Bild wird an border-radius abgeschnitten */
    text-decoration: none;
    display: block;
    aspect-ratio: 4 / 3;
    /* Einheitliche Proportionen */
}

.projekt-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.projekt-card:hover img {
    transform: scale(1.04);
    /* Zoom beim Hover */
}

.projekt-card:focus-visible img {
    transform: scale(1.04);
}

.projekt-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.65) 0%,
            transparent 50%);
    border-radius: 12px;
    pointer-events: none;
}

.projekt-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    z-index: 1;
    color: white;
    font-family: var(--poppins);
    font-weight: var(--semibold);
    font-size: var(--font-size-h3);
}

/*
================================================================================
  13. LEISTUNGEN UND PAKETE (#services)
  Drei Pakete nebeneinander. Jedes .service besteht aus vier Kindern: Karte, Bestandteile,
  Überschrift Add-ons, Add-ons. Das Subgrid (weiter unten) richtet sie zeilenweise aus.
================================================================================
*/

#services {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 2.5rem 0;
    width: 100%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    align-items: stretch;
    /* Zwingt alle Spalten auf exakt dieselbe Höhe */
}

/* Jedes Paket (Karte plus Listen) als eigene Spalte */

.service {
    display: flex;
    flex-direction: column;
    height: 100%;

    h4 {
        margin-bottom: var(--space-l);
    }
}

/* Obere weiße Karte: flex: 1 macht alle drei gleich hoch */

.service-card {
    background-color: var(--ghostwhite);
    color: var(--blackblue);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-xl);
    flex: 1;
    /* Macht die drei oberen Karten exakt gleich hoch */

    p {
        margin-bottom: var(--space-xl);
    }
}

.service-card img {
    height: 5rem;
    width: auto;
    object-fit: contain;
    margin: 0 0 2rem 0;
    align-self: flex-start;
    display: block;
}

/* Der Button rutscht ans untere Ende der Karte */

.service-card .primary-btn {
    margin-top: auto;
    margin-bottom: 0;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    background-color: var(--blue);
    color: white;
    transition: background-color 0.3s ease;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
}

.service-card .primary-btn:hover {
    background-color: var(--blackblue);
    color: white;
}

.service-hint {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Listen unter der Karte (Bestandteile und Add-ons) */

.service-deliverables {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    margin: auto 0 var(--space-xl) 0;
    /* oben auto: schließt unten sauber ab */
    padding: 0;
    list-style: none;
    counter-reset: frage;
}

.service-deliverables li {
    display: flex;
    align-items: baseline;
    gap: var(--space-m);
    padding: var(--space-m) var(--space-l);
    background-color: var(--ghostwhite);
    border-radius: 20px;
    font-family: var(--poppins);
    font-weight: var(--semibold);
    line-height: 1.4;
    counter-increment: frage;
    color: var(--blackblue);
}

/* TODO: .leistungen-paket und .service-addon (Einzahl) werden in index.html nicht verwendet. Dort heißen die Klassen .service-deliverables und .service-addons. */
.leistungen-paket {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: frage;
}

.leistungen-paket li {
    display: flex;
    align-items: baseline;
    gap: var(--space-m);
    padding: var(--space-m) var(--space-l);
    background-color: var(--ghostwhite);
    border-radius: 20px;
    font-family: var(--poppins);
    font-weight: var(--semibold);
    line-height: 1.4;
    counter-increment: frage;
    color: var(--blackblue);
}

@media (min-width: 48rem) {
    .leistungen-paket {
        grid-area: fragen;
    }
}

.service-addon {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    margin: auto 0 var(--space-xl) 0;
    padding: 0;
    list-style: none;
    counter-reset: frage;
}

.service-addons li {
    display: flex;
    align-items: baseline;
    gap: var(--space-m);
    padding: var(--space-m) var(--space-l);
    background-color: var(--blue);
    border-radius: 20px;
    font-family: var(--poppins);
    font-weight: var(--semibold);
    line-height: 1.4;
    counter-increment: frage;
    color: var(--ghostwhite);
}

.service-addon li::before {
    content: '—';
    color: var(--ghostwhite);
    flex-shrink: 0;
    font-weight: var(--regular);
}

/* ---------------------------------------------------------------------------
   Gleich hohe Paket-Karten per Subgrid
   Jedes .service überspannt vier Zeilen des Grids und teilt sie mit den Nachbarn.
   Browser ohne Subgrid nutzen die flex-Variante von oben.
   --------------------------------------------------------------------------- */

@supports (grid-template-rows: subgrid) {
    .services-grid {
        row-gap: 0;
    }

    .service {
        display: grid;
        grid-row: span 4;
        grid-template-rows: subgrid;
        row-gap: 0;
        height: auto;
    }

    .service-card {
        flex: none;
        height: auto;
    }

    .service-deliverables {
        margin-top: 0;
        align-self: start;
    }

    .service>h4 {
        align-self: start;
    }
}

/* Responsive: Pakete untereinander */

@media (max-width: 1040px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Abstand zwischen den Paketen (ersetzt den row-gap, den die Subgrid-Regeln auf 0 setzen) */
    @supports (grid-template-rows: subgrid) {
        .service+.service {
            margin-top: 1.5rem;
        }
    }
}

@media (max-width: 380px) {
    .service-card {
        padding: 1.5rem;
    }

    .info-box {
        flex-direction: column;
        gap: 0.8rem;
    }

    .service-card .primary-btn {
        width: fit-content;
    }
}

/*
================================================================================
  ANFRAGEN DERZEIT PAUSIERT (AKTIV)
  Sperrt alle Buttons und Links zur Design-Anfrage (Paket-Karten, Footer, Menü und jeden Link
  auf design-anfrage.html) und zeigt stattdessen "Anfragen derzeit pausiert".
  Pause aufheben: die drei Blöcke PAUSE 1/3, 2/3 und 3/3 auskommentieren oder löschen.
  Die Regel zu [disabled] dazwischen gehört nicht zur Pause und bleibt.
================================================================================
*/

/* PAUSE 1/3: Klicks und Interaktion sperren, Button ausgrauen */

#services .service-card .primary-btn,
.footer-cta .primary-btn,
.nav-panel_fuss .primary-btn,
a[href*="design-anfrage.html"] {
    pointer-events: none !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    filter: grayscale(100%) !important;
    user-select: none;
    position: relative;
    box-shadow: none !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 200px;
    /* Bietet ausreichend Platz für den langen Pausierungstext */
    padding: 0.875rem 1.25rem !important;
}

/* PAUSE 2/3: Originaltext ausblenden und "Anfragen derzeit pausiert" darüberlegen */

#services .service-card .primary-btn,
.footer-cta .primary-btn,
.nav-panel_fuss .primary-btn,
a[href*="design-anfrage.html"] {
    color: transparent !important;
}

#services .service-card .primary-btn::after,
.footer-cta .primary-btn::after,
.nav-panel_fuss .primary-btn::after,
a[href*="design-anfrage.html"]::after {
    content: "Anfragen derzeit pausiert";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--ghostwhite, #ffffff) !important;
    font-size: 0.8rem;
    font-weight: var(--light, 500);
    white-space: nowrap;
}

/* Kein Teil der Pause. Zustand [disabled]: zusätzlich zur Regel in Kapitel 6 mehr Innenabstand */
.primary-btn[disabled],
.senden-btn[disabled] {
    padding: 0.875rem 2.5rem;
}

/* PAUSE 3/3: Text im Footer-CTA abdunkeln */

.footer-cta p {
    opacity: 0.7;
}

/*
================================================================================
  14. TESTIMONIALS (Sprechblasen)
  Zwei Kundenstimmen als Sprechblasen, die zweite rechtsbündig (--rechts).
================================================================================
*/

.testimonials-section {
    padding: var(--space-3xl) 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.testimonial-karte {
    display: flex;
    width: 100%;
}

@media (min-width: 2150px) {
    .testimonials-section {
        padding: 10rem;
    }
}

/* Karte nach rechts schieben */

.testimonial-karte--rechts {
    justify-content: flex-end;
}

/* Die Sprechblase */

.testimonial-bubble {
    position: relative;
    background-color: var(--ghostwhite);
    color: var(--blackblue);
    border-radius: 22px;
    padding: clamp(1.25rem, 4vw, var(--space-xl));
    width: 100%;
    max-width: 44rem;
    box-sizing: border-box;
}

/* ---------------------------------------------------------------------------
   Zipfel: Inline-SVG mit gerundeter Spitze
   top: 99% setzt ihn lückenlos an die Unterkante der Blase.
   --------------------------------------------------------------------------- */

.testimonial-zipfel {
    position: absolute;
    top: 99%;
    left: clamp(1.25rem, 6vw, 2.25rem);
    width: 3.5rem;
    height: 2.15rem;
    fill: var(--ghostwhite);
    display: block;
}

/* Rechtsbündige Karte: Zipfel auf die rechte Seite setzen */

.testimonial-karte--rechts .testimonial-zipfel {
    left: auto;
    right: clamp(1.25rem, 6vw, 2.25rem);
}

/* Zitat: immer linksbündig, unabhängig von der Kartenposition */

.testimonial-text {
    margin-bottom: 0;
    text-align: left;
    font-size: clamp(1.1rem, 2.5vw, var(--font-size-h3));
    line-height: 1.55;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Person und Quelle innerhalb der Blase, mit Trennlinie */

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    margin-top: var(--space-l);
    padding-top: var(--space-m);
    border-top: 1px solid rgba(32, 34, 42, 0.08);
}

.testimonial-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.testimonial-avatar--initialen {
    background-color: var(--blue);
    color: var(--ghostwhite);
    font-family: var(--poppins);
    font-weight: var(--semibold);
    font-size: var(--font-size-p);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-person {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-family: var(--poppins);
    font-weight: var(--semibold);
    font-size: var(--font-size-p);
    color: var(--blackblue);
}

.testimonial-rolle {
    font-family: var(--lexenddeca);
    font-weight: var(--light);
    font-size: var(--font-size-hint);
    color: rgba(32, 34, 42, 0.6);
}

/* ---------------------------------------------------------------------------
   Responsive bis 320px
   --------------------------------------------------------------------------- */

@media (max-width: 480px) {
    .testimonial-bubble {
        border-radius: 16px;
        padding: var(--space-m);
    }

    .testimonial-zipfel {
        width: 2.6rem;
        height: 1.6rem;
        left: 1.25rem;
    }

    .testimonial-karte--rechts .testimonial-zipfel {
        left: auto;
        right: 1.25rem;
    }

    .testimonial-avatar {
        width: 2.25rem;
        height: 2.25rem;
        font-size: var(--font-size-hint);
    }
}

/*
================================================================================
  15. REZENSIONEN (laufendes Band)
  Auf der Startseite aktuell nicht eingebaut (dort stehen die statischen Testimonials).
  Aktivieren, sobald genug Rezensionen vorliegen.
================================================================================
*/

#rezensionen {
    padding: var(--space-3xl) 0;
    width: 100%;
}

/* ---------------------------------------------------------------------------
   Scroller: äußerer Rahmen, schneidet die laufende Reihe am Rand ab
   --------------------------------------------------------------------------- */

.rezensionen-scroller {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: var(--space-l);
}

.rezensionen-scroller:hover .rezensionen-spur {
    animation-play-state: paused;
}

.rezensionen-scroller:focus-within .rezensionen-spur {
    animation-play-state: paused;
}

/* ---------------------------------------------------------------------------
   Spur: die scrollende Reihe aus Karten
   Der Kartensatz muss im HTML doppelt vorhanden sein, sonst reißt die Schleife bei -50 % sichtbar ab.
   --------------------------------------------------------------------------- */

.rezensionen-spur {
    display: flex;
    gap: var(--space-l);
    width: max-content;
    animation: rezensionenScroll 50s linear infinite;
}

.rezensionen-spur--reverse {
    animation-direction: reverse;
    animation-duration: 60s;
}

@keyframes rezensionenScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .rezensionen-spur {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
}

/* ---------------------------------------------------------------------------
   Karte
   --------------------------------------------------------------------------- */

.rezensionen-karte {
    flex-shrink: 0;
    width: clamp(280px, 24vw, 360px);
    background-color: var(--ghostwhite);
    color: var(--blackblue);
    border-radius: 20px;
    padding: var(--space-l);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.rezensionen-sterne {
    color: var(--blue);
    font-size: 1.1rem;
    letter-spacing: 0.15rem;
    margin-bottom: var(--space-s);
}

.rezensionen-titel {
    color: var(--blue);
    font-size: 1.1rem;
    margin-bottom: var(--space-s);
}

.rezensionen-text {
    font-size: var(--font-size-p);
    font-weight: var(--light);
    line-height: 1.6;
    margin-bottom: var(--space-l);
}

.rezensionen-autor {
    display: flex;
    align-items: center;
    gap: var(--space-s);
    margin-top: auto;
}

.rezensionen-avatar {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--blue);
    color: white;
    font-family: var(--poppins);
    font-weight: var(--semibold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.rezensionen-autor-info {
    display: flex;
    flex-direction: column;
}

.rezensionen-name {
    font-family: var(--lexenddeca);
    font-weight: var(--medium);
    font-size: 0.9rem;
}

.rezensionen-ort {
    font-size: var(--font-size-hint);
    opacity: 0.6;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */

@media (max-width: 1040px) {
    .rezensionen-karte {
        width: clamp(260px, 70vw, 320px);
    }
}

@media (max-width: 380px) {
    .rezensionen-karte {
        padding: var(--space-m);
    }
}

/*
================================================================================
  16. FAQ (details/summary)
  Das Plus-Icon wird aus ::before und ::after gebaut und beim Öffnen zum Minus.
================================================================================
*/

#faq {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding: 5rem 0 var(--space-3xl);
}

.faq-intro {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-liste {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-top: 1px solid rgba(249, 249, 249, 0.12);
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(249, 249, 249, 0.12);
}

.faq-frage {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    list-style: none;
    font-family: var(--poppins);
    font-weight: var(--semibold);
    font-size: var(--font-size-h3);
    color: var(--ghostwhite);
}

.faq-frage::-webkit-details-marker {
    display: none;
}

.faq-frage .frage {
    transition: color 0.2s ease,
        transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-frage .frage:hover {
    color: var(--blue);
    transform: translateX(0.5rem);
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    position: relative;
    color: var(--blue);
}

/* Horizontale Linie */

.faq-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: currentColor;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

/* Vertikale Linie */

.faq-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: currentColor;
    transform: translateX(-50%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Offen: vertikale Linie ausblenden, das Plus wird zum Minus */

details[open] .faq-icon::after {
    opacity: 0;
    transform: translateX(-50%) rotate(90deg);
}

/* TODO: Für .faq-antwort liegen zwei Animationsmethoden übereinander, grid-template-rows (hier)
   und max-height (weiter unten, ab der zweiten .faq-antwort-Regel). Wirksam animiert wird die max-height.
   Nicht einzeln löschen, sonst ändert sich das Verhalten. Erst gemeinsam testen und eine Methode wählen. */
.faq-antwort {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    padding-bottom: 0;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        padding-bottom 0.4s ease,
        opacity 0.35s ease;
}

.faq-antwort > p {
    color: var(--ghostwhite);
    line-height: 1.7;
    font-size: var(--font-size-p);
}

details[open] .faq-antwort {
    grid-template-rows: 1fr;
    opacity: 1;
    padding-bottom: 1.25rem;
}

@media (min-width: 1440px) {
    .faq-antwort p {
        max-width: 70%;
    }
}

details[open] .faq-antwort {
    max-height: 2500px;
    opacity: 1;
    padding-bottom: 1.25rem;
}

/*
================================================================================
  17. ABSCHLUSS-CTA (Bildband mit Überschrift)
  Volle Breite, Bild mit Abdunklung, blauer Innenglow und zentrierter Überschrift.
================================================================================
*/

.abschluss-cta {
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    min-height: 50rem;
    display: flex;
    margin-bottom: -5rem;
}

.abschluss-cta-home {
    min-height: 60rem;
}

.abschluss-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    box-shadow: inset 0 0 100px rgba(111, 128, 234);
}

.abschluss-cta-bild {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.6;
}

.abschluss-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 12, 16, 0.65), rgba(11, 12, 16, 0.15));
    z-index: 1;
}

.abschluss-cta-inhalt {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-xl);
}

.abschluss-cta-inhalt h2 {
    color: white;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.15;
    max-width: 45rem;
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .abschluss-cta {
        min-height: 22rem;
    }
}

/*
================================================================================
  18. FOOTER
  Heller Footer in fünf Spalten: Marke, Seiten, Case Studies, Rechtliches, CTA.
  Das HTML liefert navfooter-load.js.
================================================================================
*/

footer {
    background-color: var(--ghostwhite);
    padding: var(--space-3xl) 1.5rem var(--space-l);
    margin-top: 5rem;
}

.footer-inhalt {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(32, 34, 42, 0.08);
}

/* Spalte 1: Marke */

.footer-marke {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-m);
}

.footer-logo {
    height: 1.75rem;
    width: auto;
    filter: invert(1);
}

.footer-claim {
    font-size: var(--font-size-hint);
    color: rgba(32, 34, 42, 0.65);
    max-width: 18rem;
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon-bg {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--blackblue);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.social-icon-bg:hover {
    background-color: var(--blue);
}

/* Navigationsspalten & CTA */

.footer-spalte,
.footer-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
}

.footer-spalten-titel {
    font-family: var(--poppins);
    font-size: var(--font-size-hint);
    font-weight: var(--semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blackblue);
    margin-bottom: var(--space-xs);
}

.footer-liste {
    display: flex;
    flex-direction: column;
    gap: var(--space-s);
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-liste a {
    font-family: var(--lexenddeca);
    font-size: var(--font-size-hint);
    font-weight: var(--regular);
    color: rgba(32, 34, 42, 0.75);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-liste a:hover {
    color: var(--blue);
}

/* CTA */

.footer-cta p {
    font-size: var(--font-size-hint);
    color: rgba(32, 34, 42, 0.65);
    margin-bottom: var(--space-s);
}

.footer-cta a {
    padding: 0.7rem 1.5rem;
    font-size: var(--font-size-hint);
    width: fit-content;
}

.footer-cta a:hover {
    background-color: var(--blackblue);
    color: var(--ghostwhite);
}

/* Untere Leiste */

.footer-unten {
    margin: 0 auto;
    padding-top: var(--space-l);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    text-align: center;
}

.footer-copyright {
    font-family: var(--lexenddeca);
    font-size: var(--font-size-hint);
    font-weight: var(--light);
    color: var(--blackblue);
    opacity: 0.7;
}

.footer-version {
    font-family: var(--lexenddeca);
    font-size: 0.65rem;
    font-weight: var(--light);
    color: var(--blackblue);
    opacity: 0.7;
}

/* Responsive Layout ab Tablet / Intermediate Views */

@media (min-width: 640px) {
    .footer-inhalt {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: var(--space-xl);
    }

    .footer-marke {
        flex: 1 1 200px;
    }

    .footer-spalte {
        flex: 1 1 130px;
    }

    .footer-cta {
        flex: 1 1 200px;
    }

    .footer-unten {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Saubere 5-Spalten-Aufteilung auf Desktop */

@media (min-width: 1024px) {
    .footer-inhalt {
        flex-wrap: nowrap;
        gap: var(--space-l);
    }

    .footer-marke {
        flex: 0 0 16rem;
    }

    .footer-spalte {
        flex: 1 1 auto;
    }

    .footer-cta {
        flex: 0 0 16rem;
    }
}

/*
================================================================================
  19. COOKIE-BANNER
  Startet unsichtbar unter dem Bildschirmrand. Klasse .aktiv schiebt ihn hinein, .schliessen wieder hinaus (cookie-banner.js).
================================================================================
*/

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    width: 100%;
    background: var(--ghostwhite);
    padding: var(--space-l) var(--space-xl);
    z-index: 10000;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.5s ease;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
}

.cookie-banner.aktiv {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.cookie-banner.schliessen {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-l);
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-text {
    flex: 1;
}

.cookie-text h3 {
    color: var(--blackblue);
    font-size: 1rem;
    margin-bottom: var(--space-xs);
}

.cookie-text p {
    font-family: var(--lexenddeca);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
    color: rgba(32, 34, 42, 0.7);
}

.cookie-icon {
    width: 4rem;
    height: 4rem;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: var(--space-m);
    flex-shrink: 0;
}

.cookie-link {
    font-family: var(--lexenddeca);
    font-size: 0.75rem;
    color: rgba(32, 34, 42, 0.65);
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.cookie-link:hover {
    color: var(--blue);
}

.cookie-btn {
    background: var(--blue);
    color: white;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-family: var(--lexenddeca);
    font-size: 0.85rem;
    font-weight: var(--light);
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.cookie-btn:hover {
    background-color: var(--blackblue);
    color: var(--ghostwhite);
}

.cookie-btn:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

/* Mobil */

@media (max-width: 600px) {
    .cookie-banner {
        padding: var(--space-m);
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-m);
    }

    .cookie-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/*
================================================================================
  20. RESPONSIVE BREAKPOINTS (Altlast)
  TODO: Der Großteil gehört zum alten Hamburger-Menü (.hamburger-menu, .menueleiste, .toggle-input, .bar),
  das durch das Slide-in-Menü (Kapitel 8) ersetzt wurde. Dazu .formular-zeile (altes Kontaktformular).
  Vor dem Löschen prüfen, ob das Navigations-HTML (elements/) und alle Seiten diese Klassen noch nutzen.
  Die Regeln für .aboutme-text, #aboutme und .projekte-grid sind dagegen aktiv.
================================================================================
*/

/* Kleine Handys ab 320px */

@media (min-width: 320px) {
    .hamburger-menu {
        display: block;
        z-index: 101;
    }

    .menueleiste {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        background-color: rgb(32, 34, 42);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 100;

        /* Startzustand: Rechts außerhalb des Bildschirms */
        transform: translateX(100%);
        visibility: hidden;
        /* Verhindert Klicks im geschlossenen Zustand */

        transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
    }

    /* 3. Zustand wenn Menü offen ist */
    .toggle-input:checked~.menueleiste {
        transform: translateX(0);
        visibility: visible;
    }

    .menueleiste a {
        font-size: var(--font-size-h1);
        opacity: 0;
        /* Unsichtbar beim Start */
        transform: translateX(50px);
        /* Kommen leicht von rechts */
        transition: color 0.5s ease;
    }

    /* Wenn offen: Links einblenden und auf Position schieben */
    .toggle-input:checked~.menueleiste a {
        opacity: 1;
        transform: translateX(0);
    }

    .toggle-input:checked~.menueleiste a:nth-child(1) {
        transition-delay: 0.2s;
    }

    .toggle-input:checked~.menueleiste a:nth-child(2) {
        transition-delay: 0.3s;
    }

    .toggle-input:checked~.menueleiste a:nth-child(3) {
        transition-delay: 0.4s;
    }

    .toggle-input:checked+.hamburger-menu .bar:nth-child(1) {
        transform: translateY(0.5rem) rotate(45deg);
    }

    .toggle-input:checked+.hamburger-menu .bar:nth-child(2) {
        opacity: 0;
    }

    .toggle-input:checked+.hamburger-menu .bar:nth-child(3) {
        transform: translateY(-0.5rem) rotate(-45deg);
    }

    .aboutme-text h1 {
        font-size: var(--font-size-h2);
    }

    .projekte-grid {
        grid-template-columns: 1fr;
    }

    .formular-zeile {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

}

/* Große Handys ab 480px */

@media (min-width: 480px) {
    .aboutme-text h1 {
        font-size: var(--font-size-h1);
    }
}

/* Tablet hochkant ab 768px */

@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }

    .menueleiste {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        height: auto;
        background-color: transparent;
        backdrop-filter: none;
        gap: 2rem;

        transform: translateX(0);
        visibility: visible;
        transition: none;
    }

    .menueleiste a {
        font-size: 1rem;
        color: #fff;

        opacity: 1;
        transform: translateX(0);
        transition: color 0.3s ease;
    }

    .menueleiste a:nth-child(1),
    .menueleiste a:nth-child(2),
    .menueleiste a:nth-child(3) {
        transition-delay: 0s;
    }

    header nav {
        justify-content: space-between;
    }

    #aboutme img {
        width: 100%;
        flex-shrink: 0;
    }

    .aboutme-text a {
        width: fit-content;
    }

    .projekte-grid {
        grid-template-columns: 1fr 1fr;
    }

    .formular-zeile {
        display: flex;
        flex-direction: row;
        gap: 1rem;
    }
}

/* Tablet quer und Laptop ab 1024px */

@media (min-width: 1024px) {
    #aboutme img {
        width: 100%;
        max-width: 400px;
        flex-shrink: 0;
    }

    #aboutme {
        flex-direction: row;
    }
}