/* ==========================================================================
   Beats and Business
   Wirtschaftsjunioren Nürnberg

   Aufbau:
   0. Schriften
   1. Tokens
   2. Basis
   3. Typografie
   4. Bausteine (Button, Logo, Reveal)
   5. Kopfzeile
   6. Auftakt
   7. Laufband
   8. Sektionen (Idee, Programm, Partner)
   9. Anmeldung
   10. Fuß
   11. Motion-Preferences
   ========================================================================== */


/* 0. Schriften ============================================================
   Lokal ausgeliefert statt über Google Fonts: gleiche Dateien auf jedem
   Gerät, kein Blocker kann sie verhindern, keine Verbindung zu Google.
   Die Bereiche bei font-weight/font-stretch sind Pflicht – nur so ordnet
   der Browser font-weight und font-stretch den Variable-Font-Achsen zu.   */

@font-face {
    font-family: 'Archivo';
    src: url('../fonts/archivo-var.woff2') format('woff2');
    font-weight: 400 900;
    font-stretch: 75% 100%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'DM Mono';
    src: url('../fonts/dm-mono-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* 1. Tokens ============================================================== */

:root {
    /* Farben aus dem Logo */
    --red:        #ee0f2e;
    --red-dark:   #c3061f;
    --blue:       #0e4c9a;
    --blue-dark:  #0a3a76;

    --ink:        #0b1730;
    --ink-60:     #4d5872;
    --ink-40:     #7c869c;

    /* Dunkelblau und Gold aus der Eventpräsentation – Auftritt des
       ConnectYOUBee2B-Blocks */
    --navy:       #0d1038;
    --gold:       #f9c22e;
    --red-light:  #ff5a70;

    /* Papier statt Reinweiß – die Seite soll gedruckt wirken, nicht geleuchtet */
    --paper:      #faf8f4;
    --paper-2:    #f2eee6;
    --line:       #0b1730;

    /* Kurven: die eingebauten CSS-Easings sind zu weich */
    --ease-out:    cubic-bezier(.23, 1, .32, 1);
    --ease-in-out: cubic-bezier(.77, 0, .175, 1);

    --pad:  clamp(1.25rem, 4vw, 3.5rem);
    --wrap: 78rem;
}


/* 2. Basis =============================================================== */

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

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
    line-height: 1.55;
    font-stretch: 100%;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    /* Nie künstlich fetten oder schrägstellen – fehlt ein Schnitt, lieber
       den nächstliegenden echten nehmen. Hält das Schriftbild überall gleich. */
    font-synthesis: none;
    /* Bewusst kein overflow-x: hidden – das würde position: sticky
       der Kopfzeile aushebeln. Breite Elemente clippen selbst. */
}

img, svg { display: block; max-width: 100%; }
ol, ul   { list-style: none; margin: 0; padding: 0; }
dl, dd   { margin: 0; }
p        { margin: 0; }

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

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 3px;
}

::selection {
    background: var(--red);
    color: #fff;
}

.skiplink {
    position: absolute;
    left: -100vw;
    top: 0;
    z-index: 100;
    background: var(--ink);
    color: var(--paper);
    padding: .75rem 1.25rem;
    font-size: .875rem;
}
.skiplink:focus { left: 0; }

