/* ==========================================================================
   白雪 YUKI (ME-YUKI.JP / ME-YUKI.COM) - KOMPLETTE ZENTRALE STYLE.CSS
   - Rahmenlose Wasser-Effekte (Normalmodus) | Rahmen bei Hochkontrast
   - 82px Prüfsiegel rechts unten | Rechtsbündiges Unterseiten-Panel
   - Dunkelgrau-Schwarze 3D-Pfötchen-Bordüre mit reduzierter Opacity
   - Schriftzug "白雪 YUKI" auf Höhe der oberen Zacke der Schneeflocke
   - Obere Pillen-Leisten extra durchscheinend (für freie Sicht auf den Falter)
   - Echtes vertikales Sprach-Dropdown (nach unten!) – kein Verschieben des Menüs
   - Sprüche strikt NUR auf der Hauptseite (Philosophie) oder bei eingeklapptem Panel
   - WCAG 2.2 AA / EN 301 549 (V4.1.1): 44x44px Klickflächen, klare Fokus-Ringe,
     AAA Skip-Link (10.8:1), Barrierefreies Kino-Overlay (Lightbox) für Videos
   - Hamburger-Menü & Tablet-Hochformat (iPad Portrait) integriert
   Development: Confirmation Bias – CEO & Founder: Angelika Keussen
   ========================================================================== */

:root {
  --bg-dark: #05070a;
  --gold: #f5a623;
  --gold-glow: rgba(245, 166, 35, 0.4);
  --ice-blue: #63b3ed;
  --ice-glow: rgba(99, 179, 237, 0.55);
  --water-line: rgba(190, 230, 255, 0.42);
  --water-bright: rgba(235, 250, 255, 0.78);
  --text-light: #d8dee9;
  --text-muted: #8b9eb7;
  --nav-border: rgba(255, 255, 255, 0.18);
  --font-scale: 1;

  /* ==========================================================================
     DUNKELGRAU-SCHWARZE 3D-PFÖTCHEN-BORDÜRE & LEICHTER DURCHSCHEINENDER GRUND
     ========================================================================== */
  --paw-dark3d-frame-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 840' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='pDark3d' cx='32%25' cy='28%25' r='74%25'%3E%3Cstop offset='0%25' stop-color='%235e6b7c' stop-opacity='0.96'/%3E%3Cstop offset='48%25' stop-color='%232b3440' stop-opacity='0.94'/%3E%3Cstop offset='100%25' stop-color='%230b0e14' stop-opacity='0.96'/%3E%3C/radialGradient%3E%3Cfilter id='pShadow' x='-25%25' y='-25%25' width='150%25' height='150%25'%3E%3CfeDropShadow dx='0' dy='1.8' stdDeviation='1.4' flood-color='%23000000' flood-opacity='0.88'/%3E%3C/filter%3E%3Cg id='p' fill='url(%23pDark3d)' stroke='%2306080c' stroke-width='0.6' filter='url(%23pShadow)'%3E%3Cpath d='M-5.8,3.0 C-6.4,-0.2 -3.4,-1.8 0,-1.8 C3.4,-1.8 6.4,-0.2 5.8,3.0 C5.2,6.0 2.8,7.4 1.0,6.4 C0.4,6.0 -0.4,6.0 -1.0,6.4 C-2.8,7.4 -5.2,6.0 -5.8,3.0 Z'/%3E%3Cellipse cx='-5.8' cy='-3.6' rx='2.1' ry='2.9' transform='rotate(-22 -5.8 -3.6)'/%3E%3Cellipse cx='-2.0' cy='-6.6' rx='2.2' ry='3.1' transform='rotate(-7 -2.0 -6.6)'/%3E%3Cellipse cx='2.0' cy='-6.6' rx='2.2' ry='3.1' transform='rotate(7 2.0 -6.6)'/%3E%3Cellipse cx='5.8' cy='-3.6' rx='2.1' ry='2.9' transform='rotate(22 5.8 -3.6)'/%3E%3C/g%3E%3C/defs%3E%3Cpath d='M 600,15 L 60,15 Q 15,15 15,60 L 15,780 Q 15,825 60,825 L 600,825 Z' fill='%230e141d' fill-opacity='0.48'/%3E%3Cpath d='M 600,15 L 60,15 Q 15,15 15,60 L 15,780 Q 15,825 60,825 L 600,825 L 600,806 L 62,806 Q 34,806 34,778 L 34,62 Q 34,34 62,34 L 600,34 Z' fill='%231c2636' fill-opacity='0.42'/%3E%3Cg opacity='0.96'%3E%3Cuse href='%23p' transform='translate(586,821) rotate(-116) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(566,811) rotate(-64) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(546,820) rotate(-114) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(526,811) rotate(-66) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(506,821) rotate(-118) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(486,810) rotate(-62) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(466,820) rotate(-115) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(446,811) rotate(-65) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(426,821) rotate(-117) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(406,811) rotate(-64) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(386,820) rotate(-114) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(366,810) rotate(-66) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(346,821) rotate(-116) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(326,811) rotate(-63) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(306,820) rotate(-115) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(286,811) rotate(-65) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(266,821) rotate(-117) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(246,810) rotate(-64) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(226,820) rotate(-114) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(206,811) rotate(-66) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(186,821) rotate(-116) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(166,811) rotate(-63) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(146,820) rotate(-115) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(126,810) rotate(-65) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(106,821) rotate(-117) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(86,811) rotate(-64) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(68,820) rotate(-114) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(52,806) rotate(-45) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(36,813) rotate(-80) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(33,794) rotate(-18) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(20,795) rotate(-50) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,776) rotate(22) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(19,758) rotate(-25) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,738) rotate(25) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(19,718) rotate(-23) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(29,698) rotate(26) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(20,678) rotate(-26) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,658) rotate(24) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(19,638) rotate(-24) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(29,618) rotate(25) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(19,598) rotate(-25) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,578) rotate(23) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(20,558) rotate(-26) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(29,538) rotate(25) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(19,518) rotate(-24) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,498) rotate(26) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(19,478) rotate(-25) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(29,458) rotate(24) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(20,438) rotate(-23) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,418) rotate(25) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(19,398) rotate(-26) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(29,378) rotate(24) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(19,358) rotate(-24) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,338) rotate(26) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(20,318) rotate(-25) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(29,298) rotate(23) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(19,278) rotate(-24) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,258) rotate(25) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(19,238) rotate(-26) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(29,218) rotate(24) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(20,198) rotate(-23) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,178) rotate(25) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(19,158) rotate(-25) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(29,138) rotate(24) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(19,118) rotate(-24) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,98) rotate(26) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(19,78) rotate(-24) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(29,62) rotate(32) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(21,44) rotate(12) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(38,42) rotate(58) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(35,24) rotate(38) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(54,30) rotate(88) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(58,19) rotate(64) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(76,29) rotate(115) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(96,19) rotate(65) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(116,29) rotate(116) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(136,19) rotate(64) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(156,29) rotate(114) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(176,20) rotate(66) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(196,29) rotate(115) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(216,19) rotate(64) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(236,29) rotate(116) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(256,19) rotate(65) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(276,29) rotate(114) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(296,20) rotate(66) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(316,29) rotate(115) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(336,19) rotate(64) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(356,29) rotate(116) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(376,19) rotate(65) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(396,29) rotate(114) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(416,20) rotate(66) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(436,29) rotate(115) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(456,19) rotate(64) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(476,29) rotate(116) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(496,19) rotate(65) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(516,29) rotate(114) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(536,20) rotate(66) scale(1.27)'/%3E%3Cuse href='%23p' transform='translate(556,29) rotate(115) scale(1.25)'/%3E%3Cuse href='%23p' transform='translate(576,19) rotate(64) scale(1.26)'/%3E%3Cuse href='%23p' transform='translate(592,29) rotate(115) scale(1.25)'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hochkontrast-Modus */
