/*
 * die Rostocker – Übergangsseite, Variante Browsergame „Wurst-Fang“
 * Zentrales CSS für WordPress/Elementor 4. Liegt unter /wp-content/uploads/rostocker/<version>/rostocker.css
 * und wird über das Elementor-Pro-Custom-Code-Snippet im <head> geladen.
 *
 * Aufteilung:
 * - Design-Tokens (Farben, Größen, Abstände, Schrift) sind Elementor-Variablen (--rk-*).
 * - Element-Stile (Layout, Typografie, Farben) stehen in globalen Elementor-Klassen (rk-*).
 * - Hier steht nur, was Atomic-Klassen nicht abbilden: Schriften, Grundstil, Pseudo-Elemente,
 *   Übergänge mit Easing, Keyframes, Fokus, Motion und Reduced Motion.
 * Vorlage: claude-design/project/Skizze3.dc.html (Export /spiel/), Stand 2026-10-23.
 * Das Spiel selbst bringt wurstfang.css mit.
 */

/* ---------- Schriften (lokal, keine Anfragen an Fremdserver) ---------- */
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/barlow-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/barlow-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-600-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/barlow-600-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/barlow-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bebas-neue-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bebas-neue-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ohne passenden Elementor-Variablentyp ---------- */
:root {
  --rk-ease: cubic-bezier(.2, .7, .2, 1);
  --rk-shadow-logo: drop-shadow(0 1px 1px rgb(10 20 45 / .25)) drop-shadow(0 6px 12px rgb(10 20 45 / .3));
  --rk-shadow-btn: inset 0 1px 0 rgb(255 255 255 / .18), 0 1px 2px rgb(90 8 6 / .3), 0 10px 22px -10px rgb(150 12 9 / .55);
  --rk-shadow-header: inset 0 -1px 0 rgb(255 255 255 / .06), 0 1px 3px rgb(10 20 45 / .2), 0 10px 30px -10px rgb(10 20 45 / .45);
}

/* ---------- Grundstil (wie Vorlage; schlägt Hello reset.css über Spezifität) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--rk-header-h) + 1.5rem); }
/* Ab 1441 px wächst alles in rem leicht mit, höchstens 6 px auf die Basisgröße */
@media (min-width: 1441px) { html { font-size: calc(100% + min((100vw - 1440px) / 175, 6px)); } }
html body {
  margin: 0;
  font-family: var(--rk-font-body, Barlow), system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--rk-fs-body);
  line-height: 1.6;
  color: var(--rk-cream-ink);
  background: var(--rk-navy) url(img/tex-navy.webp) center / 620px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html body a, html body a:hover { color: inherit; }

/* Fokus: Elementor setzt Links in Absätzen auf `all: unset`, deshalb hier ausdrücklich */
html body a:focus-visible, html body button:focus-visible,
.elementor .e-paragraph-base a:focus-visible, .elementor .e-heading-base a:focus-visible {
  outline: 3px solid var(--rk-cream-ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--rk-navy); border-radius: 6px;
}
.elementor .rk-bg-cream a:focus-visible, .elementor .rk-bg-cream .e-paragraph-base a:focus-visible { outline-color: var(--rk-red-deep); box-shadow: none; }

/* ---------- Kopfleiste ---------- */
.elementor .rk-header { box-shadow: var(--rk-shadow-header); transition: transform .55s cubic-bezier(.34, 1.45, .64, 1); will-change: transform; }
.elementor .rk-header.is-hidden { transform: translateY(calc(-100% - 7rem)); transition: transform .38s var(--rk-ease); }
/* Hintergrund nach oben verlängern, damit beim Nachfedern keine Lücke entsteht */
.elementor .rk-header::before { content: ""; position: absolute; left: 0; right: 0; width: auto; top: auto; bottom: 100%; height: 2rem; background: inherit; pointer-events: none; }
body.admin-bar .elementor .rk-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .elementor .rk-header { top: 46px; } }
.elementor .rk-hdr-route { transition: background-color .2s, border-color .2s; }
.elementor .rk-hdr-logo { filter: var(--rk-shadow-logo); }

