/* Add this at the top of your CSS file for consistent box-sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Theme variables for easy adjustments */
:root {
  --bg: #ffffff;
  --surface: rgba(0,0,0,0.04); /* subtle card surface on light bg */
  --accent: #096B72; /* teal accent (kept) */
  --header: #ffffff; /* header background */
  --title: #096B72; /* site title / highlight color */
  --header-offset: 80px; /* fallback: used as scroll-margin to account for fixed header */
  --muted: rgba(0,0,0,0.12);
  --text: #111111;
  /* hamburger sizing used to position nav items under the button when open */
  --hamburger-top-offset: 10px; /* distance from viewport top to hamburger when pinned */
  --hamburger-size: 36px; /* slightly smaller hamburger control for thinner header */
  --hamburger-gap: 6px; /* extra spacing between hamburger and first nav item */
}

/* Universal Reset */
* {
  margin: 0;
  padding: 0;
}

/* Force scrollbar to prevent layout shifts */
html {
    overflow-y: scroll;
    scroll-padding-top: var(--header-offset);
}


/* Ensure html and body have no default spacing */
html, body {
  color: var(--title);
  padding: 0;
  height: 100%;
}

/* Make the site title anchor look like plain text while keeping nav behavior */
.site-title {
  text-decoration: none;
  color: inherit;
  padding: 0;
  display: inline-block;
  font-weight: 700;
}
.site-title:focus {
  outline: 2px solid rgba(0,0,0,0.08);
  outline-offset: 4px;
}

/* Reset and Base Styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 0;
  padding-bottom: 100px;
  background: var(--bg); /* site background now black */
  color: var(--text); /* light text for readability on dark background */
  box-sizing: border-box;
  -moz-box-sizing: border-box;
}

/* Header */
header {
  /* Make header lightly distinct from page content on the light theme */
  /* Glassy header: slightly gray-tinted translucent gradient */
  background: linear-gradient(to bottom, rgba(245,245,245,0.92), rgba(240,240,240,0.82));
  padding: 0.6rem 1rem; /* slightly larger horizontal padding for breathing room */
  margin: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.28s ease-in-out, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 10px 30px rgba(14,21,30,0.07);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  /* subtle top rim highlight to emphasize glass (soft gray) */
  border-top: 1px solid rgba(230,230,230,0.7);
}

/* Header hidden state */
header.hidden {
  transform: translateY(-100%);
}

/* Prevent header hiding on mobile menu open */
header.menu-open {
  transform: translateY(0) !important;
}

/* Navigation */
nav {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 0;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  padding: 6px 8px; /* small hit area without a full box */
  background: transparent; /* remove boxed background */
  border: none; /* remove border */
  border-radius: 0;
  position: relative; /* for the underline pseudo element */
  transition: color 0.18s ease, transform 0.12s ease;
  letter-spacing: 0.6px;
}

/* Keep active/selected nav links the same color as the header/title */
nav .nav-link.active,
header nav .nav-link.active,
.nav-link[aria-current="page"] {
  color: var(--title);
}

/* Animated underline instead of a box */
.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  bottom: -6px;
  height: 3px;
  width: calc(100% - 10px);
  background: rgba(0,0,0,0.08);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.2,.9,.2,1), opacity 160ms ease;
  opacity: 0.98;
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
  color: var(--text);
}

.nav-link:hover,
.nav-link:focus {
  color: var(--text);
  outline: none;
}

/* DE/EN language toggle button in nav */
/* DE/EN language toggle — fixed to right edge of header */
.lang-toggle {
  text-decoration: none;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
  width: 44px;
  height: 44px;
  padding: 0;
  background: #111111;
  border: none;
  border-radius: 50%;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 2.5rem;
  bottom: 1.5rem;
  transform: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.lang-toggle:hover {
  background: #333333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.lang-toggle:active {
  background: #000000;
}

/* Main content area */
main {
  margin-top: 0px;
  padding-top: var(--header-offset);
}

/* Typography */
h1 {
  text-align: center;
  margin: 0;
  padding: 10px 5px; /* Reduce vertical padding so header is thinner */
  font-size: clamp(18px, 4vw, 50px); /* Smaller max size for slimmer header */
  font-family: Arial, sans-serif;
  color: var(--title);
  box-sizing: border-box;
  width: 100%;
  white-space: nowrap; /* Prevent line breaks */
  overflow: hidden; /* Hide overflow if needed */
  text-overflow: ellipsis; /* Add ... if text is too long */
  line-height: 1;
}

h2 {
  text-align: left;
  margin-left: 40px;
  font-size: 30px;
  font-family: Arial, sans-serif;
  color: #f5f5f5; /* light heading color for dark background */
}

.content-section {
  display: none;
  padding: 20px 40px 40px 40px;
  max-width: 800px;
  margin: 0 auto;
  min-height: calc(100vh - 280px); /* ADJUSTED for larger header with h1 */
}

.content-section.active {
  display: block;
}

/* Persistent sections (home/about/contact) should be visible together and stack vertically */
.content-section.persistent {
  display: block; /* ensure visible even if JS toggles other sections */
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 40px 40px 40px; /* a touch more breathing room */
  background: transparent; /* keep background transparent on dark theme */
}

/* Add back margin for non-hero persistent sections */
.content-section.persistent:not(.hero-section):not(.about-section) {
  margin: 24px auto;
}

/* Blended persistent sections: no card, subtle top accent so panels blend with the page */
.content-section.persistent {
  background: transparent; /* keep fully blended with page background */
  border-left: none;
  box-shadow: none;
  border-radius: 0;
  padding: 28px 36px 24px 36px; /* restore comfortable vertical padding */
  border-top: none !important; /* remove any top accent line above sections */
  min-height: 0; /* override large min-height from .content-section */
}

/* First persistent section after home (about) needs top padding for fixed header */
.content-section.persistent#about {
  padding-top: calc(var(--header-offset) + 28px);
  scroll-margin-top: 150px;
}

/* Add separation between stacked persistent sections */
.content-section.persistent + .content-section.persistent {
  margin-top: 28px;
}