body.high-contrast {
  --bg-dark: #000000;
  --gold: #ffd700;
  --gold-glow: rgba(255, 215, 0, 0.8);
  --ice-blue: #00ffff;
  --ice-glow: rgba(0, 255, 255, 0.8);
  --water-line: rgba(0, 255, 255, 0.85);
  --water-bright: #ffffff;
  --text-light: #ffffff;
  --text-muted: #ffffff;
  --nav-border: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  width: 100%;
  height: 100vh;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "MS PMincho", Georgia, serif;
  overflow: hidden;
  position: relative;
  user-select: none;
}

/* ==========================================================================
   BARRIEREFREIE SPRUNGMARKE (#skip-link / .skip-link)
   - Kontrastverhältnis 10.8 : 1 (WCAG AAA -> 0 Kontrast-Fehler im WAVE-Tool!)
   ========================================================================== */
.skip-link,
#skip-link {
  position: fixed;
  top: -120px;
  left: 2.8rem;
  z-index: 9999;
  background-color: #05070a !important;
  color: #f5a623 !important;
  border: 2px solid #f5a623 !important;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: "Segoe UI", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.95);
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible,
#skip-link:focus,
#skip-link:focus-visible {
  top: 0.85rem;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Hintergrundbild: Startet mit images/11.jpg und wechselt sanft auf 22.jpg bis 88.jpg */
