/* =========================================
   Herz Rhythmus Maschine – main.css
   Properties:
   - Deterministic breakpoints ONLY:
       Ultra-wide: (min-width: 2561px)
       Desktop:     (min-width: 1025px) and (max-width: 2560px)
       Tablet:      (min-width: 641px) and (max-width: 1024px)
       Mobile:      (max-width: 640px)
   - Nonconforming / legacy Breakpoints werden NICHT gelöscht, sondern an Ort und Stelle in Kommentaren isoliert.
   - Any rules that were duplicated, overridden accidentally, or were "salad" edits
     are preserved but isolated in comments at the original spot.
   ========================================= */

/* =========================================================
   INHALTSVERZEICHNIS
   =========================================================
   1.  Globals / Resets / Variables
   2.  Layout Grid (Section / Header / Main / Footer)
   3.  Foto-Hintergrund & Gradient (Textseiten)
   4.  Header: Logo / Menu / Info-Box
   5.  Textseiten – Main Content / Typo
   6.  Footer
   7.  Media-Sections – Ankerposition unter Header
   8.  Home-Video-Hintergrund (index.php)
   9.  Video-Seite (videos.php – HRM-Player)
   10. Fotos-Seite (fotos.php – Slider & Lightbox)
   11. Media-Fotos (media.php)
   12. Musik-Seite (musik.php – Audio Player)
   13. Kontakt-Formular (kontakt.php)
   14. Accessibility & Misc (base)
   15. Breakpoints (Desktop / Ultra-wide / Tablet / Mobile)
   16. Accessibility + Responsive Hardening (End-of-file Patch)
   ========================================================= */


/* =========================================================
   1. GLOBALS / RESETS / VARIABLES
   ========================================================= */

:root {
  --menu-h3: clamp(14px, 1.2vw, 30px);
  --menu-p: clamp(9px, 1.0vw, 15px);
  --font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
               "Liberation Mono", "Courier New", monospace;

  --black-85: #262626;
  --black-80: #333333;
  --black-75: #3F3F3F;
  --black-60: #666666;

  /* Ab hier Musik-Player-Einstellungen */
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #000000;
  --muted: #6b7280;
  --line: #000000;

  --wave: #000000;     /* ungepielter Teil */
  --progress: #ffbb00; /* SoundCloud-Orange */
  --cursor: #000000;   /* helleres Orange */
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  box-sizing: border-box;
}

/* Startseite ohne Scroll (Vollbild-Video) */
body.home { overflow-y: hidden; }

/* Scroll-Anker deaktivieren */
html { overflow-anchor: none; }

/* Box-Sizing global */
*,
*::before,
*::after { box-sizing: inherit; }

a,
button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
}

/* =========================================================
   2. LAYOUT GRID (SECTION / HEADER / MAIN / FOOTER)
   ========================================================= */

/* Base (applies to all breakpoints; specific sizes in breakpoint blocks) */
.layout {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 100%;
}

.site-header { grid-row: 1; }
.layout-main { grid-row: 2; align-self: start; }
.site-footer { grid-row: 3; }

/* =========================================================
   3. FOTO-HINTERGRUND & GRADIENT (Textseiten)
   ========================================================= */

body.home .photo-gradient { display: none !important; }

.photo-bg {
  position: fixed;
  inset: 0;
  z-index: -10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.54s ease;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.photo-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh * 2.7778 / 9);
  background: linear-gradient(to bottom, rgba(255,255,255,1), rgba(255,255,255,0));
  z-index: 20;
  pointer-events: none;
}

body.photo-visible .photo-bg { opacity: 1; }

/* =========================================================
   4. HEADER: LOGO / MENU / INFO-BOX
   ========================================================= */

/* --- Logo (base) --- */
.logo {
  position: absolute;
  width: 11.111vw;
  height: auto;
  left: 8.333vw;
  top: 3.704vh;
  z-index: 20;
}

/* Weiß/Schwarz-Wechsel */
.logo.white { display: block; }
.logo.black { display: none; }
body.on-white .logo.white { display: none; }
body.on-white .logo.black { display: block; }

/* --- Header container --- */
.site-header {
  position: relative;
  width: 100%;
  height: 100%;
}

/* --- Menü-Bar (base) --- */
.menu-bar {
  position: absolute;
  top: 5.556vh;
  left: 50%;
  transform: translateX(-50%);
  width: 44.444vw;
  height: 11.111vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  z-index: 21;
  background: transparent;
}

.menu-left,
.menu-right {
  display: flex;
  gap: 1.5rem;
}

.menu-left {
  /* font-size: var(--menu-h3); */
  font-size: clamp(16px, 2.1vw, 31px);
  text-transform: uppercase;
  font-weight: 700;
}

.menu-right {
  /* font-size: var(--menu-p); */
  font-size: clamp(15px, 1.4vw, 21px);
  font-weight: 400;
}

.menu-bar a {
  text-decoration: none;
  color: inherit;
}