/* Subtle heading and meta styling inside these panels */
.content-section.persistent h2,
.content-section.persistent .section-title,
.content-section.active h2,
.content-section.active .section-title {
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 600;
}

/* Make Home/About/Contact section titles identical */
#home .section-title,
#about .section-title,
#contact .section-title {
  display: block;
  width: 100%;
  text-align: left;
  font-size: 30px;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  color: var(--text);
  border-bottom: 2px solid rgba(0,0,0,0.06);
  font-weight: 600;
}

#contact .section-title {
  text-align: left;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  border-bottom: 2px solid rgba(255,255,255,0.2);
  max-width: 450px;
  margin: 0 auto 12px auto;
}

/* Make paragraph text slightly muted on dark surface for elegance */
.content-section.persistent p {
  color: rgba(0,0,0,0.85);
  line-height: 1.7;
}

/* Contact section has dark background, so white text */
#contact p,
#contact h3,
#contact .contact-link {
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* Slight divider line where needed */
.content-section.persistent .divider {
  height: 1px;
  background: rgba(0,0,0,0.03);
  margin: 18px 0;
}

/* Hero Section - Full Width Background */
.hero-section {
  position: relative;
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto;
  display: flex;
  align-items: center;
  overflow: visible;
}

.hero-background {
  position: relative;
  width: 100%;
  z-index: 1;
  margin-top: -80px;
}

.hero-background img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 0;
  opacity: 0;
  animation: fadeInScale 1.2s ease-out 0.2s forwards;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 150px;
  transform: translateY(-50%);
  z-index: 2;
  max-width: 600px;
}

.hero-text {
  max-width: 600px;
  padding: 0;
  margin: 0;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  padding: 0;
  line-height: 1;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: fadeInSlideRight 0.8s ease-out 0.6s forwards;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}

.title-name {
  display: inline-block;
}

.hero-subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 500;
  color: #2a2a2a;
  margin: 0;
  padding: 0;
  letter-spacing: 0.5px;
  text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateX(-80px);
  animation: fadeInSlideRightSubtitle 1s ease-out 1.2s forwards;
  display: inline-block;
}

@keyframes fadeInSlideRightSubtitle {
  from {
    opacity: 0;
    transform: translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* About Section - Full Width Background */
.about-section {
  position: relative;
  width: 100%;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.about-background {
  position: relative;
  width: 100%;
  z-index: 1;
}

.about-background img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  /* animation triggered by .in-view class */
}

.about-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 700px;
  z-index: 2;
  opacity: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  padding: 210px 40px 0 100px;
  /* animation triggered by .in-view class */
}

/* About animations: fire when .in-view is added via scroll or nav click */
.about-section.in-view .about-background img {
  animation: fadeInScale 1.2s ease-out 0.1s forwards;
}

.about-section.in-view .about-overlay {
  animation: fadeInSlideLeft 1s ease-out 1.4s forwards;
}

@media (max-width: 768px) {
  .about-section.in-view .about-background img {
    animation: fadeInScale 1.2s ease-out 0.1s forwards;
  }
  /* overlay is always visible on mobile, no animation needed */
  .about-section.in-view .about-overlay {
    animation: none;
  }
}

.about-text {
  max-width: 450px;
}

.about-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #ffffff !important;
  margin: 0 0 16px 0;
  line-height: 1.1;
  text-shadow: none;
}

.about-text p {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  color: #ffffff !important;
  margin: 0;
  text-shadow: none;
}

/* Page Load Animations */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeInSlideRight {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(-80px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

@keyframes fadeInSlideLeft {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Old Home Section styles (kept for compatibility) */
.home-content {
  text-align: center;
  padding-top: 28px;
}

.intro-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Hero image: responsive and animatable */
#hero-image {
    margin: 25px auto 0;
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

/* Small mini buttons on the Home section (compact quick links for About/Contact) */
.home-mini-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.25rem;
  /* Position at very top-right of the Home section on wide screens */
  position: absolute;
  top: 8px;
  right: 40px;
  z-index: 60;
}

.home-mini-buttons .mini-btn {
  display: inline-block;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(0,0,0,0.04);
  color: var(--text);
  border: 1px solid rgba(0,0,0,0.06);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.18s ease, transform 0.12s ease, color 0.18s ease, border-color 0.18s ease;
}

.home-mini-buttons .mini-btn:hover,
.home-mini-buttons .mini-btn:focus {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(0,0,0,0.06);
  transform: translateY(-2px);
  outline: none;
}

/* Ensure the home section is a positioning context */
#home {
  position: relative;
}

/* Make persistent sections respect header height when browser jumps to anchors */
.content-section.persistent {
  scroll-margin-top: var(--header-offset);
}

@media (max-width: 768px) {
  /* On smaller screens, place the buttons inline above the content instead of absolute */
  .home-mini-buttons {
    position: static;
    justify-content: center;
    margin: 0 0 1rem 0;
  }

  .home-mini-buttons .mini-btn {
    padding: 8px 10px;
    font-size: 0.95rem;
  }
}

@keyframes schwingen-text {
    0%, 100% {
        transform: translateX(-50px);
    }
    50% {
        transform: translateX(50px);
    }
}

@keyframes schwingen-image {
    0%, 100% {
        transform: translateX(50px);
    }
    50% {
        transform: translateX(-50px);
    }
}

/* Media Section */
#media {
  text-align: center;
  padding-top: 20px; /* Fixed from 40px to 20px */
}

#media h2 {
  font-size: 30px;
  text-align: left;
  margin-bottom: 30px;
  margin-left: calc(50% - 250px);
  font-family: Arial, sans-serif;
  color: #f5f5f5; /* light heading color for dark background */
}

#media img {
  width: 500px;
  height: auto;
  margin: 20px auto 0;
  display: block;
}

#media figcaption {
  text-align: left;
  margin: 10px auto 30px;
  max-width: 500px;
  font-family: Arial, sans-serif;
}

iframe {
  max-width: 500px;
  width: 500px;
  height: 315px;
  margin: 0 auto 40px;
  display: block;
}