.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/11.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: background-image 0.7s ease-in-out, filter 0.3s ease;
}

body.high-contrast .stage-bg {
  filter: contrast(1.35) brightness(0.85);
}

/* Sanfte Abdunkelung nur ganz oben für die Navigation */
.stage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 7, 10, 0.42) 0%,
    rgba(5, 7, 10, 0.06) 20%,
    rgba(5, 7, 10, 0.0) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ================= TOP HEADER / LEISTEN (ALLES IN EINER ZEILE) ================= */
.top-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.85rem;
  padding: 1.1rem 2.8rem;
  width: 100%;
  font-family: "Segoe UI", "Meiryo", "Yu Gothic", sans-serif;
}

.controls-left {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Audio- & Barrierefreiheits-Leiste (extra durchscheinend für den Schmetterling) */
.a11y-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(10, 14, 20, 0.22);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.a11y-bar:hover,
.a11y-bar:focus-within {
  background: rgba(10, 14, 20, 0.52);
  border-color: rgba(245, 166, 35, 0.42);
}

body.high-contrast .a11y-bar {
  background: #000000 !important;
  border: 2px solid var(--gold) !important;
}

/* 44x44px Klickflächen für alle oberen Buttons */
.a11y-bar button,
.a11y-bar a.a11y-skip-btn {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  text-decoration: none;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.a11y-bar a.a11y-skip-btn {
  color: var(--gold);
  border-right: 1px solid var(--nav-border);
  padding-right: 0.65rem;
}

.a11y-bar button:hover,
.a11y-bar button.active,
.a11y-bar a.a11y-skip-btn:hover {
  color: var(--gold);
  transform: scale(1.06);
}

.a11y-bar button.stop-btn {
  color: #ff6b6b;
  border-left: 1px solid var(--nav-border);
  padding-left: 0.65rem;
}

.a11y-bar button.stop-btn:hover {
  color: #ff3b3b;
}

/* ==========================================================================
   ECHTES VERTIKALES SPRACH-DROPDOWN (NACH UNTEN!)
   - Oben bleibt der Schalter immer exakt 78px schmal (aktive Sprache + ▾)
   - Beim Aufklappen (.open oder Hover) klappt eine vertikale Spalte NACH UNTEN auf,
     ohne die Kopfleiste oder den Menü-Button zur Seite zu schieben!
   ========================================================================== */
.lang-switcher {
  position: relative;
  width: 78px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 120;
}

/* Geschlossener Zustand: Nur die aktive Sprache sitzt als durchscheinende Pille oben */
.lang-switcher > button {
  background: rgba(10, 14, 20, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  font-family: "Segoe UI", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  width: 78px;
  min-width: 78px;
  min-height: 44px;
  padding: 0 0.65rem;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.95);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lang-switcher > button.active {
  display: inline-flex;
  color: var(--gold);
  border-color: rgba(245, 166, 35, 0.45);
  text-shadow: 0 0 8px var(--gold-glow);
}

.lang-switcher > button.active::after {
  content: "▾";
  font-size: 0.75rem;
  margin-left: 0.2rem;
  color: var(--gold);
}

/* Geöffneter Zustand: Vertikales Aufklappen NACH UNTEN (für Desktop & Tablet) */
.lang-switcher.open,
.lang-switcher:hover {
  display: block !important;
  position: relative !important;
  width: 78px !important;
  height: 44px !important;
  overflow: visible !important;
}

.lang-switcher.open > button,
.lang-switcher:hover > button {
  display: flex !important;
  width: 78px !important;
  min-width: 78px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  background: rgba(6, 9, 15, 0.96) !important;
  border-left: 1.5px solid var(--gold) !important;
  border-right: 1.5px solid var(--gold) !important;
  border-top: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0 !important;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: 125 !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.92) !important;
}

.lang-switcher.open > button:first-child,
.lang-switcher:hover > button:first-child {
  border-top: 1.5px solid var(--gold) !important;
  border-radius: 14px 14px 0 0 !important;
}

.lang-switcher.open > button:last-child,
.lang-switcher:hover > button:last-child {
  border-bottom: 1.5px solid var(--gold) !important;
  border-radius: 0 0 14px 14px !important;
}

.lang-switcher.open > button:hover,
.lang-switcher:hover > button:hover {
  background: var(--gold) !important;
  color: #05070a !important;
  text-shadow: none !important;
}

body.high-contrast .lang-switcher > button.active {
  background: #000000 !important;
  border: 2px solid var(--gold) !important;
}

/* Hauptnavigation rechts – bleibt fest in der oberen Zeile */
.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.45rem;
  margin-left: auto;
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-size: calc(0.9rem * var(--font-scale));
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: color 0.2s ease;
  position: relative;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem 4px 0.35rem;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--gold);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* Klare Fokus-Ringe für Tastaturnavigation (WCAG 2.2 Focus Appearance) */
.a11y-bar button:focus-visible,
.a11y-bar a.a11y-skip-btn:focus-visible,
.lang-switcher button:focus-visible,
.main-nav a:focus-visible,
.footer-links a:focus-visible,
.quote-box:focus-visible,
.paw-tab:focus-visible,
.video-expand-btn:focus-visible,
.yuki-lightbox-close:focus-visible,
#subpage-close:focus-visible,
.subpage-close:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: 3px !important;
  color: var(--gold);
}