/* Nur für Screenreader – etwa der Hinweis auf einen neuen Tab */
.vh {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Pfeil für externe Links als SVG: das Zeichen ↗ fehlt in Archivo und käme
   sonst auf jedem Betriebssystem aus einer anderen Systemschrift. */
.ext {
    display: inline-block;
    width: .62em;
    height: .62em;
    margin-left: .3em;
    vertical-align: .02em;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: square;
}

.sep { color: var(--ink-40); padding: 0 .35em; }


/* 3. Typografie ========================================================== */

/* Display: schmal, schwer, versal. Ein Schnitt für alle Überschriften –
   keine Mischung aus normal und kursiv. */
.display {
    margin: 0;
    font-stretch: 80%;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.012em;
    line-height: .87;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.display--xl { font-size: clamp(2.5rem, 1.2rem + 6.2vw, 6.5rem); }
.display--l  { font-size: clamp(2.25rem, 1.4rem + 3.8vw, 4.25rem); }
.display--m  { font-size: clamp(1.6rem,  1.2rem + 1.8vw, 2.5rem); }

/* Mono für alles, was Meta ist: Zeiten, Labels, Laufband */
.stub__head,
.stub__row dt,
.ablauf__zeit,
.foot__label,
.foot__stand,
.wait,
.ticker__item,
.topbar__in {
    font-family: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* Schriftzug „Founder+ Community Netzwerk Event" aus der Eventpräsentation.
   Rechtsbündig – und zwar an der rechten Kante des Logos darunter, nicht an
   der Spalte: beide teilen sich dieselbe Maximalbreite (--logo-breite). */
.lockup {
    display: block;
    max-width: var(--logo-breite);
    margin-bottom: clamp(1.25rem, 3vw, 2.25rem);
    font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3.25rem);
    font-stretch: 84%;
    font-weight: 900;
    line-height: .86;
    letter-spacing: -.01em;
    text-transform: uppercase;
    text-align: right;
    color: var(--red);
}
.lockup span { display: block; }
.lockup .lockup__akzent { color: var(--blue); }

/* Claim: zwei Zeilen, zwei Markenfarben – ein Schnitt, keine Kursive.
   Gemischte Schreibweise statt Versalien, halb so groß wie das Display-XL:
   damit führt das Logo die Bildfläche an und der Claim liest sich als Satz.
   Zeilenhöhe deshalb auf 1.06 statt .87 – Ober- und Unterlängen brauchen
   mehr Luft als Großbuchstaben. */
.claim {
    font-size: clamp(1.25rem, .6rem + 3.1vw, 3.25rem);
    font-stretch: 88%;
    font-weight: 800;
    text-transform: none;
    line-height: 1.06;
    letter-spacing: -.018em;
}
.claim__a { color: var(--red); }
.claim__b { color: var(--blue); }

/* Einleitung: erster Absatz als Vorspann, dann Fließtext, am Ende der
   Schlusssatz mit Sprung zur Anmeldung. */
.intro {
    max-width: 44ch;
    font-size: clamp(1rem, .96rem + .25vw, 1.125rem);
    line-height: 1.55;
    color: var(--ink-60);
}
.intro p + p { margin-top: .9em; }
.intro__lead {
    font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
    line-height: 1.42;
    color: var(--ink);
}
.intro__schluss {
    color: var(--ink);
    font-weight: 600;
}
.intro__aufruf {
    color: var(--red);
    white-space: nowrap;
    background-image: linear-gradient(var(--red), var(--red));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 2px;
    transition: background-size 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .intro__aufruf:hover { background-size: 0 2px; }
}


/* 4. Bausteine =========================================================== */

/* --- Button: kantig, kein Radius, kein Schatten --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    padding: .95rem 1.6rem;
    border: 2px solid transparent;
    font-size: .9375rem;
    font-stretch: 92%;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: transform 140ms var(--ease-out),
                background-color 180ms ease,
                color 180ms ease;
}
.btn::after {
    content: '→';
    transition: transform 200ms var(--ease-out);
}
.btn:hover::after { transform: translateX(4px); }
.btn:active       { transform: scale(.97); }

.btn--blue  { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--paper { background: var(--paper); color: var(--blue-dark); border-color: var(--paper); }

@media (hover: hover) and (pointer: fine) {
    .btn--blue:hover  { background: var(--blue-dark); border-color: var(--blue-dark); }
    .btn--paper:hover { background: var(--red); border-color: var(--red); color: #fff; }
}

/* --- Wartezustand statt Button, solange die Anmeldung zu ist --- */
.wait {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: .9rem 1.2rem;
    border: 2px dashed var(--ink-40);
    font-size: .8125rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink-60);
}
.wait__pulse {
    width: .5rem;
    height: .5rem;
    background: var(--red);
    border-radius: 50%;
    animation: pulse 2.4s var(--ease-in-out) infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1;  transform: scale(1); }
    50%      { opacity: .3; transform: scale(.7); }
}