/* ── Media / Gallery page ──────────────────────────────── */
.media-section {
  max-width: 1400px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  padding-top: 40px !important;
  background: #fafaf8 !important;
  box-sizing: border-box !important;
}

.media-page-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.media-page-title {
  font-size: 28px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Section area headings (Videos / Fotos) */
.media-area-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: rgba(0,0,0,0.38);
  margin: 48px 0 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.09);
}
.media-area-heading:first-of-type { margin-top: 0; }

/* Gallery grid */
.media-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(640px, 1fr));
  gap: 40px 32px;
}

/* Videos keep the same wide grid */
.media-videos-grid {
  grid-template-columns: repeat(auto-fit, minmax(640px, 1fr));
  gap: 40px 32px;
  justify-content: center;
}

/* Photos: tighter multi-column grid */
.media-photos-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

/* Photo card: 4:3 aspect ratio */
.media-card-inner--photo {
  aspect-ratio: 4 / 3;
  background: #f0f0f0;
}

/* Photo link wrapper */
.media-photo-link {
  display: block;
  text-decoration: none;
}

/* Gallery card */
.media-card {
  display: grid;
  grid-template-columns: 1fr;
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: opacity 220ms ease;
  box-shadow: none;
}

.media-card:hover {
  opacity: 0.9;
  transform: none;
  box-shadow: none;
}

.media-card .media-card-inner {
  overflow: hidden;
  border-radius: 0;
}

.media-card .media-card-inner iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  margin: 0;
}

.media-card .poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms ease;
}

.media-card:hover .poster-image {
  transform: scale(1.035);
}

/* Play button */
.media-card .play-overlay {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
  border: none;
  cursor: pointer;
  transition: transform 250ms ease, background 250ms ease;
}

.media-card:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255,255,255,1);
}

.media-card .play-overlay svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
  margin-left: 3px;
}

/* Caption */
.media-card figcaption {
  padding: 14px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.media-card figcaption strong {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a1a1a;
}

.media-card figcaption span {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}

.media-card .media-card-inner iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
}

/* Remove old decorative pseudo-elements */
.media-card .media-card-inner::after,
.media-card .media-card-inner::before { display: none; }

.media-card::before { display: none; }

/* Modal */
.media-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.75);
  z-index: 2000;
  padding: 24px;
}

.media-modal.open { display: flex; }

.media-modal-inner {
  /* Width is capped by whichever is smallest:
     – 90 vh expressed as a 16:9 width (prevents height overflow),
     – 95 vw, or the hard 1100 px cap. This guarantees the box is
       always exactly 16:9 so YouTube never adds pillarbox bars. */
  width: min(calc(90vh * 16 / 9), 95vw, 1100px);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  position: relative;
  display: flex;
}

.media-modal-inner iframe,
.media-modal-inner video {
  width: 100%;
  height: 100%;
  border: 0;
  flex: 1;
}

.media-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 180ms ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.media-modal-close:hover { background: #fff; }

.media-modal-close svg { stroke: #111; }

@media (prefers-reduced-motion: reduce) {
  .media-modal { transition: none !important; }
}

/* Mobile-first overrides: improve spacing, taps, and stacking for small screens */
@media (max-width: 768px) {
  /* Slimmer header and readable title */
  /* Header becomes a simple flex row so title sits left and controls stay right */
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* Left inset set to match header h1 top padding (6px) */
    padding: 0.45rem 0.9rem 0.45rem 6px;
  }

  header h1 {
    font-size: clamp(20px, 8vw, 48px);
    padding: 6px 4px;
    margin: 0;
    flex: 1 1 auto;
    text-align: left;
    min-width: 0; /* allow truncation if needed */
  }

  /* Ensure the anchor inside the header scales and aligns left */
  header h1 .site-title {
    display: block;
    font-size: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Show hamburger and make it tappable */
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
  }


  /* Mobile nav: modern right-side glass panel */
  nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    /* Panel width adapts to content (buttons); constrained by min/max values */
    width: auto;
    min-width: 140px;
    max-width: 220px; /* slightly narrower panel to make nav thinner */
    transform: translateX(100%); /* slide fully out by its own width */
    display: flex;
    flex-direction: column;
    gap: 6px;
    /* start buttons at the very top of the panel */
    padding-top: 12px;
    padding-left: 14px;
    padding-right: 12px;
    justify-content: flex-start;
    /* match header glass effect */
    background: linear-gradient(to bottom, rgba(245,245,245,0.92), rgba(240,240,240,0.82));
    box-shadow: -28px 0 60px rgba(6,18,28,0.18);
    border-left: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: blur(10px) saturate(1.06);
    -webkit-backdrop-filter: blur(10px) saturate(1.06);
    z-index: 1002;
    transition: transform 360ms cubic-bezier(.22,.95,.32,1);
    align-items: stretch;
  }

  nav.active {
    transform: translateX(0); /* slide into view */
  }

  /* When the menu is open, make the first nav item start under the hamburger control */
  header.menu-open nav {
    padding-top: calc(var(--hamburger-top-offset) + var(--hamburger-size) + var(--hamburger-gap));
  }

  /* Comfortable touch targets: ~44-48px height */

  nav .nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px; /* slightly smaller comfortable touch target (~36px) */
    margin: 4px 0;
    font-size: 0.95rem; /* slightly smaller text */
    line-height: 1.2;
    color: var(--text);
    text-decoration: none;
    border-radius: 8px;
    transition: background 140ms ease, transform 110ms ease;
  }

  nav .lang-toggle {
    position: static;
    transform: none;
    display: inline-flex;
    width: 48px;
    height: 48px;
    padding: 0;
    margin-top: auto;
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 50%;
    align-self: center;
    font-size: 11px;
    background: #111111 !important;
    color: #ffffff !important;
    -webkit-tap-highlight-color: transparent;
  }

  nav .nav-link:hover {
    background: rgba(0,0,0,0.03);
    transform: translateX(-2px);
  }

  /* Remove any visible focus/outline/tap highlight on mobile for nav links and buttons */
  nav .nav-link,
  nav .nav-link:focus,
  nav .nav-link:active,
  nav .nav-link:focus-visible,
  button,
  button:focus,
  button:active,
  .hamburger,
  .hamburger:focus {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
  }

  /* Additional forceful overrides for mobile UA touch highlights and default active backgrounds */
  nav .nav-link,
  nav .nav-link *,
  nav .nav-link::before,
  nav .nav-link::after {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
  }

  /* Remove any default native tap overlay for anchors globally on mobile */
  a,
  a:active,
  a:focus {
    -webkit-tap-highlight-color: transparent !important;
    background-color: transparent !important;
    outline: none !important;
  }

  /* Mobile: remove visible button backgrounds — use color-only active state */
  /* Strong mobile overrides: remove any boxed appearance on nav links */
  nav .nav-link,
  nav .nav-link:hover,
  nav .nav-link:active,
  nav .nav-link:focus,
  nav .nav-link:focus-visible {
    background: transparent !important; /* no boxed buttons on mobile */
    border-radius: 0 !important; /* no rounding that suggests a button */
    padding: 8px 10px; /* preserve tap area */
    transform: none !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
  }

  /* Color-only active/selected state */
  nav .nav-link:active,
  nav .nav-link.active,
  nav .nav-link[aria-current="page"] {
    color: var(--title) !important; /* only change text color */
    background: transparent !important;
    box-shadow: none !important;
  }