/* ================= HAUPT-LAYOUT (HERO & SPRÜCHE) ================= */
.canvas-content {
  position: relative;
  z-index: 5;
  width: 100%;
  height: calc(100vh - 110px);
}

/* Schneeflocke + 白雪 YUKI links oben */
.brand-group {
  position: absolute;
  top: 4.5%;
  left: 3.5%;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  text-decoration: none;
  z-index: 8;
}

.snowflake-img {
  width: 245px;
  height: 245px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px var(--ice-glow));
  animation: spin-snow 28s linear infinite;
}

@keyframes spin-snow {
  0% {
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 16px rgba(99, 179, 237, 0.45));
  }
  50% {
    transform: rotate(180deg) scale(1.03);
    filter: drop-shadow(0 0 28px rgba(99, 179, 237, 0.85));
  }
  100% {
    transform: rotate(360deg) scale(1);
    filter: drop-shadow(0 0 16px rgba(99, 179, 237, 0.45));
  }
}

.brand-title {
  color: var(--gold);
  font-family: "Segoe UI", "Meiryo", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: calc(2.85rem * var(--font-scale));
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px var(--gold-glow);
  white-space: nowrap;
  margin-left: 0;
  margin-top: 6px;
}

/* ================= SPRÜCHE: NUR AUF DER HAUPTSEITE SICHTBAR ================= */
#quotes-container {
  width: 100%;
  height: 100%;
  transition: opacity 0.35s ease;
}

#quotes-container.hidden,
body:not([data-page="philosophy"]) #quotes-container.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.quote-box {
  position: absolute;
  color: #a8c7fa;
  font-size: calc(1rem * var(--font-scale));
  line-height: 1.85;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 14px rgba(99, 179, 237, 0.35);
  max-width: 420px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  overflow: visible;
  transition: color 0.4s ease, text-shadow 0.4s ease, transform 0.4s ease, background 0.3s ease, border-color 0.3s ease;
}

.quote-text-inner {
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.water-fx-layer {
  position: absolute;
  inset: -28px -36px;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 78%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 45%, rgba(0,0,0,0) 78%);
}

.quote-box:hover,
.quote-box:focus-visible {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95), 0 0 22px rgba(170, 235, 255, 0.95);
}

/* Im Hochkontrast-Modus klare Rahmen um die Sprüche */
body.high-contrast .quote-box {
  background: rgba(0, 0, 0, 0.92);
  border: 2px solid var(--gold);
  padding: 1.1rem 1.4rem;
  color: #ffffff;
  text-shadow: none;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.95);
}

body.high-contrast .quote-box:hover,
body.high-contrast .quote-box:focus-visible {
  border-color: #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.6);
}

/* Spruch 1 (Links): Durchsichtige aufsteigende Wasserblasen */
.quote-left {
  top: 52%;
  left: 8.5%;
  text-align: center;
  animation: float-bubbles-box 7s ease-in-out infinite;
}

