/* ==========================================================================
   GOLDFADENDESIGN – Digitalisierung
   Stylesheet auf Basis des Corporate Designs von Goldfadendesign
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
    --color-bg: #ffffff;
    --color-bg-soft: #f7f7f7;
    --color-bg-dark: #0a0a0a;
    --color-text: #1a1a1a;
    --color-text-soft: #4a4a4a;
    --color-text-muted: #7a7a7a;
    --color-text-invert: #ffffff;
    --color-accent: #ee3102;
    --color-accent-dark: #c62800;
    --color-lila: #b8a2ca;
    --color-lila-soft: rgba(184, 162, 202, 0.15);
    --color-line: #e5e5e5;
    --color-line-dark: #1f1f1f;

    --font-display: "Cosmica", "Outfit", "Inter", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

    --radius: 0;
    --radius-lg: 0;

    --container: 1240px;
    --gutter: clamp(1rem, 3vw, 2rem);

    --header-height: 88px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

/* Fallback-Abstand unter h2 außerhalb von .section__head/.cta-strip (z. B. in .split-Layouts) */
h2 {
    margin-bottom: 1.25rem;
}

p {
    margin: 0 0 1rem 0;
}

p:last-child {
    margin-bottom: 0;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 920px;
}

.container--wide {
    max-width: 1320px;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.site-header.is-scrolled {
    border-bottom-color: var(--color-line);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1.25rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    color: var(--color-text);
    white-space: nowrap;
}

.brand img {
    display: block;
    max-height: 22px;
    width: auto;
    height: auto;
}

.brand__text {
    display: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

.site-footer .brand img {
    filter: brightness(0) invert(1);
}

.primary-nav {
    display: none;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.primary-nav a {
    position: relative;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    padding: 0.4rem 0;
    transition: color 0.25s var(--ease);
}

.primary-nav a::after {
    content: "";
    position: absolute;
    inset: auto 0 -6px 0;
    height: 2px;
    background: var(--color-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}

.primary-nav a:hover,
.primary-nav a.is-active {
    color: var(--color-accent);
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
    transform: scaleX(1);
}

/* Dropdown-Menu */
.primary-nav .has-dropdown {
    position: relative;
}

.primary-nav .has-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0;
}

.primary-nav .has-dropdown > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    position: static;
    inset: auto;
    height: auto;
    background: none;
    transform: none;
    transition: transform 0.2s var(--ease);
}

.primary-nav .has-dropdown.is-open > a::after,
.primary-nav .has-dropdown > a[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.primary-nav .dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    min-width: 200px;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
    z-index: 60;
    padding: 0.5rem 0;
}

.primary-nav .has-dropdown.is-open .dropdown-menu,
.primary-nav .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.primary-nav .dropdown-menu li {
    list-style: none;
    width: 100%;
}

.primary-nav .dropdown-menu a {
    display: block;
    padding: 0.3rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.01em;
    color: var(--color-text);
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
    white-space: nowrap;
    text-align: left;
}

.primary-nav .dropdown-menu a:hover {
    color: var(--color-accent);
    background: var(--color-bg-soft);
}

.primary-nav .dropdown-menu a::after {
    display: none !important;
}

/* Header CTA */
.header-cta {
    display: none;
}

/* Burger */
.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-bg);
    transition: border-color 0.25s var(--ease);
}

.nav-toggle:hover {
    border-color: var(--color-accent);
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
    position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after  { top:  6px; }

.nav-toggle.is-open .nav-toggle__bar { background: transparent; }
.nav-toggle.is-open .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-bg);
    z-index: 999;
    padding: 2rem var(--gutter);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.25s var(--ease);
    overflow-y: auto;
}

.mobile-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav a {
    display: block;
    padding: 1rem 0;
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    border-bottom: 1px solid var(--color-line);
}

.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--color-accent);
}

/* Mobile Accordion */
.mobile-nav__item {
    border-bottom: 1px solid var(--color-line);
}

.mobile-nav__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.25rem;
    font-family: var(--font-display);
    font-weight: 700;
    background: none;
    border: 0;
    cursor: pointer;
    text-align: left;
    color: var(--color-text);
}

.mobile-nav__toggle::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s var(--ease);
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.mobile-nav__item.is-open > .mobile-nav__toggle::after {
    transform: rotate(180deg);
}

.mobile-nav__sub {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
    padding-left: 1rem;
}

.mobile-nav__item.is-open .mobile-nav__sub {
    max-height: 500px;
}

.mobile-nav__sub li {
    list-style: none;
}