/* --- Logo --- */
.logo { width: 100%; height: auto; }

.logo__word {
    font-family: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
    font-stretch: 82%;
    font-weight: 900;
    font-size: 175px;
}
.logo--default .logo__word--beats    { fill: var(--red); }
.logo--default .logo__word--business { fill: var(--blue); }
.logo--default .logo__bar            { fill: var(--blue); }
.logo--default .logo__plus           { fill: var(--red); }

.logo--invers .logo__word,
.logo--invers .logo__bar,
.logo--invers .logo__plus { fill: #fff; }

.logo--sm { max-width: 15rem; }

/* --- Bewegte Marke ---------------------------------------------------
   Zwei Stufen auf derselben Eigenschaft (transform):
   1. barIn  – die Balken fahren einmalig gestaffelt ein
   2. barPulse – danach dauerhaft. Die zweite Animation steht in der Liste
      hinter der ersten und gewinnt damit, sobald ihre Verzögerung abläuft.
      Bewusst OHNE fill-mode: mit 'both' würde ihr Startbild schon während
      der Verzögerung greifen und das Einfahren überschreiben.
   Skaliert wird ausschließlich auf der Y-Achse – die Balkenbreite bleibt. */
.logo--animate .logo__bar {
    transform-box: fill-box;
    transform-origin: center;
    animation:
        barIn 520ms var(--ease-out) calc(var(--i, 1) * 45ms + 120ms) both,
        barPulse var(--dur, 2400ms) ease-in-out calc(var(--i, 1) * 45ms + 640ms) infinite;
}

@keyframes barIn {
    from { transform: scaleY(.28); opacity: 0; }
    to   { transform: scaleY(1);   opacity: 1; }
}

/* Anfang und Ende bei 1 – dadurch geht das Einfahren ohne Sprung in den
   Puls über. Die Zwischenwerte sind ungleichmäßig verteilt, damit es nach
   Audiopegel aussieht und nicht nach gleichmäßigem Atmen. */
@keyframes barPulse {
    0%   { transform: scaleY(1); }
    22%  { transform: scaleY(.68); }
    48%  { transform: scaleY(1.2); }
    74%  { transform: scaleY(.82); }
    100% { transform: scaleY(1); }
}

/* Aus dem Blickfeld gescrollt: Puls anhalten, statt im Hintergrund zu laufen */
.logo--animate.is-paused .logo__bar { animation-play-state: paused; }

/* Das Plus zeichnet sich nach den Balken selbst – erst der Längs-, dann der
   Querstrich. Es pulsiert nicht, es bleibt der ruhende Punkt der Marke. */
.logo--animate .logo__plus {
    transform-box: fill-box;
    transform-origin: center;
}
.logo--animate .logo__plus--v { animation: plusV 420ms var(--ease-out) 600ms both; }
.logo--animate .logo__plus--h { animation: plusH 420ms var(--ease-out) 700ms both; }

@keyframes plusV {
    from { transform: scaleY(.14); opacity: 0; }
    to   { transform: scaleY(1);   opacity: 1; }
}
@keyframes plusH {
    from { transform: scaleX(.14); opacity: 0; }
    to   { transform: scaleX(1);   opacity: 1; }
}

/* --- Scroll-Reveal (nur wenn JS läuft, sonst bleibt alles sichtbar) --- */
.js .reveal {
    opacity: 0;
    transform: translateY(12px);
}
.js .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 70ms);
}


/* 5. Kopfzeile =========================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid transparent;
    transition: border-color 200ms ease, background-color 200ms ease;
}
.topbar.is-stuck {
    border-bottom-color: var(--line);
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(8px);
}

.topbar__in {
    --kopf-logo-h: 32px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: .6rem var(--pad);
    font-size: .75rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Absenderzeile: WJ und JCI als Logos. Beide auf dieselbe Höhe gesetzt
   (die Dateien sind randlos beschnitten), getrennt durch eine Haarlinie.
   Die Logos dürfen auf sehr schmalen Displays schrumpfen, statt die
   Anmelde-Verknüpfung aus der Zeile zu drängen. */