/* Desktop: when a nav link or button is pressed/focused, match the H1/title color */
@media (min-width: 769px) {
  /* Pressed/active visual: change text to H1 color and give a subtle press movement */
  nav .nav-link:active,
  nav .nav-link.active,
  button:active,
  .btn:active {
    color: var(--title);
    transform: translateY(1px);
    transition: transform 80ms linear;
  }

  /* If underline pseudo-element is used on desktop, tint it as well */
  nav .nav-link:active::after,
  nav .nav-link.active::after {
    background: var(--title);
  }
}

  nav .nav-link::after { display: none; } /* hide underline on mobile to reduce clutter */

  /* Remove visible outline for nav links while keeping focus semantics for assistive tech */
  .nav-link:focus,
  .nav-link:focus-visible {
    outline: none;
    box-shadow: none;
  }

  /* Make home content and cards more compact */
  .home-content, .blog-container, .calendar-container {
    padding: 10px 12px;
  }

  /* Hero Section Mobile */
  .hero-section {
    height: auto;
    margin: 0 !important;
    display: block;
  }

  .hero-background {
    margin-top: 0;
  }

  .hero-overlay {
    position: absolute;
    bottom: 20px;
    left: 16px;
    top: auto;
    right: auto;
    transform: none;
    max-width: 80%;
    padding: 0;
    opacity: 1;
    animation: none;
    margin-top: 0;
  }

  .hero-text {
    padding: 0;
    max-width: 100%;
    text-align: left;
  }

  .hero-title {
    font-size: clamp(22px, 5.5vw, 32px);
    margin-bottom: 6px;
    color: #1a1a1a;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.8);
    flex-direction: column;
    gap: 2px;
  }

  .hero-subtitle {
    font-size: clamp(13px, 3.2vw, 17px);
    color: #2a2a2a;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
  }

  /* Blog grid: 2 columns on tablet-ish screens */
  .blog-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }

  .blog-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .blog-page-header {
    margin-bottom: 32px;
  }

  /* Media card tweaks for small screens */
  .media-card {
    margin: 0;
    padding: 0;
  }

  .media-card .play-overlay {
    width: 56px;
    height: 56px;
  }

  .media-card .play-overlay svg { width: 18px; height: 18px; }

  .media-card figcaption { font-size: 13px; }

  /* Contact section: match about overlay padding on mobile */
  #contact {
    padding: 24px 20px 60px 20px !important;
    border-radius: 0;
    max-width: 100%;
    margin: 0;
  }

  .contact-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
  }

  #contact .section-title {
    max-width: 100%;
    margin: 0 0 12px 0;
  }

  .contact-intro {
    text-align: left;
    margin-bottom: 16px;
  }

  .contact-intro p,
  .contact-body h3,
  .contact-body p,
  .contact-link {
    font-size: clamp(14px, 3.5vw, 16px);
    text-shadow: none;
    color: #ffffff;
  }

  .contact-card {
    border-left: none;
    padding: 0;
    gap: 2px;
  }

  .contact-link {
    width: auto;
    display: inline;
    padding: 0;
    border-radius: 0;
    text-decoration: underline;
  }

  /* Back-to-top more visible on phones */
  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    background: rgba(20, 20, 30, 0.85);
    color: #ffffff;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  }

  /* Reduce large padding on main sections for compact view */
  .section-title { font-size: 22px; }
}

  /* ---------------------------------------------------------------------------
     Modern button system — unified look for buttons and links
     - Used for contact buttons, mini buttons, media action links, read-more, etc.
     - Designed to be subtle, tactile and consistent between mobile and desktop
  --------------------------------------------------------------------------- */
  .btn,
  .contact-link,
  .home-mini-buttons .mini-btn,
  .media-actions a,
  .read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), var(--surface));
    border: 1px solid rgba(0,0,0,0.06);
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 200ms ease, background 140ms ease;
    box-shadow: 0 6px 18px rgba(14,21,30,0.06);
  }

  .btn:active,
  .contact-link:active,
  .home-mini-buttons .mini-btn:active,
  .media-actions a:active,
  .read-more:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(14,21,30,0.06) inset;
  }

  .btn:hover,
  .contact-link:hover,
  .home-mini-buttons .mini-btn:hover,
  .media-actions a:hover,
  .read-more:hover {
    transform: translateY(-3px);
    background: linear-gradient(180deg, rgba(255,255,255,1), rgba(245,245,245,0.98));
    box-shadow: 0 12px 30px rgba(14,21,30,0.08);
  }

  /* Smaller subtle variant for inline links like "Read more" */
  .read-more {
    padding: 6px 8px;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: none;
  }

  /* Modernize the mobile nav links to match desktop button language */
  @media (max-width: 768px) {
    nav .nav-link {
      padding: 12px 14px;
      border-radius: 10px;
      font-weight: 700;
      color: var(--text);
      background: transparent;
      box-shadow: none;
    }

    nav .nav-link.active {
      background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(245,245,245,0.9));
      border: 1px solid rgba(0,0,0,0.06);
      box-shadow: 0 8px 20px rgba(14,21,30,0.06);
      transform: translateX(-2px);
    }
  }