.mobile-nav__sub a {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.6rem 0;
    border-bottom: none;
    font-family: var(--font-body);
}

.mobile-nav__cta {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-line);
}

.mobile-nav__cta .btn {
    width: 100%;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 1.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
    text-align: center;
    min-height: 52px;
}

.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-accent);
}

.btn--outline:hover {
    background: var(--color-accent);
    color: #fff;
}

.btn--solid {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn--solid:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    transform: translateY(-1px);
}

.btn-text,
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-loading {
    display: none;
}

.btn.is-loading .btn-text {
    display: none;
}

.btn.is-loading .btn-loading {
    display: flex;
}

.spinner {
    width: 1.125rem;
    height: 1.125rem;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn--ghost {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-text);
}

.btn--ghost:hover {
    background: var(--color-text);
    color: #fff;
}

.btn--invert {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.btn--invert:hover {
    background: #fff;
    color: var(--color-text);
}

.btn--block {
    width: 100%;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- Eyebrow / Sub-Headline ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.eyebrow__dot {
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    position: relative;
}

.eyebrow__dot::after {
    content: "";
    position: absolute;
    inset: 4px;
    background: var(--color-accent);
    border-radius: 50%;
}

.eyebrow--center {
    justify-content: center;
}

.eyebrow--center::after,
.eyebrow--center::before {
    content: "";
    flex: 0 0 30px;
    height: 1px;
    background: var(--color-line);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
    text-align: center;
    overflow: hidden;
}

.hero h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    line-height: 1.05;
    max-width: 18ch;
    margin: 0 auto 1.5rem;
}

.hero h1 .accent {
    color: var(--color-accent);
}

.hero__lead {
    max-width: 60ch;
    margin: 0 auto 2.5rem;
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    color: var(--color-text-soft);
}

.hero__cta {
    justify-content: center;
}

.hero--small {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero--small h1 {
    font-size: clamp(2rem, 4.5vw, 3.8rem);
}

/* ---------- Sektionen ---------- */
.section {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--soft {
    background: var(--color-bg-soft);
}

.section--dark {
    background: var(--color-bg-dark);
    color: var(--color-text-invert);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: #fff;
}

.section--dark .eyebrow {
    color: #fff;
}

.section--dark .eyebrow::after,
.section--dark .eyebrow::before {
    background: #2a2a2a;
}

.section__head {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__head h2 {
    font-size: clamp(1.85rem, 4vw, 2.7rem);
    line-height: 1.08;
    max-width: 22ch;
    margin: 0 auto 1.25rem;
    text-transform: uppercase;
}

.section__head p {
    max-width: 60ch;
    margin: 0 auto;
    color: var(--color-text-soft);
}

.section--dark .section__head p {
    color: rgba(255, 255, 255, 0.9);
}

/* ---------- Grid ---------- */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Feste 2-Spalten-Variante (statt auto-fit) – für Raster mit fester Anzahl an Boxen, z. B. 2x2 */
.grid--2up { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid--2up { grid-template-columns: repeat(2, 1fr); }
}

/* Feste 3-Spalten-Variante (statt auto-fit) – für dynamische Inhalte (z. B. Blog-Raster), bei denen
   ein einzelner Eintrag sonst die volle Breite ausfüllen würde. Immer 3 Spalten ab Desktop, auch
   wenn weniger Karten vorhanden sind. */
.grid--3up { grid-template-columns: 1fr; }
@media (min-width: 640px) {
    .grid--3up { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .grid--3up { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Karten ---------- */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    box-shadow: 0 18px 40px -20px rgba(10, 10, 10, 0.18);
}

/* Karten-Variante mit randlosem Bild oben (z. B. Fachartikel): Padding wandert von .card in .card__body,
   damit das Bild ohne calc()-Bleed-Trick zuverlässig über die volle Kartenbreite geht. */
.card--media {
    padding: 0;
}

.card__image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--color-bg-soft);
}

.card__body {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Kleinerer Anrisstext, z. B. auf der Fachartikel-Seite */
.card__excerpt {
    font-size: 0.85rem;
}

.card__icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--color-bg-soft);
    color: #b8a2ca;
    margin-bottom: 1.25rem;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.card:hover .card__icon {
    background: #b8a2ca;
    color: #fff;
}

.card__icon svg {
    width: 28px;
    height: 28px;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.card h3 a {
    color: inherit;
    transition: color 0.2s var(--ease);
}

.card h3 a:hover,
.card:hover h3 a {
    color: var(--color-accent);
}

.card p {
    color: var(--color-text-soft);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.card__link {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.card__link::after {
    content: "→";
    transition: transform 0.3s var(--ease);
}

.card:hover .card__link {
    color: var(--color-accent);
}

.card:hover .card__link::after {
    transform: translateX(4px);
}

/* Card dark variant */
.card--dark {
    background: #111;
    border-color: #222;
    color: #fff;
}

.card--dark p {
    color: rgba(255, 255, 255, 0.9);
}

.card--dark:hover {
    border-color: var(--color-accent);
}

.card--dark .card__link {
    color: #fff;
}

.card--dark .card__icon {
    background: #1a1a1a;
}

/* ---------- Problem-Lösung Tabelle ---------- */
.pl-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pl-table th,
.pl-table td {
    text-align: left;
    padding: 1.1rem 1.25rem;
    vertical-align: top;
    border-bottom: 1px solid var(--color-line);
    font-size: 0.95rem;
}

.pl-table thead th {
    background: var(--color-bg-dark);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.pl-table thead th:nth-child(2) {
    color: #ccc;
}

.pl-table tbody tr:last-child td {
    border-bottom: 0;
}

.pl-table tbody tr {
    transition: background 0.2s var(--ease);
}

.pl-table tbody tr:hover {
    background: var(--color-bg-soft);
}

.pl-table .col-problem { width: 32%; font-weight: 600; }
.pl-table .col-loesung { width: 42%; color: var(--color-text-soft); }
.pl-table .col-nutzen  { width: 26%; color: var(--color-accent); font-weight: 600; }

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-lg);
}

/* ---------- Ablauf / Timeline ---------- */
.timeline {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    position: relative;
}

.step {
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.step:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-bg-soft);
    color: #b8a2ca;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border: 1.5px solid #b8a2ca;
}

.step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--color-text-soft);
    font-size: 0.95rem;
    margin: 0;
}

/* ---------- FAQ ---------- */
.faq {
    border-top: 1px solid var(--color-line);
}

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

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0;
    text-align: left;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}

.faq__question::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--color-accent);
    transition: transform 0.3s var(--ease);
    flex-shrink: 0;
    line-height: 1;
}