.topbar__logos {
    display: flex;
    align-items: center;
    gap: clamp(.7rem, 2vw, 1.2rem);
    flex: 0 1 auto;
    min-width: 0;
}
.topbar__logos img {
    flex: 0 1 auto;
    min-width: 0;
    height: var(--kopf-logo-h);
    width: auto;
    object-fit: contain;
    object-position: left center;
}
.topbar__logos-sep {
    flex: none;
    width: 1px;
    height: calc(var(--kopf-logo-h) * .75);
    background: rgba(11, 23, 48, .28);
}

@media (min-width: 60rem) {
    .topbar__in { --kopf-logo-h: 48px; }
}
@media (max-width: 22rem) {
    .topbar__in { --kopf-logo-h: 28px; }
}

.topbar__meta { color: var(--ink-60); margin-left: auto; }

.topbar__nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
}
.topbar__nav a {
    color: var(--ink-60);
    padding-bottom: 2px;
    background-image: linear-gradient(var(--ink), var(--ink));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 220ms var(--ease-out), color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .topbar__nav a:hover { color: var(--ink); background-size: 100% 1px; }
}
.topbar__cta {
    color: var(--red) !important;
    background-image: linear-gradient(var(--red), var(--red)) !important;
}

/* Ort/Datum erst ab 76rem: Logos (ca. 310 px) + Ort/Datum (ca. 190 px) +
   volle Navigation (ca. 480 px) brauchen rund 1030 px Nutzbreite. Darunter
   trägt die Eckdaten-Box Ort und Datum ohnehin direkt unter der Kopfzeile. */
@media (max-width: 76rem) {
    .topbar__meta { display: none; }
    .topbar__nav { margin-left: auto; }
}
@media (max-width: 60rem) {
    .topbar__nav a:not(.topbar__cta) { display: none; }
}


/* 6. Auftakt ============================================================= */

.billboard {
    position: relative;
    border-bottom: 2px solid var(--line);
    overflow: hidden;
}

/* Weicher Farbverlauf oben rechts – aufgenommen aus dem Bildmaterial */
.billboard__wash {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 130%;
    background:
        radial-gradient(58% 62% at 88% 22%, rgba(238, 15, 46, .30), transparent 68%),
        radial-gradient(46% 52% at 74% 62%, rgba(238, 15, 46, .16), transparent 70%),
        radial-gradient(62% 70% at 12% 8%,  rgba(104, 186, 240, .48), transparent 70%),
        radial-gradient(50% 55% at 42% 42%, rgba(255, 255, 255, .85), transparent 62%);
    pointer-events: none;
}

.billboard__in {
    position: relative;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: clamp(2.5rem, 7vw, 6rem) var(--pad) clamp(3rem, 7vw, 6rem);
    display: grid;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 62rem) {
    .billboard__in {
        grid-template-columns: minmax(0, 1.55fr) minmax(19rem, .85fr);
        gap: clamp(3rem, 5vw, 5.5rem);
    }
}

/* Gemeinsame Breite von Logo und Schriftzug darüber */
.billboard__left { --logo-breite: min(46rem, 100%); }

.billboard__logo {
    max-width: var(--logo-breite);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.billboard h1 { margin-bottom: clamp(1.5rem, 3vw, 2rem); }

/* --- Eckdaten als Abrisszettel --- */
.stub {
    --stub-pad: clamp(1.5rem, 2.5vw, 2rem);
    background: var(--paper);
    border: 2px solid var(--line);
    padding: var(--stub-pad);
}

.stub__head {
    font-size: .6875rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-40);
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 1.25rem;
}

.stub__row {
    display: grid;
    grid-template-columns: 5.5rem 1fr;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px dotted rgba(11, 23, 48, .28);
}
.stub__row:last-child { border-bottom: 0; }