/* Blog Section */
/* ── Blog page ────────────────────────────────────────────── */
.blog-section {
  max-width: 1100px !important;
  padding-left: 32px !important;
  padding-right: 32px !important;
  padding-top: 40px !important;
  background: #fafaf8 !important; /* very subtle warm off-white for the page */
}

/* Centered page header with thin decorative rule */
.blog-page-header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.blog-page-title {
  font-size: 28px;
  font-weight: 600;
  color: #111;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

.blog-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  padding-top: 0;
}

/* Blog card — clean, no shadow, sharp corners */
.blog-post {
  background: #fff;
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: opacity 220ms ease;
  display: flex;
  flex-direction: column;
}

.blog-post:hover {
  opacity: 0.88;
  transform: none;
  box-shadow: none;
}

.blog-post-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.blog-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-post img,
.blog-post video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 500ms ease;
}

.blog-post:hover img,
.blog-post:hover video {
  transform: scale(1.035);
  opacity: 1;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 4px 16px;
}

.blog-post-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.6;
}

.blog-excerpt {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
  color: rgba(0,0,0,0.6);
  flex: 1;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.blog-content time {
  color: rgba(0,0,0,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.read-more {
  color: var(--accent);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color 200ms ease;
}

.blog-post:hover .read-more {
  text-decoration-color: var(--accent);
}

.blog-container > p {
  grid-column: 1 / -1;
  text-align: center;
  font-style: italic;
  color: rgba(0,0,0,0.45);
  margin: 2rem 0;
}

/* Calendar Section */
.calendar-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 40px 0 40px;
}

.calendar-container .section-title {
    margin-left: 0;
}

.concert-section {
    margin-bottom: 60px;
}

.concert-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.65);
    margin: 0 0 24px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.concert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.concert-item {
    display: grid;
    grid-template-columns: minmax(110px, max-content) 1fr 1fr;
    gap: 0;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    align-items: start;
}

.concert-item:first-child {
    border-top: 1px solid rgba(0,0,0,0.07);
}

.concert-item.past {
    opacity: 0.55;
}

.concert-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.concert-weekday {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.4);
}

.concert-day {
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.concert-ensemble {
    font-size: 15px;
    color: rgba(0,0,0,0.65);
    line-height: 1.5;
    align-self: center;
    border-left: 1px solid rgba(0,0,0,0.12);
    padding: 0 28px;
    margin-left: 4px;
}

.concert-location {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
    padding-left: 28px;
    margin-left: 28px;
}

.concert-city {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.concert-venue {
    font-size: 14px;
    color: rgba(0,0,0,0.45);
    line-height: 1.4;
}

.no-concerts {
    color: rgba(0,0,0,0.45);
    font-size: 15px;
    padding: 16px 0;
}

/* Contact Section */
#contact {
    padding: 60px 40px 40px 40px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    scroll-margin-top: 150px;
    background: linear-gradient(135deg, rgba(20, 20, 30, 0.9) 0%, rgba(40, 40, 60, 0.9) 100%);
    border-radius: 0;
}

.contact-container {
    max-width: 450px;
    margin: 0 auto;
}

.contact-intro {
    text-align: left;
    margin-bottom: 28px;
}

.contact-intro p {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.7;
    color: #ffffff;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  padding: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  box-shadow: none;
}

.contact-icon {
  display: none;
}

.contact-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-body h3 {
  margin: 0;
  font-size: clamp(20px, 2.5vw, 24px);
  font-weight: 700;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.3;
}

.contact-body p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.7;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.contact-actions {
  margin: 0;
  display: flex;
}

.contact-link {
  display: inline-block;
  padding: 0;
  border: none;
  color: #ffffff;
  background: transparent;
  text-decoration: underline;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  box-shadow: none;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.7;
}

.contact-link:hover { opacity: 0.8; transform: none; }

/* About Section */
#about {
    padding: 40px 40px 40px 40px; /* REDUCED top padding from 60px to 20px */
    max-width: 1000px;
    margin: 0 auto;
}

/* Old about section styles - kept for compatibility but not used with new full-width design */
.about-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.about-image-container {
    flex-shrink: 0;
}

.about-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Legacy about text styles */
.about-container .about-text {
    flex: 0 0 400px;
    max-width: 400px;
}

.about-container .about-text p {
    text-align: justify;
    line-height: 1.7;
    font-size: 20px;
    margin: 0;
}

/* ── Single blog post page ─────────────────────────────── */
.post-main {
  /* Remove default body padding from this page so hero goes edge-to-edge */
}

/* Full-width hero image / video */
.post-hero {
  width: 100%;
  padding-top: var(--header-offset);
  background: #fafaf8;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
}

.post-hero img,
.post-hero video {
  max-height: 480px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* Narrow centered article column */
.post-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

/* When there's no hero image, still clear the fixed header */
.post-main:not(:has(.post-hero)) .post-article {
  padding-top: calc(var(--header-offset) + 48px);
}

/* Small uppercase back link */
.post-breadcrumb {
  margin-bottom: 36px;
}

.post-breadcrumb a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  text-decoration: none;
  transition: color 180ms ease;
}

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

/* Large centered uppercase title */
.post-article-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111;
  text-align: center;
  line-height: 1.4;
  margin: 0 0 20px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

/* Centered muted date */
.post-date {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.35);
  margin-bottom: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Lead paragraph — shown between date and body on article page */