.faq__item.is-open .faq__question::after {
    content: "−";
}

.faq__answer {
    color: var(--color-text-soft);
}

.faq__answer-inner {
    padding: 0 0 1.75rem 0;
    max-width: 70ch;
}

/* Ohne JavaScript bleiben alle Antworten offen lesbar (kein .faq--js gesetzt). Erst wenn main.js
   die Klick-Logik tatsächlich eingerichtet hat, wird die Einklapp-Optik scharf geschaltet. */
.faq--js .faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease);
}

.faq--js .faq__item.is-open .faq__answer {
    max-height: 800px;
}

/* ---------- Vorteile / Feature-Liste ---------- */
.feature-list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.feature {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.feature__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #b8a2ca;
    margin-top: 2px;
}

.feature h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.feature p {
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.95rem;
}

.section--dark .feature p {
    color: rgba(255, 255, 255, 0.95);
}

/* ---------- Tech-Kategorien (Seite "Technologien") ---------- */
.tech-categories {
    display: flex;
    flex-direction: column;
    gap: clamp(3rem, 6vw, 4.5rem);
}

.tech-category {
    padding-top: clamp(2.5rem, 5vw, 3.5rem);
    border-top: 1px solid var(--color-line);
}

.tech-category:first-child {
    padding-top: 0;
    border-top: 0;
}

.tech-category__head {
    max-width: 70ch;
    margin-bottom: 1.75rem;
}

.tech-category__head .eyebrow {
    margin-bottom: 0.85rem;
}

.tech-category__head h2 {
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    margin-bottom: 0.6rem;
}

.tech-category__head p {
    color: var(--color-text-soft);
    margin: 0;
}

/* ---------- Rechtstext (Impressum/Datenschutz): lange Fließtexte mit verschachtelten
   Überschriftenebenen. Stellt u. a. Listenpunkte wieder her, die der globale ul/ol-Reset entfernt. ---------- */
.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content h4 {
    font-size: 1.05rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--color-text-soft);
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0 0 1rem 0;
}

.legal-content li {
    color: var(--color-text-soft);
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--color-accent);
    text-decoration: underline;
}

.legal-content a:hover {
    text-decoration: none;
}

.legal-content strong {
    color: var(--color-text);
}

/* ---------- Checkliste (Icon + Text, z. B. /ablauf/) ---------- */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    color: var(--color-text-soft);
}