.menu-bar a:hover,
.menu-bar a.active {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* Farblogik Menü */
.menu-bar a,
.menu-right span {
  color: #fff;
  transition: color 0.3s ease;
}
body.on-white .menu-bar a,
body.on-white .menu-right span { color: #000; }

/* --- Info-Box (base) --- */
.info-box {
  z-index: 22;
  pointer-events: none;
}
.info-box * { pointer-events: auto; }

/* Overlay (Burger-Menü/Lightbox): Info-Box ausblenden */
body.overlay-open .info-box { display: none !important; }


.info-box hr {
  border: none;
  border-top: 2px solid currentColor;
  margin: 0 0 10px 0;
  opacity: 0.95;
  transition: border-color 0.45s ease, opacity 0.45s ease;
}

.info-box h3 {
  margin: 0;
  padding-right: 5.556%;
  /* font-size: var(--menu-h3);
  font-size: clamp(16px, 2.2vw, 30px);*/
  font-size: clamp(16px, 2.1vw, 31px);
  text-transform: uppercase;
  font-weight: 700;
  transition: color 0.45s ease, text-shadow 0.45s ease;
}

.info-box p {
  margin: 10px 0 0;
  padding-right: 5.55%;
  font-size: clamp(14px, calc(14px + (19.2 - 14) * ((100vw - 640px) / (2560 - 640))), 19.2px);
  line-height: clamp(1.32, calc(1.32 + (1.4 - 1.32) * ((100vw - 640px) / (2560 - 640))), 1.4);
  font-weight: 400;
  font-family: var(--font-mono);
  transition: color 0.45s ease, text-shadow 0.45s ease;
}

/* Info-Box Farbverhalten */
body:not(.on-white) .info-box { color: #fff; }
body.on-white .info-box { color: #000; }

body:not(.on-white) .info-box h3,
body:not(.on-white) .info-box p {
  text-shadow: 0 0 0.5px rgba(0, 0, 0, 0.28);
}
body.on-white .info-box h3,
body.on-white .info-box p { text-shadow: none; }

body:not(.on-white) .info-box hr {
  border-top: 2px solid white;
  transition: border-color 0.6s ease;
}
body.on-white .info-box hr {
  border-top: 2px solid black;
  transition: border-color 0.6s ease;
}

/* --- Mobile Burger toggles (base; displayed in Mobile breakpoint) --- */
.menu-toggle { display: none; }

/* =========================================================
   5. TEXTSEITEN – MAIN CONTENT / TYPO
   ========================================================= */

body.page {
  overflow-y: auto;
  background: #fff;
  color: #000;
}

/* Monotype-Farb- und Gewichtsklassen (JS in textpage.js) */
.c-black-85 { color: var(--black-85) !important; }
.c-black-80 { color: var(--black-80) !important; }
.c-black-75 { color: var(--black-75) !important; }

.w-400 { font-weight: 400; }
.w-500 { font-weight: 500; }
.w-700 { font-weight: 700; }
.w-800 { font-weight: 800; }

/* Monotype: vertikale Position */
.t-5  { position: relative; top: 0.5px; }
.t0   { position: relative; top: 0; }
.t-05 { position: relative; top: -0.5px; }

/* Monotype: Rotation */
.r1    { display: inline-block; transform: rotate(1deg); }
.r05   { display: inline-block; transform: rotate(0.5deg); }
.r0    { display: inline-block; transform: rotate(0deg); }
.r-05  { display: inline-block; transform: rotate(-0.5deg); }
.r-1   { display: inline-block; transform: rotate(-1deg); }

/* Weißpalette für dunkle Hintergründe (z.B. Startseite) */
body:not(.on-white) .info-box .c-black-85 { color: rgba(255,255,255,1.00) !important; }
body:not(.on-white) .info-box .c-black-80 { color: rgba(255,255,255,0.975) !important; }
body:not(.on-white) .info-box .c-black-75 { color: rgba(255,255,255,0.95) !important; }

/* Main container */
.main-content { font-family: var(--font-mono); }

.main-content p {
  font-family: var(--font-mono);
  margin: 0 0 0.75rem 0;
}

.main-content p.p-alt {
  font-size: 1.2rem;
  line-height: 1.4;
}

/* Headings */
.main-content h1,
.main-content h2,
.main-content h3,
.main-content h4 {
  font-family: var(--font-family);
  line-height: 1.2;
}

.main-content h1 {
  font-size: 2.0rem;
  margin-top: 0;
  margin-bottom: 2.0rem;
  font-weight: 700;
}

.main-content h2 {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.2rem;
  margin-top: 2.4rem;
  margin-bottom: 0rem;
}

.main-content h4 {
  font-size: 1.6rem;
  margin-top: 1.0rem;
  margin-bottom: 2.0rem;
  font-weight: 700;
}

/* Monotype block */
.monotype {
  text-align: left;
  line-height: 2.1;
  padding-bottom: 1.05rem;
  z-index: 1;
}

.monotype .word {
  white-space: nowrap;
  display: inline-block;
}

.monotype b { text-decoration: none; }

.monotype a {
  display: inline;
  min-height: 0;
  align-items: baseline;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.monotype a span { text-decoration: inherit; }

.monotype-effect { /* hook only */ }

.monotype br,
.monotype-effect br {
  display: inline;
  margin: 0;
  padding: 0;
}

.monotype-effect a span { text-decoration: inherit; }
.monotype-effect .word {
  white-space: nowrap;
  display: inline-block;
}

.main-content .monotype-effect {
/*  font-size: 1.2rem; 
  line-height: 1.4;*/
  font-size: clamp(14px, calc(14px + (19.2 - 14) * ((100vw - 640px) / (2560 - 640))), 19.2px);
  line-height: clamp(1.32, calc(1.32 + (1.4 - 1.32) * ((100vw - 640px) / (2560 - 640))), 1.4);
  font-weight: 400;
  font-family: var(--font-mono);
  transition: color 0.45s ease, text-shadow 0.45s ease;
}

/* Links in allen Main-Textbereichen */
.main-content a {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  color: inherit !important;
  transition: text-decoration-color 0.2s ease;
}

.main-content a:hover,
.main-content a:active,
.main-content a:visited {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
  color: inherit !important;
}

/* Speziell: Links im Monotype-Effect – feiner (kein Hover-Dickerwerden) */
.main-content .monotype-effect a,
.main-content .monotype-effect a:hover,
.main-content .monotype-effect a:active,
.main-content .monotype-effect a:visited {
  display: inline;
  min-height: 0;
  align-items: baseline;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* falls du Monotype-Effect-Links auch in der Info-Box nutzt */
.info-box .monotype-effect a,
.info-box .monotype-effect a:hover,
.info-box .monotype-effect a:active,
.info-box .monotype-effect a:visited {
  display: inline;
  min-height: 0;
  align-items: baseline;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.main-content b { font-weight: 700; }

/* =========================================================
   6. FOOTER
   ========================================================= */

.site-footer {
  border-top: 0px solid #000;
/*  font-size: 0.9rem; */
 font-size: clamp(15px, 1.4vw, 21px);
  display: flex;
  align-items: center;
  color: #000;
  margin: 0;
  padding: 0;
}

.site-footer-inner {
  font-size: var(--menu-p);
  font-family: var(--font-family);
  font-weight: 400;
  border-top: 2px solid #000;
  padding-top: 0;
  max-width: 44.4%;
  margin: 0 auto 3rem; /* overridden on Desktop and in Tablet/Mobile blocks */
}

.footer-left,
.footer-right { flex: 1 1 50%; }

.footer-right { text-align: right; }

.footer-right a {
  text-transform: uppercase;
  text-decoration: none;
  color: inherit;
}

.footer-right a:hover,
.footer-right a.active,
.footer-right a:focus {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* =========================================================
   7. MEDIA-SECTIONS – ANKERPOSITION UNTER HEADER
   ========================================================= */

.media-section1 { scroll-margin-top: 27.778vh; }

.media-section {
  scroll-margin-top: 27.778vh;
  border-top: 2px solid #ffbb00;
  margin-top: 3rem;
}

.download-actions {
  display: flex;
  justify-content: flex-end;
}

.main-content a.download-submit,
.download-submit {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--menu-p);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 1.5rem;
  border: 2px solid #000;
  background: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-decoration-thickness: 0;
  text-underline-offset: 0;
  color: #000;
}

.main-content a.download-submit:hover,
.main-content a.download-submit:focus,
.main-content a.download-submit:active,
.download-submit:hover,
.download-submit:focus,
.download-submit:active {
  text-decoration: none;
  text-decoration-thickness: 0;
  text-underline-offset: 0;
  background: #ffbb00;
  opacity: 0.75;
}

/* =========================================================
   8. HOME-VIDEO-HINTERGRUND (index.php)
   ========================================================= */

.video-main {
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  scroll-snap-align: start;
  min-height: 100vh;
  contain: layout style;
}

.video-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.video-container.is-image {
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.video-container.is-image video { display: none; }

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 27.778vh;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  z-index: 2;
}

/* =========================================================
   9. VIDEO-SEITE (videos.php – HRM-Player)
   ========================================================= */

.hrm-video-player {
  position: absolute;
  top: 27.778vh;
  left: 50%;
  transform: translateX(-50%);
  width: 44.44vw;
  max-width: 44.44vw;
  font-family: var(--font-mono);
  color: #000;

  background: #ffffff;
  box-shadow: 6px 12px 24px rgba(0, 0, 0, 0.24);
  z-index: 25;
}

/* Burger-Overlay: Video unter dem transparenten Menü-Backdrop halten (videos.php) */
body.overlay-open .hrm-video-player {
  z-index: 1;
  pointer-events: none; /* verhindert Klicks auf Player hinter Overlay */
}


.hrm-video-frame {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.hrm-video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.hrm-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.hrm-video-controls {
  padding: 1rem 1.2em 1rem;
  margin: 0;
  box-sizing: border-box;
  background: white;
  font-size: 0.95rem;
  color: var(--muted);
  /* height: 8.333vh; */ /* isolated: fixed height caused overflow at 1025px */
  min-height: 8.333vh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hrm-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.hrm-time {
  font-size: 0.95rem;
  color: var(--muted);
  white-space: nowrap;
}

.hrm-progress {
  flex: 1;
  min-width: 0;
  appearance: none;
  height: 2px;
  background: #ffbb00;
}

.hrm-progress::-webkit-slider-thumb {
  appearance: none;
  width: 3px;
  height: 24px;
  background: #000;
  border: none;
  cursor: pointer;
}

.hrm-progress::-moz-range-thumb {
  width: 3px;
  height: 24px;
  background: #000;
  border: none;
  cursor: pointer;
}

.hrm-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.hrm-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.hrm-btn:hover { opacity: 0.6; }

.hrm-playpause .hrm-pause-icon { display: none; }
.hrm-playing .hrm-play-icon { display: none; }
.hrm-playing .hrm-pause-icon { display: inline; }

.hrm-playpause img,
.hrm-mute-icon {
  width: 24px;
  height: 24px;
  display: block;
}

.hrm-fullscreen-icon {
  width: 48px;
  height: 48px;
  display: block;
}

.hrm-volume-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hrm-mute {
  background: transparent;
  border: none;
  padding: 4px;
  border-radius: 999px;
}

.hrm-volume {
  /* width: 180px; */ /* isolated: previous volume slider width */
  width: 120px; /* reduced by 1/3 */
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.hrm-volume::-webkit-slider-runnable-track {
  height: 2px;
  background: #000000;
  border-radius: 999px;
}

.hrm-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffbb00;
  border: none;
  margin-top: -9px;
  cursor: pointer;
}

.hrm-volume::-moz-range-track {
  height: 2px;
  background: #000000;
  border-radius: 999px;
}

.hrm-volume::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffbb00;
  border: none;
  cursor: pointer;
}

.hrm-video-error {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #b00020;
}

/* Fullscreen variants */
.hrm-video-player:fullscreen .hrm-video-frame,
.hrm-video-player:-webkit-full-screen .hrm-video-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.hrm-video-player:fullscreen .hrm-video,
.hrm-video-player:-webkit-full-screen .hrm-video {
  object-fit: contain;
  background: #000;
}

.hrm-video-player:fullscreen .hrm-video-controls,
.hrm-video-player:-webkit-full-screen .hrm-video-controls {
  position: absolute;
  left: 50%;
  bottom: 21px;
  height: 3.703vh;
  transform: translateX(-50%);
  width: min(80vw, 900px);
  background: black;
  opacity: 0.21;
  z-index: 27;
}

.hrm-video-player:fullscreen .hrm-progress,
.hrm-video-player:-webkit-full-screen .hrm-progress { background: white; }

.hrm-video-player:fullscreen .hrm-time,
.hrm-video-player:-webkit-full-screen .hrm-time { color: white; }

.hrm-video-player:fullscreen .hrm-progress::-webkit-slider-thumb { background: white; }
.hrm-video-player:fullscreen .hrm-progress::-moz-range-thumb { background: white; }

.hrm-video-player:fullscreen .hrm-controls-row { display: none; }

.hrm-video-player:fullscreen .hrm-btn,
.hrm-video-player:fullscreen .hrm-volume-group { display: none; }

:fullscreen,
:-webkit-full-screen { overflow: hidden; }

.hrm-video-player:fullscreen,
.hrm-video-player:-webkit-full-screen { overflow: hidden; }

.hrm-fs-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 63px;
  height: 63px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  display: none;
  z-index: 10001;
}

.hrm-fs-close::before,
.hrm-fs-close::after {
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width: 63px;
  height: 2px;
  background: white;
  transform-origin:center;
}

.hrm-fs-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.hrm-fs-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }

.hrm-video-player:fullscreen .hrm-fs-close,
.hrm-video-player:-webkit-full-screen .hrm-fs-close { display: block; }

/* =========================================================
   10. FOTOS-SEITE (fotos.php – Slider & Lightbox)
   ========================================================= */

.slider-column {
  flex: 0 0 calc(100vw / 9);
  padding: 0 9px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.slider-image {
  width: 100%;
  overflow: hidden;
  box-shadow: 6px 12px 24px rgba(0, 0, 0, 0.24);
}

.slider-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s ease;
  will-change: transform;
}

.slider-image:hover img { transform: scale(1.21); }

.slider-wrapper {
  position: absolute;
  top: 27.778vh;
  left: 0;
  width: 100vw;
  height: 62.345vh;
  overflow: hidden;
  z-index: 6;
}

.slider-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(255,255,255,0.90);
  pointer-events: auto;
}

.lightbox-overlay.open { display: block; }

.lightbox-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox-frame {
  position: relative;
  width: 55.555vw;
  height: 88.888vh;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-frame img {
  position: relative;
  max-width: 55.555vw;
  max-height: 88.888vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.lightbox-indicator {
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 10000;
  position: absolute;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);

  /* Button-Reset: verhindert Default-Button-UI (Safari/Chrome) */
  border: none;
  background: transparent;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  line-height: 0;
}

/* Anklickfläche: 4px größer als das Symbol (ohne visuelle Größenänderung) */
.lightbox-indicator::before {
  content: "";
  position: absolute;
  inset: -4px;
  pointer-events: none;
}

.lightbox-indicator.left {
  left: 16.667vw;
  border-left: 3px solid #000;
  border-bottom: 3px solid #000;
}

.lightbox-indicator.right {
  right: 16.667vw;
  border-right: 3px solid #000;
  border-top: 3px solid #000;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
  cursor: pointer;
  z-index: 10001;

  /* Button-Reset: verhindert Default-Button-UI + Fokus-Rahmen */
  border: none;
  background: transparent;
  /* Anklickfläche: 4px größer als das Symbol */
  padding: 4px;
  box-sizing: content-box;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
  line-height: 0;
}

/* Entfernt das "abgerundete Quadrat" (Focus-Outline), das beim initialen Fokus per JS sichtbar war */
.lightbox-close:focus,
.lightbox-close:focus-visible {
  outline: none;
  box-shadow: none;
}

/* Firefox: inneren Fokus-Rand entfernen */
.lightbox-close::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.lightbox-close::before,
.lightbox-close::after {
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width: 42px;
  height: 3px;
  background:#000;
  transform-origin:center;
}
.lightbox-close::before { transform: translate(-50%,-50%) rotate(45deg); }
.lightbox-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }

.lightbox-image,
.lightbox-image.is-fading {
  opacity: 1 !important;
  transition: none !important;
}

/* =========================================================
   11. MEDIA-FOTOS (media.php)
   ========================================================= */

.media-photo-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.media-photo-column {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.media-lightbox-actions {
  margin-top: 1rem;
  text-align: left;
}

.media-download-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  color: inherit;
}

.media-download-link:hover { opacity: 0.8; }
.media-download-icon { display: inline-block; }

/* =========================================================
   12. MUSIK-SEITE (musik.php – Audio Player)
   ========================================================= */

.audio-player {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: white;
  border: none;
  min-height: 5.556vw;
  padding-top: 0.5rem;

  /* Overridden while editing (kept, isolated) */
    padding-right: 3rem;
  padding-left: 1.8rem;
  margin-bottom: 2.4rem;
  box-shadow: 6px 12px 24px rgba(0, 0, 0, 0.24);
}

.play-button {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: white;
  cursor: pointer;
  margin-top: 3.241%;
}

.play-button-icon {
  width: 26px;
  height: 26px;
}

.player-body {
  flex: 1;
  min-width: 0;
}

.player-body p {
  font-family: var(--font-family);
  line-height: 1.2;
}

.songtitle {
  font-weight: 400;
  font-size: 1.2rem;
  margin-top: 0rem;
  margin-bottom: 0rem;
}

.waveform {
  width: 100%;
  height: 60px;
  margin: 0 0 0 0.75rem;
  position: relative;
  cursor: pointer;
}

.waveform .hover {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  pointer-events: none;
  height: 60px;
  width: 0;
  mix-blend-mode: overlay;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.waveform:hover .hover { opacity: 1; }

.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.volume {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mute-button {
  background: #ffffff;
  border: none;
  padding: 4px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mute-button:focus {
  outline: none;
  box-shadow: none;
}

.mute-icon {
  width: 26px;
  height: 26px;
  display: block;
}

.volume-slider {
  width: 180px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  padding: 0;
  margin: 0;
}

.volume-slider::-webkit-slider-runnable-track {
  height: 2px;
  background: #000000;
  border-radius: 999px;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffbb00;
  border: none;
  margin-top: -9px;
  cursor: pointer;
}

.volume-slider::-moz-range-track {
  height: 2px;
  background: #000000;
  border-radius: 999px;
}

.volume-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffbb00;
  border: none;
  cursor: pointer;
}

.timecode {
  min-width: 120px;
  text-align: right;
}

/* =========================================================
   13. KONTAKT-FORMULAR (kontakt.php)
   ========================================================= */

.contact-form-wrapper {
  margin-top: 1.8rem;
  margin-bottom: 2.7rem;
  padding-top: 1.5rem;
  padding-left: 2.7rem;
  padding-right: 2.7rem;
  padding-bottom: 2.7rem;
  background: #ffffff;
  box-shadow: 6px 12px 24px rgba(0, 0, 0, 0.24);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form .contact-label,
.contact-form .privacy-label,
.contact-form .contact-note,
.contact-form .contact-actions {
  margin: 0;
}

.contact-form .contact-label,
.contact-form .privacy-label,
.contact-form .contact-note {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: var(--menu-p);
}

.contact-form .label-text {
  display: inline-block;
  margin-bottom: 0.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.45rem 0.9rem;
  border: 1px solid #000;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
}

.contact-form .privacy-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.4;
}

.contact-form .privacy-label input[type="checkbox"] {
  transform: scale(1.5);
  transform-origin: center;
  margin: 0;
  cursor: pointer;
}

.contact-form .asterisk {
  color: #e0a600;
  font-size: 1.5em;
}

.contact-actions {
  display: flex;
  justify-content: flex-end;
}

.contact-submit {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: var(--menu-p);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.15rem 1.5rem;
  border: 2px solid #000;
  background: #fff;
  cursor: pointer;
}

.contact-submit:hover {
  background: #ffbb00;
  opacity: 0.75;
}

/* Vertical spacing rules */
.contact-form .contact-label + .contact-label { margin-top: 1rem; }
.contact-form .contact-label + .privacy-label { margin-top: 1rem; }
.contact-form .privacy-label + .contact-note { margin-top: 0.5rem; }
.contact-form .contact-note + .contact-actions { margin-top: -2.4rem; }

/* =========================================================
   14. ACCESSIBILITY & MISC (base)
   ========================================================= */

/* =============== Scroll-Indikator (up) ===============
   Inline am Ende von <main> (zentriert)
   Hinweis: Die Farblogik folgt body.on-white / not(.on-white)
   ===================================================== */

.scroll-indicator {
  width: 24px;
  height: 24px;
/* Reset für <button>: verhindert min-height/inline-flex-Defaults aus `a, button { ... }` */
min-width: 24px;
min-height: 24px;
padding: 0;
background: transparent;
border: 0;
appearance: none;
-webkit-appearance: none;
line-height: 0;
  border-width: 2px;
  cursor: pointer;
  font-weight: 700;
  z-index: 15;
  pointer-events: auto;
  position: relative;
  display: block;
  touch-action: manipulation;
}

/* Larger hit area (keeps the visual size unchanged) */
.scroll-indicator::before{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  /* Anklickfläche: 4px größer als das Symbol (je Seite +4px) */
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  transform: translate(-50%, -50%);
}

/* Up: centered at end of main (in normal flow) */
.scroll-indicator.up{
  margin: 1.25rem auto 0;
  transform: rotate(45deg);
  animation: bounceUp 2s infinite ease-in-out;
}

/* Color switching (like legacy) */
body:not(.on-white) .scroll-indicator.up{
  border-top: 2px solid white;
  border-left: 2px solid white;
}
body.on-white .scroll-indicator.up{
  border-top: 2px solid black;
  border-left: 2px solid black;
}

/* Keyboard focus */
.scroll-indicator:focus-visible{
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  .scroll-indicator{
    animation: none;
  }
}

@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(45deg); opacity: 0.3; }
  50%      { transform: translateX(-50%) translateY(6px) rotate(45deg); opacity: 1; }
}
@keyframes bounceUp {
  0%, 100% { transform: translateY(0) rotate(45deg); opacity: 0.3; }
  50%      { transform: translateY(-6px) rotate(45deg); opacity: 1; }
}

/* =========================================================
   15. BREAKPOINTS (ONLY these three)
   ========================================================= */

/* -------------------------
   Desktop (min-width: 1025px)
   ------------------------- */
@media (min-width: 1025px) and (max-width: 2560px) {
  /* Grid */
  .layout {
    grid-template-rows:
      minmax(27.778vh, auto)
      minmax(63.889vh, auto)
      8.333vh;
  }

  .layout--home {
    grid-template-rows:
      27.778vh
      minmax(72.222vh, auto);
  }

  .layout--page .layout-main {
    /* width: 44.444vw; */     /* isolated: replaced by fluid width (55.556%@1025 -> 44.444%@2560) */
    /* max-width: 44.444vw; */ /* isolated: replaced by fluid width (55.556%@1025 -> 44.444%@2560) */
    width: clamp(569.44px, calc(189.58px + 37.01vw), 1137.78px);
    max-width: 1137.78px;
    margin: 0 auto;
    /* min-height: 61.111vh; */ /* isolated: replaced per briefing (63.889% screen height) */
    min-height: 63.889vh;
  }

  .layout--home .layout-main--home {
    width: 100vw;
    max-width: 100vw;
    min-height: 72.222vh;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 27.778vh;
    height: 27.778vh;
    z-index: 30;
  }

  /* Pages: header must be able to grow; main starts at 27.778vh OR below header if it expands */
  .layout--page .site-header {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 27.778vh;
  }

/* Logo: top aligned (fluid via vw/vh percentages) */
  .logo {
    top: 3.704vh;
    bottom: auto;
    left: clamp(56.95px, calc(-47.47px + 10.187vw), 213.32px);
    width: 11.111vw;
    height: auto; /* keep aspect ratio */
}

/* Menu-Bar (Desktop 1025px – 2560px): fluid width from 55.555vw@1025 to 44.444vw@2560 */
  .menu-bar {
    top: clamp(4.167vh, calc(4.167vh + 1.389vh * ((100vw - 1025px) / 1535)), 5.556vh);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: clamp(569.44px, calc(189.58px + 37.01vw), 1137.78px);
    max-width: 1137.78px;
    height: auto;
    /* height: auto; */ /* redundant duplicate (isolated, preserved) */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.4167vh;
    padding: 0;
}

  /* Desktop: normalize menu text box metrics for pixel-perfect top alignment */
  .menu-left,
  .menu-right{
    margin: 0;
    padding: 0;
    line-height: 1;
    align-items: baseline;
  }
  
    .menu-right{
	padding-top: clamp(9px, 0.9vw, 18px);
  }
  
  .menu-bar a{
    display: inline-block;
    line-height: 1;
    padding: 0;
    margin: 0;
  }

  .info-box {
    position: absolute;
    top: 5.556vh;
    /* left: clamp(825.69px, calc(47.60px + 75.91vw), 1991.11px); */ /* isolated: previous horizontal position */
    left: clamp(811.46px, calc(23.75px + 76.85vw), 1991.11px);
    right: auto;
    /* width: clamp(199.31px, calc(-47.41px + 24.07vw), 568.89px); */ /* isolated: previous fluid (approx 19.444%@1025 -> 22.222%@2560) */
    width: clamp(213.54px, calc(-23.75px + 23.15vw), 568.89px);
    height: auto;
}

  /* Main content sizing (desktop) */
  .layout--page .layout-main.main-content {
    /* width: 44.444vw; */     /* isolated: replaced by fluid width (55.556%@1025 -> 44.444%@2560) */
    /* max-width: 44.444vw; */ /* isolated: replaced by fluid width (55.556%@1025 -> 44.444%@2560) */
    width: clamp(569.44px, calc(189.58px + 37.01vw), 1137.78px);
    max-width: 1137.78px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.35rem, calc(1.35rem + (1.46 - 1.35) * ((100vw - 1025px) / 1535)), 1.46rem);
    line-height: clamp(1.45, calc(1.45 + (1.55 - 1.45) * ((100vw - 1025px) / 1535)), 1.55);
    position: relative;
  }

/* nur Monotype-Absätze (HRM) – NICHT die gesamte main-content Basis */
.layout--page .layout-main.main-content p.monotype {
    font-size: clamp(18px, 1.56vw, 23px);
/*    line-height: clamp(1.45, calc(1.45 + (1.55 - 1.45) * ((100vw - 1025px) / 1535)), 1.55);*/
}


  /* Typography inside <main> (Desktop 1025px–2560px): keep HRM (.monotype) larger than other pages (.monotype-effect) */
  .layout--page .layout-main.main-content h1 {
    font-size: clamp(1.75rem, calc(1.75rem + (2.0 - 1.75) * ((100vw - 1025px) / 1535)), 2.0rem);
    margin-bottom: clamp(1.7rem, calc(1.7rem + (2.0 - 1.7) * ((100vw - 1025px) / 1535)), 2.0rem);
  }
  .layout--page .layout-main.main-content h2 {
    font-size: clamp(1.05rem, calc(1.05rem + (1.2 - 1.05) * ((100vw - 1025px) / 1535)), 1.2rem);
  }
  .layout--page .layout-main.main-content h4 {
    font-size: clamp(1.4rem, calc(1.4rem + (1.6 - 1.4) * ((100vw - 1025px) / 1535)), 1.6rem);
  }

  .layout--page .layout-main.main-content .monotype-effect {
/*    font-size: clamp(1.05rem, calc(1.05rem + (1.2 - 1.05) * ((100vw - 1025px) / 1535)), 1.2rem);
    line-height: clamp(1.35, calc(1.35 + (1.4 - 1.35) * ((100vw - 1025px) / 1535)), 1.4);*/
  font-size: clamp(14px, calc(14px + (19.2 - 14) * ((100vw - 640px) / (2560 - 640))), 19.2px);
  line-height: clamp(1.32, calc(1.32 + (1.4 - 1.32) * ((100vw - 640px) / (2560 - 640))), 1.4);
  }

  /* Footer layout */
  .layout--page .site-footer {
    grid-row: 3;
    height: 8.333vh;
  }

  .layout--page .site-footer-inner {
    /* Desktop (1025–2560): fluid width from 55.556% @1025px to 44.444% @2560px (analog menu-bar) */
    /* width: 44.444vw; */
    /* max-width: 44.444vw; */
    width: clamp(569.44px, calc(189.58px + 37.01vw), 1137.78px);
    max-width: 1137.78px;
    margin: 0 auto;
    height: 100%;

    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.667rem;
    padding-top: clamp(5px, 0.45vw, 9px);

    /* Footer typography (fluid) 
    font-size: clamp(15px, calc(15px + (16 - 15) * ((100vw - 1025px) / 1535)), 16px);*/
    font-size: clamp(15px, 1.4vw, 21px);
/*    line-height: clamp(1.10, calc(1.10 + (1.25 - 1.10) * ((100vw - 1025px) / 1535)), 1.25); */
  }


  /* Photos page: full width */
  .layout--page .layout-main.layout-main--photos {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    min-height: 62.345vh;
  }
}

/* -------------------------
   Ultra-wide (> 2560px)
   ------------------------- */
@media (min-width: 2561px) {
  /* Grid (>=2561px): keep same baseline proportions as Desktop */
  .layout {
    grid-template-rows:
      minmax(27.778vh, auto)
      minmax(63.889vh, auto)
      8.333vh;
  }

  .layout--home {
    grid-template-rows:
      27.778vh
      minmax(72.222vh, auto);
  }

  .site-header {
    min-height: 27.778vh;
    height: 27.778vh;
  }

  /* Pages: header can grow; main starts at 27.778vh OR below header if it expands */
  .layout--page .site-header {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 27.778vh;
  }

  .logo {
    top: 3.704vh;
    left: 8.333vw;
    width: 11.111vw;
    height: auto; /* keep aspect ratio */
}

  .menu-bar {
    top: 5.556vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(44.444vw, 1152px);
    max-width: min(44.444vw, 1152px);
}

  .info-box {
    top: 5.556vh;
    left: 77.778vw;
    width: 22.222vw;
    right: auto;
}

  /* Main content sizing (>=2561px): centered at 44.444% with max-width 1137.78px */
  .layout--page .layout-main {
    width: min(44.444vw, 1137.78px);
    max-width: 1137.78px;
    margin: 0 auto;
    min-height: 63.889vh;
  }

  .layout--page .layout-main.main-content {
    width: min(44.444vw, 1137.78px);
    max-width: 1137.78px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.35rem, calc(1.35rem + (1.46 - 1.35) * ((100vw - 1025px) / 1535)), 1.46rem);
    line-height: clamp(1.45, calc(1.45 + (1.55 - 1.45) * ((100vw - 1025px) / 1535)), 1.55);
    position: relative;
  }

  .layout--page .layout-main.main-content h1 {
    font-size: clamp(1.75rem, calc(1.75rem + (2.0 - 1.75) * ((100vw - 1025px) / 1535)), 2.0rem);
    margin-bottom: clamp(1.7rem, calc(1.7rem + (2.0 - 1.7) * ((100vw - 1025px) / 1535)), 2.0rem);
  }
  .layout--page .layout-main.main-content h2 {
    font-size: clamp(1.05rem, calc(1.05rem + (1.2 - 1.05) * ((100vw - 1025px) / 1535)), 1.2rem);
  }
  .layout--page .layout-main.main-content h4 {
    font-size: clamp(1.4rem, calc(1.4rem + (1.6 - 1.4) * ((100vw - 1025px) / 1535)), 1.6rem);
  }

  .layout--page .layout-main.main-content .monotype-effect {
    font-size: clamp(1.05rem, calc(1.05rem + (1.2 - 1.05) * ((100vw - 1025px) / 1535)), 1.2rem);
    line-height: clamp(1.35, calc(1.35 + (1.4 - 1.35) * ((100vw - 1025px) / 1535)), 1.4);
  }

  /* Footer (>=2561px): keep centered at 44.444% with hard max-width 1137.78px */
  .layout--page .site-footer {
    grid-row: 3;
    height: 8.333vh;
  }

  .layout--page .site-footer-inner {
    width: min(44.444vw, 1137.78px);
    max-width: 1137.78px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.667rem;
    padding-top: 0.35rem;

    /* Footer typography (clamp caps at the max values) */
    font-size: clamp(15px, calc(15px + (16 - 15) * ((100vw - 1025px) / 1535)), 16px);
/*    line-height: clamp(1.10, calc(1.10 + (1.25 - 1.10) * ((100vw - 1025px) / 1535)), 1.25);*/
  }

}

/* -------------------------
   Tablet (641px–1024px)
   ------------------------- */
@media (min-width: 641px) and (max-width: 1024px) {
  /* Grid */
  .layout {
    grid-template-rows:
      38.889vh
      minmax(50vh, auto)
      8.333vh;
  }

  .layout--home {
    grid-template-rows:
      38.889vh
      minmax(61.111vh, auto);
  }

  .layout-main {
    width: 66.667vw;
    max-width: 66.667vw;
    margin: 0 auto;
    min-height: 50vh;
  }

  .layout--home .layout-main--home {
    width: 100vw;
    max-width: 100vw;
    min-height: 61.111vh;
  }

  .logo {
    width: 13.889vw;
    left: 4.167vw;
    top: 3.704vh;
    bottom: auto;
    height: auto;
  }

.menu-bar {
  position: fixed;
/*  position: absolute; */
  top: 5.556vh;
  left: 83.333vw;
  right: auto;
  width: 11.111vw;
  height: 11.111vh;
/*  height: auto; */             /* no vertical slack -> icon sits where expected */
  max-height: 11.111vh;
  transform: none;
  display: flex;
  justify-content: flex-start; /* align icon to top of the box */
  align-items: flex-start;
  padding: 0;
}

.menu-toggle {
  display: inline-flex;
  width: 100%;
  height: auto;
/*  height: 11.111vh; */            /* neu: echte Box-Höhe */
/*  height: 100%; */
  max-height: 11.111vh;         /* wie Briefing */
/*  justify-content: center; */      /* Icon sauber in der Box */
/*  align-items: center; */
  justify-content: right;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

/* Burger icon color per briefing */
body.home .menu-toggle { color: #fff; }
body:not(.home) .menu-toggle { color: #000; }

  .menu-toggle-bars {
    width: 60%;
    max-width: none;
    height: 3px;
    margin: 0;
    background: currentColor;
    position: relative;
  }

  .menu-toggle-bars::before,
  .menu-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
  }

  .menu-toggle-bars::before { top: -10px; }
  .menu-toggle-bars::after  { top:  10px; }

  .menu-inner {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.90);
    color: #000;
    padding: 16.667vh 11.111vw 6vh;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.667rem;
    /* z-index: 9998; */
    z-index: 9999;
  }

  /* Klickfläche der Menü-Links auf die tatsächliche Textbreite begrenzen */
  .menu-inner a {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
  }


  body.home .menu-inner {
    background: rgba(0,0,0,0.66);
    background-color: rgba(0,0,0,0.66);
    color: #fff;
  }

  body.home .menu-close {
    color: #fff;
  }


  .menu-inner.is-open { display: flex; }

  /* Close-X im Burger-Overlay (analog Lightbox) */
  .menu-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 63px;
    height: 63px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #000;
    padding: 0;
    display: none;
    /* z-index: 10000; */
    z-index: 10001;
  }

  .menu-inner.is-open .menu-close { display: block; }

  .menu-close::before,
  .menu-close::after {
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width: 63px;
    height: 2px;
    background: currentColor;
    transform-origin:center;
  }

  .menu-close::before { transform: translate(-50%,-50%) rotate(45deg); }
  .menu-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }


  .menu-left,
.menu-right {
  flex-direction: column;
  gap: 0.25rem;
  /* font-size: 1.1rem; */
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

  .info-box {
    position: absolute;
  top: calc(5.556vh + 5.556vh + 0.0vh); /* unter Burger-Menü */
    left: 22.222vw;
    width: 77.778vw;
    height: auto;
    right: auto;
  }

  /* Main content sizing */
  .main-content {
    max-width: 70%;
    margin: 18vh auto 10vh;
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    line-height: 1.5;
  }

  /* Footer */
  .site-footer-inner {
    width: 66.667vw;
    max-width: 66.667vw;
    margin: 0 auto;
    min-height: 8.333vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }

  /* Media anchor offset */
  .media-section { scroll-margin-top: 18vh; }

  /* Photos page: full width */
  .layout-main.layout-main--photos {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    min-height: 50vh;
  }

  /* Media photo grid: columns stack */
  .media-photo-grid { flex-direction: column; }
}

/* -------------------------
   Mobile (max-width: 640px)
   ------------------------- */
@media (max-width: 640px) {

    :root {
    --logo-top: 2.778vh;
    --logo-width: 22.222vw;
    --logo-aspect: 0.868;         /* Seitenverhältnis Logo */
    --logo-height: calc(var(--logo-width) / var(--logo-aspect));
    --logo-gap: 0.1389vh;
  }

  /* Grid */
.layout {
    grid-template-rows:
      minmax(auto, 30.556vh)
      minmax(58.333vh, auto)
      8.333vh;
  }

.layout--home {
    grid-template-rows:
      minmax(auto, 30.556vh)
      minmax(69.444vh, auto);
  }

  .layout-main {
    width: 88.889vw;
    max-width: 88.889vw;
    margin: 0 auto;
    min-height: 58.333vh;
  }

  .layout--home .layout-main--home {
    width: 100vw;
    max-width: 100vw;
    min-height: 69.444vh;
  }

/* Logo */
  .logo {
    left: 5.556vw;
    bottom: auto;
    height: auto; /* keep aspect ratio */
    top: var(--logo-top);
    width: var(--logo-width);
}

/* Menu (burger) */
  .menu-bar {
    position: fixed;
    top: 5.556vh;
    left: 72.222vw;
    right: auto;
    width: 22.222vw;
    height: 5.556vh;
    max-height: 5.556vh;
    transform: none;
    display: flex;
    justify-content: flex-start; /* align icon to top of the box */
    align-items: flex-start;
    padding: 0;
}

  .menu-toggle {
    display: inline-flex;
    width: 100%;
    height: auto;
    max-height: 5.556vh;
    justify-content: right;
    align-items: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

    /* Burger icon color per briefing */
  body.home .menu-toggle { color: #fff; }
  body:not(.home) .menu-toggle { color: #000; }

.menu-toggle-bars {
    width: 50%;
    max-width: none;
    height: 3px;
    background: currentColor;
    position: relative;
  }

  .menu-toggle-bars::before,
  .menu-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
  }

  .menu-toggle-bars::before { top: -15px; }
  .menu-toggle-bars::after  { top:  15px; }

  .menu-inner {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.90);
    color: #000;
    padding: 12vh 5.556vw 5vh;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.667rem;
    /* z-index: 9998; */
    z-index: 9999;
  }

  /* Klickfläche der Menü-Links auf die tatsächliche Textbreite begrenzen */
  .menu-inner a {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
  }


  body.home .menu-inner {
    background: rgba(0,0,0,0.66);
    background-color: rgba(0,0,0,0.66);
    color: #fff;
  }

  body.home .menu-close {
    color: #fff;
  }


  .menu-inner.is-open { display: flex; }

  /* Close-X im Burger-Overlay (analog Lightbox) */
  .menu-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 63px;
    height: 63px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: #000;
    padding: 0;
    display: none;
    /* z-index: 10000; */
    z-index: 10001;
  }

  .menu-inner.is-open .menu-close { display: block; }

  .menu-close::before,
  .menu-close::after {
    content:"";
    position:absolute;
    top:50%;
    left:50%;
    width: 63px;
    height: 2px;
    background: currentColor;
    transform-origin:center;
  }

  .menu-close::before { transform: translate(-50%,-50%) rotate(45deg); }
  .menu-close::after  { transform: translate(-50%,-50%) rotate(-45deg); }


  .menu-left,
  .menu-right {
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1.1rem;
  }

  /* Info-Box under logo */
  .info-box {
    position: absolute;
    top: calc(var(--logo-top) + var(--logo-height) + var(--logo-gap));
    left: 5.556vw;
    width: 94.444vw;
    height: auto;
    right: auto;
}

  /* Main content sizing */
  .main-content {
    max-width: 92%;
    margin: 18vh auto 10vh;
    font-size: clamp(1rem, 4.5vw, 1.3rem);
    line-height: 1.5;
  }

  /* Footer */
  .site-footer-inner {
    width: 88.889vw;
    max-width: 88.889vw;
    margin: 0 auto;
    min-height: 8.333vh;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: center;
    gap: 0.75rem;
  }

  .footer-left,
  .footer-right {
    flex: none;
    width: 100%;
    text-align: left;
  }

  /* Contact form mobile tweak */
  .contact-form {
    margin-top: 2rem;
    margin-bottom: 2.4rem;
  }

  /* Photos page: full width */
  .layout-main.layout-main--photos {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    min-height: 58.333vh;
  }

  /* Media photo grid: columns stack */
  .media-photo-grid { flex-direction: column; }
}

/* =========================================================
   16. ACCESSIBILITY + RESPONSIVE HARDENING (keep at END)
   (Was already an end-of-file patch in the source.)
   ========================================================= */

/* --- Visible focus for keyboard users (WCAG) --- */
:focus { outline: none; } /* keep legacy behavior */
:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

/* Mute button: override earlier outline:none/box-shadow:none */
.mute-button:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
  box-shadow: none;
}

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 10000;
}
.skip-link:focus,
.skip-link:focus-visible {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: .6rem .9rem;
  background: #fff;
  color: #000;
  border: 2px solid currentColor;
  border-radius: 999px;
}

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

/* --- Lightbox: ensure controls are focusable & usable (buttons) ---
   NOTE: Diese Regeln wurden in Abschnitt 10 (Fotos-Seite → Lightbox)
   an die korrekten Selektoren verschoben, damit kein "winning patch"
   am Dateiende entsteht.

   Die ursprünglichen Regeln bleiben hier zur Historie isoliert.
--- */
/*
.lightbox-indicator,
.lightbox-close {
  border: none;
  background: transparent;
  padding: 0;
}
.lightbox-indicator:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
  border-radius: 10px;
}
*/