.post-lead {
  font-size: 18px;
  line-height: 1.75;
  color: rgba(0,0,0,0.6);
  font-style: italic;
  text-align: center;
  margin: 0 0 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* Body text */
.post-body {
  font-size: 17px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 52px;
}

.post-body br + br {
  display: block;
  content: '';
  margin-top: 0.8em;
}

/* Bottom back link */
.post-footer {
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.back-link {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  text-decoration: none;
  transition: color 180ms ease;
}

.back-link:hover {
  color: var(--accent);
}

/* ── Remove old blog-post-detail styles (kept selectors as no-ops) ── */
.blog-post-detail,
.breadcrumb,
.single-blog-post,
.blog-post-media,
.featured-image,
.featured-video,
.blog-post-content,
.post-text,
.post-actions { /* intentionally empty — superseded by post-* classes above */ }

.back-link:hover {
    text-decoration: underline;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background-color: var(--text);
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
  transform-origin: center; /* Add this for better rotation */
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-8px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px); /* Slide out the middle line */
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-8px, -6px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: rgba(20, 20, 30, 0.85);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(40, 40, 60, 0.95);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.45);
}

/* Year titles for calendar */
.year-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0,0,0,0.4);
    margin: 32px 0 0 0;
    padding: 0;
    border: none;
    background: none;
}

.year-title::after {
    display: none;
}

.year-title:first-of-type {
    margin-top: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Stack contact cards vertically on small screens for readability */
  .contact-grid {
    gap: 18px;
  }

  .contact-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
    min-height: auto;
    align-items: start;
  }

  .contact-card .actions {
    margin-left: 0;
    margin-top: 6px;
    width: 100%;
    display: flex;
    justify-content: flex-start;
  }

  .contact-link {
    display: inline-block;
  }

  body {
    padding-top: 58px; /* ADJUSTED: slightly thinner header spacing */
  }

  main {
    padding-top: 0;
  }
  
  header {
    padding: 0.4rem; /* thinner header */
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  h1 {
    font-size: clamp(18px, 8vw, 40px); /* Smaller scaling for slimmer header */
    padding: 6px 2px; /* slightly reduced vertical padding */
    margin: 0;
    flex: 1;
    min-width: 0;
    letter-spacing: -0.5px; /* Slightly tighter spacing */
  }
  
  /* Show hamburger on mobile */
  .hamburger {
    display: flex;
    position: relative;
    z-index: 2200;
    padding: 8px;
    flex-shrink: 0;
  }

/* Show hamburger when the menu panel is open (header gets `.menu-open` on toggle) */
header.menu-open .hamburger {
  display: flex !important;
  z-index: 2200;
}

/* Ensure the hamburger bars are visible (high contrast) */
.hamburger span {
  background-color: var(--text);
}

/* Make generic buttons use the H1/title color for their text */
button,
.btn {
  color: var(--title);
}

/* Ensure hamburger sits above the sliding nav panel when open */
.hamburger {
  /* keep normal flow on desktop but ensure higher stacking context */
  position: relative;
  z-index: 2100; /* above nav (1002) and header (1000) */
}

/* When the menu opens, pin the hamburger to the top-right so it's not obscured */
/* keep pin styles consistent using CSS variables */
/* Removed empty ruleset: header.menu-open .hamburger */
  
  /* Legacy mobile nav styles removed — modern right-side panel is used above */
  
  /* Blog overview — 2-column grid on tablet */
  .blog-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 28px !important;
  }

  .blog-page-header {
    margin-bottom: 32px;
  }

  .blog-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 18px;
  }

  .blog-post-title {
    font-size: 14px;
  }

  .blog-excerpt {
    font-size: 13px;
  }

  /* Blog post detail page */
  .post-article {
    padding: 36px 20px 60px;
  }

  .post-article-title {
    font-size: clamp(18px, 5vw, 26px);
  }

  .post-lead {
    font-size: 16px;
  }

  .post-body {
    font-size: 16px;
  }
  
  /* Calendar Mobile Layout */
  .content-section.active h2 {
    margin-left: 0;
  }

  .calendar-container {
    padding: 16px 20px 0 20px;
  }

  .concert-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 64px;
    padding: 16px 0;
    align-items: start;
  }

  .concert-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
  }

  .concert-weekday {
    font-size: 11px;
    line-height: 1;
  }

  .concert-day {
    font-size: 15px;
    line-height: 1.2;
  }

  .concert-ensemble {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
    border-left: none;
    padding: 0;
    margin-left: 0;
    align-self: start;
    line-height: 1;
  }

  .concert-day {
    font-size: 15px;
  }

  .concert-ensemble {
    grid-column: 2;
    grid-row: 1;
    font-size: 14px;
    border-left: none;
    padding: 0;
    margin-left: 0;
    align-self: start;
  }

  .concert-location {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }

  .concert-city {
    font-size: 15px;
  }

  .concert-venue {
    font-size: 13px;
  }
  
  /* Back to Top Button Mobile */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 22px;
    background: rgba(20, 20, 30, 0.85);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  }
  
  /* Rest of your existing mobile styles... */
  .home-content {
    padding: 20px 15px;
  }
  
  .intro-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding: 0 10px;
  }
  
  #hero-image {
    max-width: 90%;
    width: 100%;
    margin: 20px auto 0;
  }
  
  #media {
    padding-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  #media h2 {
    font-size: 24px;
    text-align: center;
    margin-left: 0;
    margin-bottom: 20px;
    padding: 0 10px;
  }
  
  /* Media gallery responsive */
  .media-section {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 28px !important;
  }

  .media-page-header {
    margin-bottom: 32px;
  }

  .media-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  /* About Section Mobile */
  .about-section {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
  }

  .content-section.persistent + .content-section.persistent {
    margin-top: 0;
  }

  .about-overlay {
    position: relative;
    left: 0;
    right: 0;
    top: 0;
    transform: none;
    max-width: 100%;
    padding: 24px 20px;
    opacity: 1;
    transition: none;
    background: #ffffff;
    animation: none;
  }

  .about-overlay.visible {
    animation: none;
  }

  .about-title {
    font-size: clamp(28px, 7vw, 42px);
    margin-bottom: 12px;
    color: #1a1a1a !important;
    text-shadow: none;
  }

  .about-text {
    max-width: 100%;
  }

  .about-text p {
    font-size: clamp(14px, 3.5vw, 16px);
    color: #1a1a1a !important;
    text-shadow: none;
  }
  
  /* Legacy about styles for mobile */
  .about-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .about-image {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }
  
  .about-container .about-text {
    max-width: 100%;
  }
  
  .about-container .about-text p {
    margin-left: 20px;
    margin-right: 20px;
    font-size: 18px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-card {
    padding: 0;
  }
  
  .calendar-container {
    padding: 24px 16px 0 16px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .year-title {
    font-size: 16px; /* Smaller on mobile */
    margin: 15px 0 12px 0;
    padding: 0 0 5px 0;
    color: #555; /* CHANGED from #666 to #555 - slightly darker */
    border-bottom: 1px solid #bbb; /* CHANGED from #ddd to #bbb - slightly darker */
  }

  .year-title::after {
    display: none; /* Hide yellow accent line on mobile too */
  }
}

@media (max-width: 375px) {
  body {
    padding-top: 50px; /* ADJUSTED: half-height header on small screens */
  }
  
  h1 {
    font-size: clamp(16px, 12vw, 35px);
    padding: 6px 1px; /* Slightly reduced vertical padding */
    letter-spacing: -1.5px;
  }
}

@media (max-width: 320px) {
  body {
    padding-top: 45px; /* ADJUSTED: half-height */
  }
  
  h1 {
    font-size: clamp(14px, 14vw, 30px);
    padding: 4px 0px; /* Reduced padding */
    letter-spacing: -2px;
  }
}

/* For extremely narrow screens (like when rotated) */
@media (max-width: 280px) {
  body {
    padding-top: 40px; /* ADJUSTED: half-height */
  }
  
  h1 {
    font-size: clamp(12px, 16vw, 25px);
    padding: 3px 0px; /* Reduced padding */
    letter-spacing: -2.5px;
  }
}

/* Blog Section Small Mobile */
@media (max-width: 480px) {
  /* Blog overview — single column on phones */
  .blog-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .blog-container {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0;
  }

  .blog-page-title {
    font-size: 18px;
  }

  .blog-page-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }

  .blog-post-title {
    font-size: 14px;
  }

  .blog-content {
    padding: 14px 2px 12px;
  }

  .blog-excerpt {
    font-size: 13px;
  }

  /* Blog post detail page */
  .post-article {
    padding: 24px 16px 48px;
  }

  .post-article-title {
    font-size: clamp(17px, 5.5vw, 22px);
  }

  .post-lead {
    font-size: 15px;
    margin-bottom: 28px;
    padding-bottom: 28px;
  }

  .post-body {
    font-size: 15px;
  }

  .post-hero img,
  .post-hero video {
    max-height: 320px;
  }

  /* Media gallery — single column on phones */
  .media-section {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .media-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .media-page-title {
    font-size: 18px;
  }

  .media-page-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
  }
}