.checklist__item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

/* flex-shrink:0 verhindert, dass das Icon in schmalen/verschachtelten Containern gestaucht wird;
   min-width:0 auf dem Text erzwingt korrektes Zeilenumbruch-Verhalten statt des flexbox-typischen
   min-width:auto-Verhaltens, das Text über die vorgesehene Breite hinaus „wandern“ lassen kann. */
.checklist__icon {
    flex-shrink: 0;
}

.checklist__text {
    min-width: 0;
}

.checklist__text strong {
    color: var(--color-text);
}

/* ---------- Tech-Grid ---------- */
.tech-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}

.tech-item {
    background: var(--color-bg);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.tech-item:hover {
    border-color: var(--color-accent);
    transform: translateY(-3px);
}

.tech-item__logo {
    height: 40px;
    margin: 0 auto 1rem;
    color: #b8a2ca;
}

.tech-item h4 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.tech-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Detailliertere Tech-Karten auf /technologien/ (innerhalb .tech-category): Technologie-Name
   als h3 (korrekte Überschriftenhierarchie unter dem Kategorie-h2), linksbündig für die längeren
   Erklärtexte, etwas breitere Mindestbreite pro Karte. */
.tech-category .tech-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.tech-category .tech-item {
    text-align: left;
}

.tech-category .tech-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.tech-category .tech-item p {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--color-text-soft);
}

/* ---------- Formular ---------- */
.form {
    display: grid;
    gap: 1.25rem;
}

.form__row {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.field label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-text);
}

.field input,
.field select,
.field textarea {
    font: inherit;
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.25s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field--check {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.field--check input { width: auto; }

.form__error {
    color: var(--color-accent);
    font-size: 0.85rem;
    display: none;
}

.field.is-invalid .form__error {
    display: block;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
    border-color: var(--color-accent);
}

.form__notice {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
}

.site-footer h4 {
    color: #fff;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.footer-grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    margin-bottom: 3rem;
}

.footer-grid ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.25s var(--ease);
    font-size: 0.95rem;
}

.footer-grid a:hover {
    color: var(--color-accent);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    max-width: 32ch;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #1f1f1f;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a {
    color: inherit;
    transition: color 0.25s var(--ease);
}

.footer-bottom a:hover {
    color: var(--color-accent);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--color-line);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}

.breadcrumbs li::after {
    content: "›";
    margin-left: 0.6rem;
    color: var(--color-line);
}

.breadcrumbs li:last-child::after { display: none; }

.breadcrumbs a {
    color: var(--color-text-soft);
    transition: color 0.2s var(--ease);
}

.breadcrumbs a:hover {
    color: var(--color-accent);
}

.breadcrumbs [aria-current="page"] {
    color: var(--color-text);
    font-weight: 600;
}

/* ---------- CTA-Streifen ---------- */
.cta-strip {
    background: var(--color-bg-dark);
    color: #fff;
    padding: clamp(3rem, 6vw, 5rem) 0;
    text-align: center;
}

.cta-strip h2 {
    color: #fff;
    font-size: clamp(1.85rem, 4vw, 2.7rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    max-width: 22ch;
    margin-inline: auto;
    text-transform: uppercase;
}

.cta-strip p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 55ch;
    margin: 0 auto 2rem;
}

/* ---------- Illustration Platzhalter ---------- */
.illus {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    overflow: hidden;
}

.illus svg {
    width: 100%;
    height: 100%;
}

.illus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Card-Bilder & Platzhalter ---------- */
.card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-soft);
    border: 1.5px dashed var(--color-line);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    text-align: center;
    padding: 1rem;
    margin-bottom: 1.25rem;
}

.img-placeholder svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-text-muted);
    opacity: 0.5;
}

/* ---------- Split-Layout ---------- */
.split {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
    align-items: center;
}

.split--reverse > :first-child { order: 2; }

/* ---------- Scroll-Reveal ----------
   Ohne JavaScript (Fehler, Blocker, Netzwerkproblem) bleibt der Inhalt sichtbar: Die
   Ausblend-Animation gilt erst ab .reveal--armed, das main.js erst im selben Schritt setzt,
   in dem auch der IntersectionObserver eingerichtet wird (siehe main.js). */