.stub__row dt {
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-40);
    padding-top: .18em;
}
.stub__row dd {
    font-size: .9375rem;
    font-stretch: 96%;
    font-weight: 600;
    line-height: 1.35;
}

/* Anschrift zurückgenommen: kleiner, normale Stärke, gedämpfte Farbe */
.stub__adresse {
    display: block;
    margin-top: .3rem;
    font-size: .8125rem;
    font-stretch: 100%;
    font-weight: 400;
    line-height: 1.45;
    color: var(--ink-60);
}

/* Perforation wie bei einem Ticket */
.stub__tear {
    height: 2px;
    margin: 1.5rem calc(var(--stub-pad) * -1);
    background-image: linear-gradient(to right, var(--line) 0 8px, transparent 8px 16px);
    background-size: 16px 2px;
}

.stub__foot { padding-top: .5rem; }
.stub__note {
    margin-top: 1rem;
    font-size: .8125rem;
    line-height: 1.45;
    color: var(--ink-60);
}


/* 7. Laufband ============================================================ */

.ticker {
    background: var(--blue);
    color: #fff;
    overflow: hidden;
    padding: .8rem 0;
    border-bottom: 2px solid var(--line);
}
.ticker__track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: max-content;
    padding-right: 1.5rem;
    animation: marquee var(--laufband-dauer, 34s) linear infinite;
}
.ticker__item {
    font-size: .8125rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    white-space: nowrap;
}
.ticker__plus {
    color: var(--red);
    font-weight: 900;
    font-size: 1.1rem;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* 8. Sektionen =========================================================== */

.sec {
    border-bottom: 2px solid var(--line);
    padding: clamp(3.5rem, 8vw, 7rem) 0;
}
.sec--tint { background: var(--paper-2); }

.sec__in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.sec__head {
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.sec__sub {
    max-width: 46ch;
    margin-top: 1.5rem;
    color: var(--ink-60);
    font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
}

/* --- Blöcke des Abends: Zeilen statt Karten --- */
.saeulen__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem 2rem;
    padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
    border-bottom: 1px solid rgba(11, 23, 48, .18);
}
.saeulen__row:first-child { padding-top: 0; }
.saeulen__row:last-child  { border-bottom: 0; padding-bottom: 0; }

@media (min-width: 55rem) {
    .saeulen__row {
        grid-template-columns: minmax(12rem, 18rem) minmax(0, 1fr);
        align-items: start;
        gap: 2.5rem;
    }
}

/* Farben im Wechsel: Blau, Rot, Blau, Rot */
.saeulen__wort { color: var(--blue); }
.saeulen__row:nth-child(even) .saeulen__wort { color: var(--red); }

.saeulen__text {
    max-width: 52ch;
    color: var(--ink-60);
}
.saeulen__text p + p { margin-top: .8em; }


/* --- ConnectYOUBee2B --- */
.mittelpunkt {
    background: var(--navy);
    color: #fff;
    padding: clamp(3.5rem, 8vw, 7rem) 0;
    border-bottom: 2px solid var(--line);
}

.mittelpunkt__in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.mittelpunkt__titel {
    margin: 0 0 1.5rem;
    font-size: clamp(2.1rem, 1.1rem + 4.6vw, 4.5rem);
    font-stretch: 90%;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1;
    overflow-wrap: break-word;
}
.mp-a { color: #fff; }
.mp-b { color: var(--gold); }
.mp-c { color: var(--red-light); }

.mittelpunkt__text {
    max-width: 52ch;
    font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
    color: rgba(255, 255, 255, .84);
}
.mittelpunkt__text p + p { margin-top: .9em; }

/* --- Programm --- */
.ablauf { border-top: 2px solid var(--line); }

.ablauf__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .35rem;
    padding: clamp(1.35rem, 2.5vw, 1.9rem) 0;
    border-bottom: 1px dashed rgba(11, 23, 48, .3);
}
@media (min-width: 55rem) {
    .ablauf__row {
        grid-template-columns: minmax(8.5rem, 10rem) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: baseline;
    }
}

.ablauf__zeit {
    font-size: .8125rem;
    letter-spacing: .08em;
    color: var(--red);
}
.ablauf__titel {
    margin: 0 0 .25rem;
    font-size: clamp(1.125rem, 1rem + .55vw, 1.5rem);
    font-stretch: 92%;
    font-weight: 700;
    letter-spacing: -.005em;
}
.ablauf__text { color: var(--ink-60); max-width: 54ch; font-size: .9375rem; }

/* Der Programmpunkt, um den herum alles andere pausiert */
.ablauf__row--akzent .ablauf__zeit  { color: var(--navy); }
.ablauf__row--akzent .ablauf__titel { color: var(--navy); }
.ablauf__row--akzent .ablauf__titel::after {
    content: 'Mittelpunkt';
    display: inline-block;
    margin-left: .8em;
    padding: .3em .6em;
    background: var(--navy);
    color: var(--gold);
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: .5625em;
    font-weight: 400;
    letter-spacing: .14em;
    text-transform: uppercase;
    vertical-align: .28em;
}

/* --- Partner --- */
/* --- Sponsorenwand ---------------------------------------------------
   Gleich große Kacheln, Logos in Originalfarbe und Originalproportion.
   Größe wird ausschließlich über die Höhe geregelt (object-fit: contain),
   nie über Verzerrung. Weißer Kachelgrund, weil Partnerlogos auf ihre
   eigene Hintergrundfarbe hin gezeichnet sind – der Papierton der Seite
   würde bei hellen Logos mit Weißanteil unsauber wirken. */
/* Flex-Umbruch statt festem Raster: Kacheln der letzten Reihe dehnen sich
   auf die volle Breite. So bleibt bei jeder Partnerzahl und jeder
   Bildschirmbreite keine leere Zelle stehen. */
.partner {
    display: flex;
    flex-wrap: wrap;
    border: 2px solid var(--line);
    overflow: hidden;
}

/* Telefon: zwei Kacheln je Reihe. Ab Tablet höchstens drei je Reihe – in
   einer einzigen Reihe würden breite Logos wie ConnectYOUBee2B auf wenige
   Pixel Höhe schrumpfen. Bei sechs Partnern ergibt das zwei volle Reihen. */
.partner__item { display: flex; flex: 1 1 9rem; }
@media (min-width: 48rem) {
    .partner__item { flex-basis: 18rem; }
}
/* Sehr breite Logos bekommen auf dem Telefon eine eigene Reihe */
@media (max-width: 47.99rem) {
    .partner__item--breit { flex-basis: 100%; }
}

.partner__slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 9.5rem;
    padding: 1.5rem 1.25rem;
    background: #fff;
    box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line);
    transition: transform 160ms var(--ease-out);
}
.partner__slot:active { transform: scale(.985); }