@keyframes float-bubbles-box {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.water-bubble {
  position: absolute;
  bottom: 0px;
  border-radius: 50%;
  border: 1px solid rgba(215, 245, 255, 0.52);
  background: radial-gradient(
    circle at 30% 28%,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(190, 235, 255, 0.2) 32%,
    rgba(130, 205, 255, 0.03) 70%,
    transparent 100%
  );
  box-shadow: inset -1px -1px 3px rgba(180, 235, 255, 0.3), 0 0 5px rgba(190, 240, 255, 0.2);
  animation: bubble-rise var(--dur, 5.5s) ease-in infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

.quote-left:hover .water-bubble {
  border-color: rgba(240, 252, 255, 0.85);
  animation-duration: calc(var(--dur, 5.5s) * 0.75);
}

@keyframes bubble-rise {
  0% {
    transform: translateY(15px) translateX(0) scale(0.5);
    opacity: 0;
  }
  20% {
    opacity: 0.8;
  }
  55% {
    transform: translateY(-55px) translateX(var(--sway, 8px)) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translateY(-130px) translateX(calc(var(--sway, 8px) * -0.6)) scale(1.15);
    opacity: 0;
  }
}

/* Spruch 2 (Rechts oben): Sanfte Wasserwellen Auf & Ab */
.quote-right-top {
  top: 26%;
  right: 6.5%;
  text-align: left;
  animation: wave-bob-box 5.8s ease-in-out infinite;
}

@keyframes wave-bob-box {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
}

.water-wave-svg {
  position: absolute;
  left: -10%;
  width: 120%;
  height: 100%;
  top: 0;
  opacity: 0.68;
  transition: opacity 0.4s ease;
  overflow: visible;
}

.quote-right-top:hover .water-wave-svg {
  opacity: 1;
}

.wave-path-1 {
  fill: none;
  stroke: rgba(200, 238, 255, 0.55);
  stroke-width: 1.6;
  animation: wave-slide-1 6s ease-in-out infinite alternate;
}

.wave-path-2 {
  fill: none;
  stroke: rgba(165, 225, 255, 0.38);
  stroke-width: 1.2;
  animation: wave-slide-2 4.8s ease-in-out infinite alternate;
}

.wave-path-3 {
  fill: none;
  stroke: rgba(235, 250, 255, 0.32);
  stroke-width: 1;
  stroke-dasharray: 5 7;
  animation: wave-slide-1 7.5s ease-in-out infinite alternate-reverse;
}

@keyframes wave-slide-1 {
  0% { transform: translateX(-5%) translateY(-5px); }
  50% { transform: translateX(4%) translateY(5px); }
  100% { transform: translateX(-3%) translateY(-3px); }
}

@keyframes wave-slide-2 {
  0% { transform: translateX(4%) translateY(4px); }
  50% { transform: translateX(-4%) translateY(-6px); }
  100% { transform: translateX(3%) translateY(3px); }
}

/* Spruch 3 (Rechts Mitte/unten): Zarte Wassertropfen-Kreise */
.quote-right-mid {
  top: 56%;
  right: 7%;
  text-align: left;
  animation: ripple-float-box 6.5s ease-in-out infinite;
}

@keyframes ripple-float-box {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.water-ripple-ring {
  position: absolute;
  top: var(--ry, 50%);
  left: var(--rx, 55%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.2px solid rgba(205, 240, 255, 0.55);
  box-shadow: 0 0 8px rgba(160, 225, 255, 0.2);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  animation: water-drop-expand 5.2s cubic-bezier(0.15, 0.65, 0.35, 1) infinite;
  animation-delay: var(--rdelay, 0s);
}

.quote-right-mid:hover .water-ripple-ring {
  border-color: rgba(235, 250, 255, 0.85);
  animation-duration: 3.8s;
}

@keyframes water-drop-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 0.78;
  }
  65% {
    opacity: 0.32;
  }
  100% {
    transform: translate(-50%, -50%) scale(11.5);
    opacity: 0;
  }
}

/* ==========================================================================
   UNTERSEITEN-PANEL IM BUCHSEITEN-HOCHFORMAT
   ========================================================================== */
.subpage-panel {
  position: absolute;
  top: 1.5%;
  right: 0;
  bottom: 72px;
  width: 590px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  padding: 2.9rem 2.2rem 2.9rem 4.1rem;
  border-radius: 54px 0 0 54px;
  border: none !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  color: var(--text-light);
  font-family: "Segoe UI", "Meiryo", "Yu Gothic", sans-serif;
  line-height: 1.75;
  z-index: 9;
  opacity: 0;
  transform: translateX(calc(100% - 64px));
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  user-select: text;
}

.subpage-panel.open:not(.collapsed) {
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
}

.subpage-panel.collapsed,
body:not([data-page="philosophy"]) .subpage-panel:not(.open) {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(calc(100% - 64px)) !important;
}

.subpage-panel.collapsed .subpage-header,
.subpage-panel.collapsed .subpage-body {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.subpage-panel::after {
  display: none !important;
}

.subpage-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  border: none !important;
  border-image: none !important;
  background-color: transparent !important;
  background-image: var(--paw-dark3d-frame-svg) !important;
  background-size: 100% 100% !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.88));
}

body.high-contrast .subpage-panel {
  background: rgba(0, 0, 0, 0.94) !important;
  border: 2px solid var(--gold) !important;
}

/* ==========================================================================
   GROSSER EINKLAPP-/AUFKLAPP-PFEIL IN DER MITTE LINKS (MIND. 44x66px)
   ========================================================================== */