.reveal.reveal--armed {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.reveal--armed.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1.5px solid var(--color-accent);
    border-radius: var(--radius);
    cursor: pointer;
    z-index: 30;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.to-top:hover {
    background: var(--color-accent);
    color: #fff;
}

.to-top svg { width: 20px; height: 20px; }

/* ---------- Skip Link ---------- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--color-text);
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

/* ---------- Decorative ---------- */
.animated-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.animated-dot--dot1 {
    top: 20%;
    left: 65%;
    width: 60px;
    height: 60px;
    background: var(--color-accent) !important;
    opacity: 0.5;
    filter: blur(25px);
    animation: dot-orbit-1 18s ease-in-out infinite !important;
}

.animated-dot--dot2 {
    top: 50%;
    left: 70%;
    width: 40px;
    height: 40px;
    background: var(--color-lila) !important;
    opacity: 0.75;
    filter: blur(25px);
    animation: dot-orbit-2 18s ease-in-out infinite !important;
    animation-delay: -9s !important;
}

@keyframes dot-orbit-1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(200px, 150px);
    }
    40% {
        transform: translate(-100px, 250px);
    }
    60% {
        transform: translate(250px, 100px);
    }
    80% {
        transform: translate(-150px, 200px);
    }
}

@keyframes dot-orbit-2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    20% {
        transform: translate(-150px, 200px);
    }
    40% {
        transform: translate(200px, -100px);
    }
    60% {
        transform: translate(250px, 150px);
    }
    80% {
        transform: translate(-100px, 250px);
    }
}

@keyframes dot-move {
    0%, 100% {
        transform: translate(-30px, -20px);
    }
    25% {
        transform: translate(30px, -30px);
    }
    50% {
        transform: translate(40px, 25px);
    }
    75% {
        transform: translate(-20px, 35px);
    }
}

@keyframes dot-move-2 {
    0%, 100% {
        transform: translate(30px, 20px);
    }
    25% {
        transform: translate(-25px, 30px);
    }
    50% {
        transform: translate(-40px, -25px);
    }
    75% {
        transform: translate(25px, -35px);
    }
}

.blob--lila {
    background: var(--color-lila);
}

.blob--orange {
    background: var(--color-accent);
    opacity: 0.12;
}

.quote-mark {
    display: block;
    width: 48px;
    height: 40px;
    margin-inline: auto;
    margin-bottom: 1.5rem;
    color: var(--color-lila);
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.muted { color: var(--color-text-muted); }
.lead {
    font-size: 1.1rem;
    color: var(--color-text-soft);
    max-width: 60ch;
}

/* ---------- Print ---------- */
@media print {
    .site-header,
    .site-footer,
    .nav-toggle,
    .mobile-nav,
    .to-top,
    .cta-strip {
        display: none !important;
    }

    body { color: #000; background: #fff; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Small: ab 480px */
@media (min-width: 480px) {
    .form__row--two { grid-template-columns: 1fr 1fr; }
}

/* Tablet: ab 768px */
@media (min-width: 768px) {
    body {
        font-size: 18px;
    }

    .split {
        grid-template-columns: 1.1fr 1fr;
        gap: 4rem;
    }

    .split--reverse { grid-template-columns: 1fr 1.1fr; }
    .split--reverse > :first-child { order: 0; }
}

/* Laptop: ab 1024px – Desktop-Navigation erst hier einblenden */
@media (min-width: 1024px) {
    :root {
        --header-height: 84px;
    }

    .nav-toggle { display: none; }

    .primary-nav {
        display: block;
    }

    .header-cta {
        display: inline-flex;
        min-height: 34px;
        padding: 0.4rem 0.85rem;
        font-size: 0.65rem;
    }

    .site-header .brand img { display: block; }

    .brand__text {
        display: none;
    }

    .hero { padding-block: clamp(4rem, 8vw, 7rem); }
    .section { padding-block: clamp(4rem, 8vw, 7rem); }
}

/* Desktop: ab 1280px */
@media (min-width: 1280px) {
    .pl-table th,
    .pl-table td {
        padding: 1.25rem 1.75rem;
    }
}

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
    position: fixed;
    left: var(--gutter);
    right: var(--gutter);
    bottom: 1rem;
    z-index: 2000;
    margin-inline: auto;
    max-width: 720px;
    background: var(--color-bg);
    color: var(--color-text);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    padding: 1.5rem;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.25rem;
}

.cookie-banner__text {
    flex: 1 1 260px;
}

.cookie-banner__text h2 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

.cookie-banner__text p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-soft);
}

.cookie-banner__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 0 0 auto;
}

.cookie-banner__actions .btn {
    min-height: 44px;
    padding: 0.7rem 1.4rem;
    font-size: 0.72rem;
}