/* Gemeinsame Zeile für das Logo: alle Marken sitzen mittig auf derselben
   Achse, unabhängig davon, ob das Logo breit oder hochformatig ist.
   min-height statt height – hochformatige Logos dürfen über das Grundmaß
   hinausgehen, ohne aus der Zeile zu laufen. */
.partner__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 4.5rem;
    width: 100%;
}
.partner__logo img {
    /* skalierung gleicht die Seitenverhältnisse optisch aus */
    max-height: calc(4.25rem * var(--skalierung, 1));
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Platzhalter, solange eine Logodatei fehlt */
.partner__ersatz {
    font-stretch: 88%;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    color: var(--ink);
}

/* Aufruf für weitere Partner – bewusst außerhalb der Wand, damit er sich
   nicht als Sponsor ausgibt. */
.partner__cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem 1.1rem;
    margin-top: 1.25rem;
    padding: 1.1rem 1.35rem;
    background: var(--red);
    color: #fff;
    font-stretch: 92%;
    font-weight: 700;
    transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.partner__cta:active { transform: scale(.99); }

.partner__cta-label {
    font-family: 'DM Mono', ui-monospace, monospace;
    font-size: .625rem;
    font-weight: 400;
    letter-spacing: .16em;
    text-transform: uppercase;
    opacity: .8;
}
.partner__cta-text { margin-right: auto; }

.partner__arrow { transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
    .partner__cta:hover { background: var(--red-dark); }
    .partner__cta:hover .partner__arrow { transform: translateX(5px); }
}


/* 9. Anmeldung =========================================================== */

.cta {
    background: var(--blue);
    color: #fff;
    padding: clamp(3.5rem, 8vw, 7rem) 0;
    border-bottom: 2px solid var(--line);
}

.cta__in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.cta__head {
    margin: 0 0 clamp(2rem, 4vw, 3rem);
    max-width: 14ch;
}

.cta__cols {
    display: grid;
    gap: 2rem;
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
    border-top: 2px solid rgba(255, 255, 255, .3);
}
@media (min-width: 55rem) {
    .cta__cols {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, auto);
        gap: 4rem;
        align-items: start;
    }
}