#subpage-close,
.subpage-close,
.panel-collapse-btn,
.panel-toggle,
.panel-arrow,
.drawer-toggle,
.subpage-arrow,
.collapse-arrow {
  position: absolute !important;
  top: 50% !important;
  left: 26px !important;
  transform: translateY(-50%) !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 66px !important;
  min-height: 66px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(8, 12, 20, 0.92) !important;
  border: 2px solid var(--gold) !important;
  border-radius: 14px !important;
  color: var(--gold) !important;
  font-size: 1.65rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 20 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.9), 0 0 12px var(--gold-glow) !important;
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease !important;
  text-decoration: none !important;
}

#subpage-close:hover,
.subpage-close:hover,
.panel-collapse-btn:hover,
.panel-toggle:hover,
.panel-arrow:hover,
.drawer-toggle:hover,
.subpage-arrow:hover,
.collapse-arrow:hover {
  background: var(--gold) !important;
  color: #05070a !important;
}

.paw-border,
.paw-frame,
.paw-strip,
.paw-track {
  background: transparent !important;
  background-color: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
  border: none !important;
}

.subpage-header {
  position: static !important;
  z-index: 3;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(245, 166, 35, 0.45);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.subpage-title {
  color: var(--gold);
  font-size: calc(1.4rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 14px rgba(245, 166, 35, 0.35);
}

/* INNENBEREICH SCROLLT SAUBER HINTER DER PFÖTCHENLEISTE */
.subpage-body {
  position: relative;
  z-index: 3;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.4rem;
  padding-bottom: 0.5rem;
  font-size: calc(0.95rem * var(--font-scale));
  color: #d8dee9;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 166, 35, 0.5) transparent;
}

.subpage-body::-webkit-scrollbar {
  width: 6px;
}

.subpage-body::-webkit-scrollbar-track {
  background: transparent;
}

.subpage-body::-webkit-scrollbar-thumb {
  background: rgba(245, 166, 35, 0.45);
  border-radius: 999px;
}

.subpage-body > div,
.subpage-card,
.archive-card,
.yuki-video-card {
  background: rgba(8, 12, 20, 0.58);
  border: 1.5px solid rgba(245, 166, 35, 0.82);
  border-radius: 14px;
  padding: 1.15rem 1.3rem;
  margin-bottom: 1.05rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.48);
}

.subpage-body h2,
.subpage-body h3 {
  color: var(--gold);
  font-size: calc(1.08rem * var(--font-scale));
  margin: 0.8rem 0 0.45rem 0;
}

.subpage-body h2:first-child,
.subpage-body h3:first-child {
  margin-top: 0;
}

.paw-tab {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding: 0.5rem 0.4rem;
  font-weight: 700;
  color: var(--gold);
  scroll-margin-block: 5rem;
}

.subpage-body p {
  margin-bottom: 0.9rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.subpage-body a {
  color: var(--gold);
  text-decoration: underline;
}

.subpage-body ul {
  margin: 0.6rem 0 1rem 1.2rem;
}

.subpage-body li {
  margin-bottom: 0.45rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95);
}

.subpage-badge {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(99, 179, 237, 0.15);
  border: 1px solid rgba(99, 179, 237, 0.4);
  color: #a8c7fa;
}

/* ==========================================================================
   VIDEO-KARTEN, VORSCHAU & BARRIEREFREIES KINO-OVERLAY (LIGHTBOX)
   ========================================================================== */
.video-caption {
  font-size: calc(0.95rem * var(--font-scale));
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
}

.video-intro-text {
  font-size: calc(0.88rem * var(--font-scale));
  color: var(--text-light);
  margin-bottom: 0.65rem;
  line-height: 1.55;
}

.yuki-video-preview-wrap,
.yuki-video-landscape,
.yuki-video-portrait {
  position: relative;
  width: 100%;
  border-radius: 12px;
  border: 1.5px solid var(--gold);
  overflow: hidden !important;
  background: #05070a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.yuki-video-preview-wrap.landscape,
.yuki-video-landscape {
  aspect-ratio: 16 / 9;
  margin: 0.5rem 0;
}

.yuki-video-preview-wrap.portrait-crop,
.yuki-video-portrait {
  max-width: 275px;
  aspect-ratio: 9 / 14.5;
  margin: 0.5rem auto;
}

.yuki-video-preview-wrap video,
.yuki-video-landscape video,
.yuki-video-landscape iframe {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  background: #000;
  border: none !important;
}

/* Sauberer Crop für das 9:16 Kalligrafie-Video im Atelier */
.yuki-video-preview-wrap.portrait-crop video,
.yuki-video-portrait video,
.yuki-video-portrait iframe {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116% !important;
  height: 124% !important;
  object-fit: cover;
  border: none !important;
}

.video-actions-bar {
  display: flex;
  justify-content: center;
  margin-top: 0.65rem;
}

.video-expand-btn {
  min-height: 44px;
  padding: 0.42rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: rgba(8, 12, 20, 0.9);
  color: var(--gold);
  font-family: "Segoe UI", "Meiryo", sans-serif;
  font-size: calc(0.84rem * var(--font-scale));
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.video-expand-btn:hover {
  background: var(--gold);
  color: #05070a;
  transform: translateY(-2px);
}

/* Kino-Overlay (Lightbox für Laptop & PC) */
.yuki-video-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(3, 5, 8, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.yuki-video-lightbox.active {
  display: flex;
}

.yuki-lightbox-inner {
  position: relative;
  background: #070a10;
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 1.2rem 1.5rem 1.4rem 1.5rem;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.95), 0 0 28px var(--gold-glow);
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.yuki-lightbox-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(245, 166, 35, 0.4);
}

.yuki-lightbox-title {
  color: var(--gold);
  font-size: calc(1.08rem * var(--font-scale));
  font-weight: 700;
}

.yuki-lightbox-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: rgba(15, 20, 30, 0.95);
  color: var(--gold);
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.yuki-lightbox-close:hover {
  background: var(--gold);
  color: #05070a;
}

.yuki-lightbox-stage.portrait-crop {
  position: relative;
  height: min(74vh, 760px);
  aspect-ratio: 9 / 14.5;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 166, 35, 0.75);
  overflow: hidden;
  background: #000;
}

.yuki-lightbox-stage.portrait-crop video {
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116% !important;
  height: 124% !important;
  object-fit: cover;
}

.yuki-lightbox-stage.landscape {
  position: relative;
  width: min(80vw, 1020px);
  max-height: 74vh;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 166, 35, 0.75);
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yuki-lightbox-stage.landscape video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  background: #000;
}

.yuki-lightbox-desc {
  margin-top: 0.7rem;
  color: var(--text-light);
  font-size: calc(0.9rem * var(--font-scale));
  max-width: 68ch;
  text-align: center;
}

/* ================= FOOTER MIT PRÜFSIEGEL (82px) RECHTS ================= */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 3rem;
  background: transparent;
  font-family: "Segoe UI", "Meiryo", sans-serif;
  font-size: calc(0.78rem * var(--font-scale));
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  transition: color 0.2s ease;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links a.active {
  color: var(--gold);
}

.seal-divider {
  width: 1px;
  height: 44px;
  background: var(--nav-border);
}

.seal-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.seal-link:hover,
.seal-link:focus-visible {
  transform: translateY(-3px) scale(1.06);
  filter: drop-shadow(0 0 14px var(--gold-glow));
  outline: none;
}

.seal-img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: contain;
  border: 2px solid var(--gold);
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.9);
}