/* ---------- Gerissene Kante über einer Fläche (gleiche Textur, SVG-Maske) ---------- */
.elementor .rk-torn { --edge: url(/wp-content/uploads/rostocker/v1/img/edge-navy.svg); }
.elementor .rk-torn.rk-bg-cream { --edge: url(/wp-content/uploads/rostocker/v1/img/edge-cream.svg); }
.elementor .rk-torn::before {
  content: ""; position: absolute; left: 0; right: 0; width: auto; top: 1px; height: clamp(34px, 5.2vw, 86px);
  transform: translateY(-100%); background: inherit; background-position: 0 100%;
  -webkit-mask: var(--edge) 0 0 / 100% 100% no-repeat; mask: var(--edge) 0 0 / 100% 100% no-repeat;
  pointer-events: none; z-index: 2;
}

/* ---------- Bühne ---------- */
.elementor .rk-stage::before { content: ""; position: absolute; inset: 0; width: auto; background: radial-gradient(ellipse 60% 70% at 64% 45%, rgb(99 132 166 / .28), transparent 70%); pointer-events: none; }
/* Lade-Punkte der Veneer-Überschrift: Punkt-Ebene wird schrittweise freigelegt */
.elementor .rk-h1-dots { clip-path: inset(0 37% 0 0); animation: rk-dots 1.6s step-end 3 forwards; }
@keyframes rk-dots { 0% { clip-path: inset(0 37% 0 0); } 25% { clip-path: inset(0 31.96% 0 0); } 50% { clip-path: inset(0 25.62% 0 0); } 75%, 100% { clip-path: inset(0 19.39% 0 0); } }
@keyframes rk-dots-c { 0% { clip-path: inset(0 27% 0 0); } 25% { clip-path: inset(0 22.21% 0 0); } 50% { clip-path: inset(0 15.86% 0 0); } 75%, 100% { clip-path: inset(0 9.64% 0 0); } }
@media (max-width: 960px) { .elementor .rk-h1-dots-c { clip-path: inset(0 27% 0 0); animation-name: rk-dots-c; } }
/* Platz für das Spiel freihalten, bis wurstfang.js es aufgebaut hat (vermeidet einen Layout-Sprung).
   Anzeige + Bedienhilfe = 30px + 4.5rem; Canvas mobil 3:4 (Prozent-Padding bezieht sich auf die Breite), ab 961 px wie wurstfang.css. */
.elementor .rk-game:not(.game)::before { content: ""; position: static; display: block; width: auto; height: auto; padding-top: calc(133.333% + 30px + 4.5rem); }
@media (min-width: 961px) { .elementor .rk-game:not(.game)::before { padding-top: 0; height: calc(clamp(26rem, 100svh - var(--rk-header-h) - 14rem, 44rem) + 30px + 4.5rem); } }
.elementor .rk-skip a { font-weight: 700; color: var(--rk-cream-ink); text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }

/* ---------- Kontakt ---------- */
.elementor .rk-cols { --seam: rgb(29 48 87 / .28); }
.elementor .rk-col + .rk-col::before { content: ""; position: absolute; left: 0; top: 6%; bottom: 6%; width: 2px; height: auto; background: repeating-linear-gradient(to bottom, var(--seam) 0 10px, transparent 10px 18px); }
@media (max-width: 1023px) {
  .elementor .rk-col + .rk-col::before { left: 18%; right: 18%; top: 0; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(to right, var(--seam) 0 10px, transparent 10px 18px); }
}
.elementor .rk-ic { transform-origin: 50% 90%; transition: transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.elementor a.rk-col:hover .rk-ic { transform: rotate(-6deg) scale(1.06); }
.elementor a.rk-col .rk-big { text-decoration: underline 2px transparent; text-underline-offset: 7px; transition: text-decoration-color .25s; }
.elementor a.rk-col:hover .rk-big { text-decoration-color: var(--rk-red); }

/* ---------- Footer ---------- */
.elementor .rk-foot-link a { display: block; text-box: trim-both cap alphabetic; padding-block: .75rem; margin-block: -.75rem; text-decoration: none; font-weight: 600; color: var(--rk-cream-ink); cursor: pointer; }
.elementor .rk-foot-link a:hover { text-decoration: underline; text-underline-offset: 4px; color: var(--rk-cream-ink); }

/* ---------- Rechtsseiten (Impressum, Datenschutz) ----------
   Den Text lädt der Legal-Cockpit-Shortcode im Browser in .rk-legal-text (Überschriften h2–h4, Absätze, Listen, Links). */
.elementor .rk-legal-back a { display: inline-block; padding-block: .6rem; margin-block: -.6rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.elementor .rk-legal-back a:hover { text-decoration-thickness: 2px; }
.elementor .rk-legal-text { overflow-wrap: anywhere; }
.elementor .rk-legal-text :is(h2, h3, h4) { font-family: inherit; font-weight: 700; line-height: 1.2; letter-spacing: -.005em; color: var(--rk-navy); margin: 2.2em 0 .55em; }
.elementor .rk-legal-text h2 { font-size: clamp(1.45rem, 1.2rem + .9vw, 1.9rem); }
.elementor .rk-legal-text h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); margin-top: 1.8em; }
.elementor .rk-legal-text h4 { font-size: 1.05rem; margin-top: 1.5em; }
/* Nur der allererste Block steht bündig. Legal Cockpit packt viele Abschnitte in ein eigenes div, dort bleibt der Abstand. */
.elementor .rk-legal-text [id^="lc-text-"] > :first-child,
.elementor .rk-legal-text [id^="lc-text-"] > div:first-child > :first-child { margin-top: 0; }
/* Überschrift direkt nach Überschrift rückt heran, auch über ein Wrapper-div hinweg */
.elementor .rk-legal-text :is(h2, h3, h4) + :is(h2, h3, h4),
.elementor .rk-legal-text :is(h2, h3, h4) + div > :is(h2, h3, h4):first-child { margin-top: .4em; }
/* Legal Cockpit gibt für fehlende Angaben leere Überschriften und freie Zeilenumbrüche zwischen Blöcken aus */
.elementor .rk-legal-text :is(h2, h3, h4):empty { display: none; }
.elementor .rk-legal-text div > br { display: none; }
.elementor .rk-legal-text p { margin: 0 0 .75em; }
.elementor .rk-legal-text ul { margin: 0 0 1em; padding-left: 1.25em; }
.elementor .rk-legal-text li { margin-bottom: .35em; }
.elementor .rk-legal-text a { color: var(--rk-red-deep); text-decoration: underline; text-underline-offset: 3px; }
.elementor .rk-legal-text a:hover { color: var(--rk-red-deep); text-decoration-thickness: 2px; }

/* ---------- Cookie-Banner: Elementor-Popup von Cookie Consent (Dokument 102, Container .rk-cc) ----------
   Farben, Schrift und Buttons stehen in den Widget-Einstellungen; hier Textur, Abstand, Link, Fokus und mobile Anordnung. */