.cta__text {
    max-width: 46ch;
    color: rgba(255, 255, 255, .82);
}

/* Bei eingebettetem Formular steht hier nur ein kurzer Aufruf */
.cta__cols--einzeln { grid-template-columns: minmax(0, 1fr) !important; }
.cta__text--aufruf {
    max-width: none;
    font-size: clamp(1.25rem, 1.05rem + .8vw, 1.75rem);
    font-stretch: 92%;
    font-weight: 700;
    color: #fff;
}

/* Buchungsformular: transparent auf dem blauen Grund des Abschnitts –
   Bookivy liefert die passende Farbgebung selbst mit. */
.embed {
    margin-top: clamp(2rem, 4vw, 3rem);
}
.embed__frame {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    /* Höhe kommt initial inline und wird per postMessage nachgeführt.
       Bewusst ohne Übergang: das Formular kann seine Höhe mehrfach melden,
       eine nachlaufende Animation würde Inhalte kurzzeitig abschneiden. */
}

.embed__fallback {
    margin-top: 1rem;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .7);
}
.embed__fallback a {
    color: #fff;
    background-image: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: background-size 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .embed__fallback a:hover { background-size: 0 1px; }
}

.cta__mail {
    margin-top: 1.1rem;
    font-size: .8125rem;
    color: rgba(255, 255, 255, .7);
}
.cta__mail a {
    background-image: linear-gradient(rgba(255,255,255,.6), rgba(255,255,255,.6));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: background-size 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .cta__mail a:hover { background-size: 0 1px; color: #fff; }
}


/* 10. Fuß ================================================================ */

.foot {
    padding: clamp(3rem, 6vw, 5rem) 0 2.5rem;
}
.foot__in {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: grid;
    gap: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 55rem) {
    .foot__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
    .foot__legal { grid-column: 1 / -1; }
}

.foot__cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
    gap: 2rem;
    font-size: .875rem;
    line-height: 1.7;
    color: var(--ink-60);
}

.foot__stand {
    margin-top: 1rem;
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-40);
}

.foot__label {
    font-size: .6875rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-40);
    margin-bottom: .6rem;
}

.foot__cols a {
    background-image: linear-gradient(var(--ink-40), var(--ink-40));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 1px;
    transition: background-size 200ms var(--ease-out), color 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
    .foot__cols a:hover { color: var(--red); background-size: 0 1px; }
}

.foot__legal {
    padding-top: 2rem;
    border-top: 1px solid rgba(11, 23, 48, .18);
    font-size: .75rem;
    color: var(--ink-40);
}


/* 11. Motion-Preferences ================================================= */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    .js .reveal { opacity: 1; transform: none; }

    .ticker__track,
    .logo--animate .logo__bar,
    .logo--animate .logo__plus,
    .wait__pulse {
        animation: none;
    }

    .btn:active,
    .partner__slot:active,
    .partner__cta:active { transform: none; }

    *, *::before, *::after {
        transition-duration: .01ms !important;
    }
}