/* ================= RESPONSIVE & BETRIEBSSYSTEM-SIGNALE ================= */
@media (max-width: 1280px) {
  .top-bar {
    padding: 0.9rem 1.8rem;
  }
  .main-nav {
    gap: 1.15rem;
  }
  .brand-group { left: 2.5%; }
  .snowflake-img {
    width: 205px;
    height: 205px;
  }
  .brand-title {
    font-size: 2.35rem;
  }
  .quote-left { left: 6%; }
  .quote-right-top { right: 5%; }
  .quote-right-mid { right: 5%; }
  .seal-img {
    width: 68px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .snowflake-img,
  .quote-left,
  .quote-right-top,
  .quote-right-mid,
  .water-bubble,
  .wave-path-1,
  .wave-path-2,
  .wave-path-3,
  .water-ripple-ring {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-contrast: more) {
  .quote-box {
    background: rgba(0, 0, 0, 0.92);
    border: 2px solid var(--gold);
    color: #ffffff;
  }
}

/* ==========================================================================
   HAMBURGER-MENÜ & TABLET-HOCHFORMAT (iPAD PORTRAIT)
   ========================================================================== */

/* Hamburger-Button auf großen Desktop-Bildschirmen ausgeblendet */
.yuki-hamburger {
  display: none;
  align-items: center;
  gap: 0.45rem;
  background: rgba(10, 14, 20, 0.85);
  color: var(--gold);
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  min-height: 44px;
  font-family: "Segoe UI", "Meiryo", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.yuki-hamburger:hover,
.yuki-hamburger:focus-visible,
.yuki-hamburger[aria-expanded="true"] {
  background: var(--gold);
  color: #05070a;
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   TABLET HOCHFORMAT (iPAD PORTRAIT) & SCHMALE BILDSCHIRME (bis 1100px)
   ========================================================================== */
@media (max-width: 1100px), (orientation: portrait) {
  .top-bar {
    padding: 0.75rem 1.2rem !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: 0.6rem !important;
  }

  .controls-left {
    gap: 0.55rem !important;
    flex-wrap: nowrap !important;
  }

  .a11y-bar {
    padding: 0.2rem 0.65rem !important;
    gap: 0.3rem !important;
  }

  /* Sprach-Dropdown bleibt oben 78px schmal und klappt vertikal nach unten auf */
  .lang-switcher {
    width: 78px !important;
    height: 44px !important;
    padding: 0 !important;
  }

  /* Hamburger-Button sitzt sauber rechts im Bild ohne herauszurutschen */
  .yuki-hamburger {
    display: inline-flex !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  /* Hauptnavigation als edles Dropdown-Menü unter der Kopfleiste */
  .main-nav {
    display: none !important;
    position: absolute;
    top: calc(100% + 4px);
    right: 1.2rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem !important;
    min-width: 230px;
    padding: 0.85rem 1.1rem;
    background: rgba(6, 9, 15, 0.96);
    border: 1.5px solid var(--gold);
    border-radius: 18px;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.95), 0 0 18px var(--gold-glow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99;
  }

  .main-nav.nav-open {
    display: flex !important;
  }

  .main-nav a {
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-size: calc(0.95rem * var(--font-scale));
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  /* Schneeflocke & Titel im Hochformat oben links */
  .brand-group {
    top: 2% !important;
    left: 3% !important;
    align-items: center !important;
  }

  .snowflake-img {
    width: 145px !important;
    height: 145px !important;
  }

  .brand-title {
    font-size: calc(2.15rem * var(--font-scale)) !important;
    margin-top: 0 !important;
  }

  /* CONTAINER FÜR DIE 3 SPRÜCHE (NUR WENN NICHT .hidden!) */
  #quotes-container:not(.hidden) {
    position: absolute !important;
    top: 46% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 82% !important;
    max-width: 460px !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.15rem !important;
  }

  #quotes-container.hidden {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* Jeder Spruch im Hochformat: dunkle Tinte (#121824) + heller Schein auf Yukis Fell */
  .quote-box,
  .quote-left,
  .quote-right-top,
  .quote-right-mid {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    color: #121824 !important;
    font-weight: 700 !important;
    font-size: calc(1.02rem * var(--font-scale)) !important;
    line-height: 1.55 !important;
    padding: 0.55rem 1rem !important;
    border-radius: 14px !important;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.35) 70%, transparent 100%) !important;
    text-shadow:
      0 0 8px rgba(255, 255, 255, 1),
      0 0 16px rgba(255, 255, 255, 0.95),
      0 1px 2px rgba(255, 255, 255, 0.9) !important;
  }

  body.high-contrast .quote-box,
  body.high-contrast .quote-left,
  body.high-contrast .quote-right-top,
  body.high-contrast .quote-right-mid {
    background: rgba(0, 0, 0, 0.92) !important;
    color: #ffffff !important;
    border: 2px solid var(--gold) !important;
    text-shadow: none !important;
  }

  .bottom-bar {
    padding: 0.65rem 1.2rem !important;
  }

  .seal-img {
    width: 62px !important;
    height: 62px !important;
  }
}
/* === FIX PFÖTCHENSCHUBLADE FOKUS & TASTATUR === */
.subpage-panel:not(.open) {
  visibility: hidden !important;
}

.subpage-panel.collapsed .subpage-header,
.subpage-panel.collapsed .subpage-body {
  visibility: hidden !important;
}

.subpage-body:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: -2px !important;
  border-radius: 12px;
}

.paw-tab:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: -2px !important;
  border-radius: 8px;
}
/* === FIX PFÖTCHENSCHUBLADE FOKUS, TASTATUR & GESCHLOSSENE KLAPPEN === */
.subpage-panel:not(.open) {
  visibility: hidden !important;
}

.subpage-panel.collapsed .subpage-header,
.subpage-panel.collapsed .subpage-body {
  visibility: hidden !important;
}

details.paw-drawer:not([open]) > :not(summary),
details.paw-drawer:not([open]) .paw-content {
  display: none !important;
}

.subpage-body:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: -2px !important;
  border-radius: 12px;
}

.paw-tab:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: -2px !important;
  border-radius: 8px;
}
/* === FIX PFÖTCHENSCHUBLADE FOKUS & TASTATUR === */
.subpage-panel:not(.open) {
  visibility: hidden !important;
}

.subpage-panel.collapsed .subpage-header,
.subpage-panel.collapsed .subpage-body {
  visibility: hidden !important;
}

.subpage-body:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: -2px !important;
  border-radius: 12px;
}

.paw-tab:focus-visible {
  outline: 2px solid var(--gold) !important;
  outline-offset: -2px !important;
  border-radius: 8px;
}