/* ---------------------------------------------------------------------------
/* ---------------------------------------------------------------------------
  Admin panel styles (moved from admin.php and blog_admin.php)
  - Centralized here so PHP templates don't include inline <style> blocks.
  - Examples: table layouts, simple form spacing, small media previews.
  --------------------------------------------------------------------------- */

/* admin.php - simple admin panel layout */
/* ── Blog Admin panel ──────────────────────────────────── */
body.admin-panel {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f3;
  color: #1a1a1a;
  margin: 0;
  padding: 0 0 80px;
  padding-bottom: 80px !important; /* override body rule */
}

/* Top bar */
.ba-header {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ba-admin-nav {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 32px;
}

.ba-admin-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  color: rgba(0,0,0,0.65);
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 600;
  transition: all 180ms ease;
}

.ba-admin-nav-link:hover,
.ba-admin-nav-link--active {
  color: #1a1a1a;
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.12);
}

.ba-logo a {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.ba-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #f0f0ee;
  color: rgba(0,0,0,0.45);
  padding: 3px 9px;
  border-radius: 99px;
}

/* ── Shared full-width two-column layout for admin pages ── */
.ba-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 28px 80px;
  align-items: start;
}

.ba-page-left,
.ba-page-right {
  display: flex;
  flex-direction: column;
}

/* ba-form inside ca-panel already stripped of border/bg via ca-panel rule */
.ba-page-left .ba-form,
.ba-page-right .ba-form {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 16px;
}

/* Sections */
.ba-form-section,
.ba-list-section {
  max-width: 820px;
  margin: 36px auto 0;
  padding: 0 24px;
}

.ba-section-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Form */
.ba-form {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 8px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ba-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ba-field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
}

.ba-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(0,0,0,0.35);
  font-size: 11px;
}

.ba-field input[type="text"],
.ba-field textarea,
.ba-field input[type="file"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fafaf8;
  transition: border-color 180ms ease;
  box-sizing: border-box;
}

.ba-field input:focus,
.ba-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}

.ba-field textarea {
  resize: vertical;
  line-height: 1.6;
}

.ba-current-media {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ba-thumb {
  max-height: 140px;
  max-width: 220px;
  border-radius: 4px;
  object-fit: cover;
  display: block;
}

/* Form buttons */
.ba-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.ba-btn-primary {
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 180ms ease;
}

.ba-btn-primary:hover { opacity: 0.85; }

.ba-btn-cancel {
  font-size: 13px;
  color: rgba(0,0,0,0.45);
  text-decoration: none;
  padding: 10px 4px;
}

.ba-btn-cancel:hover { color: #1a1a1a; }

/* Post list */
.ba-post-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 8px;
  overflow: hidden;
}

.ba-post-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

/* Calendar admin rows have no thumbnail — date badge left, info middle, actions right */
.ba-post-row.no-thumb {
  grid-template-columns: 64px 1fr auto;
  padding: 16px 18px;
  gap: 20px;
}

.ba-post-row:last-child { border-bottom: none; }

.ba-post-thumb {
  width: 80px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  background: #eee;
  flex-shrink: 0;
}

.ba-post-thumb img,
.ba-post-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ba-no-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(0,0,0,0.25);
  font-size: 18px;
}