.cookie-banner__settings-toggle {
    background: none;
    border: none;
    padding: 0.25rem 0;
    font: inherit;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-decoration: underline;
    cursor: pointer;
    align-self: flex-start;
}

.cookie-banner__settings-toggle:hover {
    color: var(--color-text);
}

.cookie-banner__settings {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-line);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner__settings[hidden] {
    display: none;
}

.cookie-banner__option {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--color-text-soft);
    cursor: pointer;
}

.cookie-banner__option input {
    margin-top: 0.3rem;
    accent-color: var(--color-accent);
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
}

.cookie-banner__option strong {
    color: var(--color-text);
}

@media (min-width: 768px) {
    .cookie-banner {
        left: 50%;
        right: auto;
        bottom: 2rem;
        transform: translateX(-50%);
        padding: 1.75rem 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner {
        transition: none;
    }
}

/* ==========================================================================
   Ticketsystem Website – Zusätzliche Styles
   ========================================================================== */

.step-list {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.step-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.75rem;
}

.step-list li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--color-accent);
    color: var(--color-text-invert);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.step-list {
    counter-reset: step;
}

.step-list li strong {
    display: block;
    margin-bottom: 0.125rem;
}

.screenshot-placeholder {
    background: var(--color-bg-soft);
    border: 2px dashed var(--color-line);
    border-radius: var(--radius);
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screenshot-placeholder__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    padding: 2rem;
}

.screenshot-placeholder__inner svg {
    width: 3rem;
    height: 3rem;
    stroke-width: 1.5;
}

.screenshot-placeholder__inner span {
    font-size: 0.875rem;
}

.cta-strip {
    background: var(--color-bg-dark);
    color: var(--color-text-invert);
    padding: clamp(3rem, 8vw, 6rem) 0;
    text-align: center;
}

.cta-strip .eyebrow {
    color: var(--color-text-invert);
    opacity: 0.7;
}

.cta-strip h2 {
    color: var(--color-text-invert);
    margin-bottom: 1rem;
}

.cta-strip p {
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.btn-group.hero__cta {
    justify-content: center;
    margin-top: 2rem;
}

.btn--invert {
    background: var(--color-text-invert);
    color: var(--color-bg-dark);
}

.btn--invert:hover {
    background: var(--color-bg-soft);
}

.section__head {
    max-width: 700px;
    margin: 0 auto 3rem;
    text-align: center;
}

.section__head h2 {
    margin-bottom: 1rem;
}

.section__head p {
    color: var(--color-text-soft);
    font-size: 1.0625rem;
}

.section__head .eyebrow {
    margin-bottom: 1rem;
}

.hero {
    position: relative;
    padding: clamp(4rem, 10vw, 8rem) 0;
    text-align: center;
    overflow: hidden;
}

.hero .eyebrow {
    margin-bottom: 1.5rem;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.hero__lead {
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--color-text-soft);
}

.hero .accent {
    color: var(--color-accent);
}

.split {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1fr 1fr;
    }
}

.split__content .eyebrow {
    margin-bottom: 1rem;
}

.split__content h2 {
    margin-bottom: 1.25rem;
}

.split__media {
    order: -1;
}

@media (min-width: 900px) {
    .split__media {
        order: 0;
    }
}

.card__icon svg {
    width: 2rem;
    height: 2rem;
}

/* Responsive Showcase */
.responsive-showcase {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.device-desktop {
    width: 280px;
}

.device-tablet {
    width: 160px;
}

.device-smartphone {
    width: 100px;
}

.responsive-showcase .screenshot-placeholder {
    aspect-ratio: auto;
    height: 200px;
}

.responsive-showcase .device-tablet .screenshot-placeholder {
    height: 240px;
}

.responsive-showcase .device-smartphone .screenshot-placeholder {
    height: 280px;
}

@media (max-width: 768px) {
    .responsive-showcase {
        gap: 1rem;
    }

    .device-desktop {
        width: 100%;
        max-width: 280px;
    }

    .device-tablet {
        width: 45%;
        max-width: 160px;
    }

    .device-smartphone {
        width: 35%;
        max-width: 100px;
    }
}

/* Hero small variant */
.hero--small {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

/* Card price */
.card__price {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--color-accent);
}

/* Responsive devices */
@media (max-width: 768px) {
    .split {
        gap: 2rem;
    }

    .mobile-nav__cta .btn {
        width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 1023px) {
    .header-cta {
        display: none !important;
    }
}

/* Word break for long compound words on mobile */