.elementor-popup-modal .dialog-widget-content:has(.rk-cc) { background-image: url(img/tex-navy.webp); background-position: 0 0; background-size: 620px; overflow: hidden; }
@media (min-width: 768px) { .elementor-popup-modal .dialog-widget-content:has(.rk-cc) { margin-bottom: 20px; } }
.elementor .rk-cc .cookiez-content { line-height: 1.55; }
.elementor .rk-cc .cookiez-content a { margin-left: .3em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.elementor .rk-cc a:focus-visible { outline: 2px solid var(--rk-cream-ink); outline-offset: 2px; box-shadow: none; border-radius: 3px; }
.elementor .rk-cc button:focus-visible { outline: 3px solid var(--rk-cream-ink); outline-offset: 3px; box-shadow: none; border-radius: 10px; }
.elementor .rk-cc .cookiez-footer-button { white-space: nowrap; }
@media (max-width: 767px) {
  .elementor .rk-cc .cookiez-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .elementor .rk-cc .cookiez-footer-button { padding-inline: 10px; }
  .elementor .rk-cc .cookiez-footer-button--customize { grid-column: 1 / -1; order: 3; }
}

/* Einstellungsdialog (Dokument 106, Container .rk-cc-prefs): Badge, Schalter, Details, scrollbar auf kleinen Bildschirmen */
.elementor-popup-modal .dialog-widget-content:has(.rk-cc-prefs) .dialog-message { max-height: calc(100svh - 48px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 767px) { .elementor-popup-modal .dialog-widget-content:has(.rk-cc-prefs) .dialog-message { max-height: 90svh; } }
.elementor .rk-cc .cookiez-preferences-content-category__always-active { height: 24px; padding: 0 10px; background: transparent; border: 1px solid rgb(246 234 211 / .45); color: var(--rk-cream-ink); font: 600 13px/1 var(--rk-font-body, Barlow), system-ui, sans-serif; letter-spacing: .02em; }
.elementor .rk-cc .cookiez-preferences-content-category__switch::before { background: rgb(246 234 211 / .55); opacity: 1; }
.elementor .rk-cc .cookiez-preferences-content-category__switch:checked::before { background: var(--rk-red-deep); opacity: 1; }
.elementor .rk-cc .cookiez-preferences-content-category__switch:checked::after { background: var(--rk-cream-ink); }
.elementor .rk-cc .cookiez-preferences-content-category__switch:hover, .elementor .rk-cc .cookiez-preferences-content-category__switch:checked:hover { background: rgb(246 234 211 / .08); }
.elementor .rk-cc .cookiez-preferences-content-category__switch:focus-visible, .elementor .rk-cc .cookiez-preferences-content-category__summary:focus-visible { outline: 3px solid var(--rk-cream-ink); outline-offset: 2px; box-shadow: none; }
.elementor .rk-cc .cookiez-preferences-content-category__details-paper { background: rgb(246 234 211 / .08); color: var(--rk-cream-ink); border-radius: 8px; }
.elementor-popup-modal:has(.rk-cc-prefs) .dialog-close-button:focus-visible { outline: 3px solid var(--rk-cream-ink); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 767px) {
  /* Buttons wie im Banner: Ablehnen | Alle akzeptieren, darunter Auswahl speichern */
  .elementor .rk-cc .cookiez-preferences-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .elementor .rk-cc .cookiez-preferences-footer-button { padding-inline: 10px; }
  .elementor .rk-cc .cookiez-preferences-footer-button--save { grid-column: 1 / -1; order: 3; }
  /* Schalter bzw. Badge oben rechts, Beschreibung über die volle Breite */
  .elementor .rk-cc .cookiez-preferences-content-category__header { position: relative; }
  .elementor .rk-cc .cookiez-preferences-content-category__summary { flex: 1 1 100%; }
  .elementor .rk-cc .cookiez-preferences-content-category__switch, .elementor .rk-cc .cookiez-preferences-content-category__always-active { position: absolute; top: 10px; right: 10px; margin: 0; }
  .elementor .rk-cc .cookiez-preferences-content-category__title { padding-right: 104px; }
}

/* ---------- Bewegung: .motion setzt ein Inline-Skript im Head (vor dem ersten Paint), .rk-reveal setzt site.js ---------- */
@keyframes rk-fade { from { opacity: 0; } }
.motion .elementor .rk-lead { animation: rk-fade .7s var(--rk-ease) both; animation-delay: .26s; }
.motion .elementor .rk-skip { animation: rk-fade .7s var(--rk-ease) both; animation-delay: .34s; }
/* Einblendung der Spielspalte steuert wurstfang.css */
.motion .elementor .rk-contact.rk-reveal .rk-wrap > .rk-kicker, .motion .elementor .rk-contact.rk-reveal .rk-h2, .motion .elementor .rk-contact.rk-reveal .rk-col {
  opacity: 0; translate: 0 24px;
  transition: opacity .7s var(--rk-ease), translate .7s var(--rk-ease), transform .35s var(--rk-ease), border-color .35s;
}
.motion .elementor .rk-contact.rk-reveal.is-in .rk-wrap > .rk-kicker, .motion .elementor .rk-contact.rk-reveal.is-in .rk-h2, .motion .elementor .rk-contact.rk-reveal.is-in .rk-col { opacity: 1; translate: 0 0; }
.motion .elementor .rk-contact.rk-reveal.is-in .rk-h2 { transition-delay: .08s, .08s, 0s, 0s; }
.motion .elementor .rk-contact.rk-reveal.is-in .rk-col:nth-child(1) { transition-delay: .16s, .16s, 0s, 0s; }
.motion .elementor .rk-contact.rk-reveal.is-in .rk-col:nth-child(2) { transition-delay: .24s, .24s, 0s, 0s; }
.motion .elementor .rk-contact.rk-reveal.is-in .rk-col:nth-child(3) { transition-delay: .32s, .32s, 0s, 0s; }

/* ---------- Reduced Motion (wie Vorlage; !important nur hier) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .elementor .rk-h1-dots { clip-path: none; }
  /* Elementor-Popups setzen den Fokus erst bei animationend: 1 ms ohne Bewegung, damit Banner und Dialog den Fokus bekommen */
  html body .elementor-popup-modal .dialog-widget-content.animated { animation: rk-noop 1ms both !important; }
}
@keyframes rk-noop { from { opacity: 1; } to { opacity: 1; } }