.ba-post-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.ba-post-row-title {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ba-post-row.no-thumb .ba-post-row-title {
  font-size: 15px;
  white-space: normal;
}

.ba-post-row-desc {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ba-post-row.no-thumb .ba-post-row-desc {
  font-size: 13px;
  white-space: normal;
}

.ba-post-date {
  font-size: 11px;
  color: rgba(0,0,0,0.38);
  letter-spacing: 0.03em;
}

.ba-post-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.ba-btn-view,
.ba-btn-edit {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 5px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.ba-btn-view {
  color: rgba(0,0,0,0.5);
  border: 1px solid rgba(0,0,0,0.18);
}

.ba-btn-edit {
  color: var(--accent);
  border: 1px solid var(--accent);
}

.ba-btn-view:hover,
.ba-btn-edit:hover { opacity: 0.7; }

.ba-inline-form { display: inline; margin: 0; }

.ba-btn-delete {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: #c0392b;
  cursor: pointer;
  padding: 5px 4px;
  transition: opacity 160ms ease;
}

.ba-btn-delete:hover { opacity: 0.7; }

/* Legacy selectors kept as no-ops for safety */
table.admin-table,table.blog-admin-table,form.admin-form,
img.admin-preview,video.admin-preview,form.inline,button.delete,
a.button,.admin-logout,.admin-preview { /* superseded by ba-* classes above */ }

/* ===================== Calendar Admin — full-width two-column layout ===================== */
.ca-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 1400px;
  margin: 32px auto 0;
  padding: 0 28px 80px;
  align-items: start;
}

.ca-left,
.ca-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ca-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 8px;
  padding: 28px;
}

/* override ba-form default borders since it sits inside ca-panel */
.ca-panel .ba-form {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  gap: 16px;
}

/* right column list sits flush in panel */
.ca-right .ba-post-list {
  margin: 0;
}

.ca-right .ba-post-row:first-child {
  border-top: none;
}

/* ===================== Calendar Admin — date badge ===================== */
.ca-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.ca-date-day {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.ca-date-month {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,0.45);
  margin-top: 2px;
}
.ca-date-year {
  font-size: 11px;
  color: rgba(0,0,0,0.3);
  margin-top: 1px;
}

/* ===================== Calendar grid view ===================== */
.ca-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ca-nav-btn {
  font-size: 20px;
  color: var(--accent);
  text-decoration: none;
  padding: 4px 12px;
  border: 1px solid rgba(9,107,114,0.3);
  border-radius: 4px;
  transition: background 160ms ease;
}
.ca-nav-btn:hover { background: rgba(9,107,114,0.06); }
.ca-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.ca-weekday {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(0,0,0,0.35);
  padding: 4px 0 8px;
}
.ca-day {
  min-height: 62px;
  padding: 6px 6px 4px;
  border-radius: 4px;
  background: #f4f4f2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ca-day--empty { background: transparent; }
.ca-day--today { outline: 2px solid rgba(9,107,114,0.4); }
.ca-day--concert { background: rgba(9,107,114,0.08); }
.ca-day-num {
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.55);
  line-height: 1;
}
.ca-day--today .ca-day-num { color: var(--accent); }
.ca-concert-dot {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(9,107,114,0.12);
  border-radius: 2px;
  padding: 1px 4px;
  line-height: 1.5;
}
.ca-concert-dot:hover { background: rgba(9,107,114,0.22); }

/* ---------------------------------------------------------------------------
   Entrance animations (smooth slide-up + fade, staggered)
   - Uses a clear keyframe `enterUp` so the effect is visible.
   - Animation is only applied after JS adds `body.loaded` to avoid flashes.
   - Uses --anim-delay (ms) set by JS for per-item staggering.
--------------------------------------------------------------------------- */

:root {
  --anim-stagger: 90ms; /* base stagger between items */
  --anim-duration: 560ms;
}

.anim-item {
  /* start visually hidden — actual animation triggered on body.loaded */
  opacity: 0;
  transform: translateY(20px);
  filter: blur(2px) saturate(.95);
}

@keyframes enterUp {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(3px) saturate(.95);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* Apply animation when JS flips body to .loaded — use !important to override any
   templates that explicitly disabled animations via `animation: none !important`. */
body.loaded .anim-item {
  animation: enterUp var(--anim-duration) cubic-bezier(.2,.8,.2,1) both var(--anim-delay) !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .anim-item {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Ensure section titles remain block-level when animated */
.section-title.anim-item { display: block; }

/* End entrance animations */

/* Subtle page fade as a fallback so users notice the transition */
body.preload {
  opacity: 0;
}

body.loaded {
  opacity: 1;
  transition: opacity 420ms ease;
}
/* Footer Section */
.site-footer {
  background: var(--surface);
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 40px 20px;
  margin-top: 80px;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-content p {
  margin: 8px 0;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
}

.footer-link {
  color: var(--title);
  text-decoration: none;
  font-weight: 500;
  transition: color 200ms ease;
}

.footer-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Impressum Page */
.impressum-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px 40px 40px;
  background: #f8f8f8;
  color: #111111;
  border-radius: 8px;
}

.impressum-container h1 {
  font-size: 48px;
  margin-bottom: 50px;
  color: #000;
  text-align: center;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.impressum-container h2 {
  font-size: 18px;
  margin-top: 50px;
  margin-bottom: 25px;
  color: #000;
  border-left: 5px solid var(--accent);
  border-bottom: none;
  padding-bottom: 0;
  padding-left: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.impressum-container h3 {
  font-size: 16px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #000;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.impressum-container p {
  margin-bottom: 20px;
  line-height: 1.9;
  color: #222;
  font-size: 15px;
}

.impressum-container a {
  color: var(--title);
  text-decoration: none;
  font-weight: 500;
  transition: color 200ms ease;
}

.impressum-container a:hover {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .impressum-container {
    padding: 40px 20px 20px 20px;
  }

  .impressum-container h1 {
    font-size: 32px;
    margin-bottom: 35px;
  }

  .impressum-container h2 {
    font-size: 15px;
    margin-top: 40px;
    margin-bottom: 20px;
    margin-left: 15px;
    padding-left: 8px;
  }

  .footer-content p {
    font-size: 12px;
  }
}