/*
Theme Name: Alphorn Freunde
Version: 24.30
Description: Alphorn Freunde - Sauber und schlank
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: 'Helvetica Neue', Arial, sans-serif; font-size: 16px; color: #2c2c2c; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

:root {
  --red: #B31B1B;
  --salmon: #C87878;
  --white: #ffffff;
  --dark: #2c2c2c;
  --overlay: rgba(168,20,20,0.72);
  --header-h: 62px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--white);
  border-radius: 30px;
  padding: 10px 28px;
  font-size: 15px;
  transition: opacity .2s;
}
.btn-white:hover { opacity: .85; }
.btn-dark {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 15px;
  transition: opacity .2s;
}
.btn-dark:hover { opacity: .85; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: var(--header-h);
  position: relative;
}
.site-title a { color: var(--white); font-size: 17px; font-weight: 400; letter-spacing: .02em; }
.main-nav {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}
.main-nav li a {
  color: var(--white);
  font-size: 15px;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s;
}
.main-nav li a:hover,
.main-nav li.current_page_item a,
.main-nav li.current-menu-item a { border-bottom-color: var(--white); }
.main-nav li.nav-cta a {
  border: 2px solid var(--white);
  border-radius: 30px;
  padding: 7px 18px;
  font-size: 14px;
  border-bottom: 2px solid var(--white) !important;
}
.main-nav li.nav-cta a:hover { background: rgba(255,255,255,.15); }
.main-nav li.nav-intern a {
  background: rgba(255,255,255,.15);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.4);
  color: rgba(255,255,255,.85);
}
.menu-toggle {
  display: none;
  background: none;
  border: 2px solid var(--white);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 20px;
}

/* ============================================================
   HERO FULL (Startseite)
   ============================================================ */
.hero-full {
  display: flex;
  height: calc(100vh - var(--header-h) - 70px);
  min-height: 580px;
  max-height: 1080px;
  overflow: hidden;
}
.hf-left {
  width: 55%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.hf-title {
  flex: 1 1 0;
  min-height: 0;
  background: var(--red);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 44px;
  overflow: hidden;
}
.hf-label {
  font-size: 16px;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.hf-title h1 {
  font-size: clamp(22px, 3.5vw, 50px);
  font-weight: 300;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 16px;
}
.hf-title .btn-white { align-self: flex-start; }
/* Wrapper für Label + h1 + Button — immer vorhanden */
.hf-title-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.hf-title-inner .btn-white { align-self: flex-start; }
.hf-events-wrap {
  flex: 1.4 1 0;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.hf-events-bg {
  position: absolute;
  inset: 0;
  background: #1a1a1a center/cover no-repeat;
}
.hf-events-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
}
.hf-events-content {
  position: absolute;
  inset: 0;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
}
.hf-section-label {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
}
.hf-ev-grid {
  display: grid;
  grid-template-columns: 230px 230px;
  grid-auto-rows: 155px;
  gap: 10px;
  width: auto;
  justify-content: start;
}
.hf-ev-sq {
  width: 230px;
  height: 155px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: background .15s;
}
.hf-ev-sq:hover { background: rgba(255,255,255,.14); }
.hf-ev-sq-top {
  background: var(--red);
  flex: 1.1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
}
.hf-ev-sq-day { color: #fff; font-size: 38px; font-weight: 300; line-height: 1; }
.hf-ev-sq-mon { color: rgba(255,255,255,.85); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.hf-ev-sq-yr   { color: rgba(255,255,255,.5); font-size: 11px; letter-spacing:.02em; }
.hf-ev-sq-time { color: rgba(255,255,255,.9); font-size: 12px; font-weight: 500; letter-spacing:.02em; margin-top: 3px; }
.hf-ev-sq-bot {
  flex: .9;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  overflow: hidden;
}
.hf-ev-sq-bot strong { color: #fff; font-size: 14px; font-weight: 500; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hf-ev-sq-bot span   { color: #fff; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-ev-details {
  margin-top: auto;
  font-size: 11px !important;
  color: rgba(255,255,255,.85) !important;
  letter-spacing: .04em;
  white-space: nowrap;
  text-transform: uppercase;
}
.hf-no-events { color: rgba(255,255,255,.35); font-size: 12px; }
.hf-cta {
  flex: 0.6 1 0;
  min-height: 0;
  background: var(--red);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 14px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.hf-cta-title { color: #fff; font-size: 18px; font-weight: 500; margin-bottom: 2px; }
.hf-cta-sub   { color: rgba(255,255,255,.75); font-size: 14px; line-height: 1.55; margin-bottom: 12px; }
.hf-cta .btn-white { align-self: flex-start; }
.hf-right {
  flex: 1;
  background: #888 center/cover no-repeat;
  position: relative;
}
.hf-right::after {
  content: none;
}

/* ============================================================
   ÜBER UNS SEITE
   ============================================================ */
.page-ueber .uu-hero {
  display: flex;
  height: calc(100vh - var(--header-h));
  overflow: hidden;
}
.page-ueber .uu-photo {
  width: 50%;
  flex-shrink: 0;
  background: #888 center/cover no-repeat;
}
.page-ueber .uu-content {
  width: 50%;
  background: var(--red);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 64px;
  color: var(--white);
  overflow-y: auto;
}
.page-ueber .uu-content h1,
.page-ueber .uu-content h2 { font-size: 38px; font-weight: 300; margin-bottom: 28px; color: var(--white); }
.page-ueber .uu-content p  { font-size: 15px; line-height: 1.75; margin-bottom: 16px; color: var(--white); }

/* ============================================================
   CTA SEKTION
   ============================================================ */
.cta-section {
  position: relative;
  min-height: 400px;
  background: var(--red) center/cover no-repeat;
  display: flex;
  align-items: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(140,15,15,.4);
}
.cta-section .cta-inner {
  position: relative;
  z-index: 1;
  padding: 60px 80px;
  color: var(--white);
}
.cta-section h2 { font-size: 36px; font-weight: 300; margin-bottom: 16px; }
.cta-section p  { font-size: 15px; margin-bottom: 36px; line-height: 1.6; }

/* ============================================================
   GALERIE
   ============================================================ */
.page-gallery { padding: 0; }
.masonry-grid { column-count: 3; column-gap: 6px; padding: 6px; }
.masonry-grid .mitem { break-inside: avoid; margin-bottom: 6px; overflow: hidden; cursor: pointer; }
.masonry-grid .mitem img { width: 100%; display: block; transition: transform .3s; }
.masonry-grid .mitem:hover img { transform: scale(1.02); }
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img  { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; color: #fff; font-size: 40px; cursor: pointer; line-height: 1; }

/* ============================================================
   CONTENT PAGES (Impressum, Datenschutz, etc.)
   ============================================================ */
.content-page { max-width: 900px; margin: 0 auto; padding: 70px 40px; }
.content-page h1 { font-size: 36px; font-weight: 300; margin-bottom: 36px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.content-page h2 { font-size: 22px; font-weight: 500; margin: 32px 0 12px; }
.content-page p  { font-size: 15px; line-height: 1.8; margin-bottom: 14px; color: #444; }
.content-page a  { color: var(--red); text-decoration: underline; }

/* ============================================================
   KONTAKT
   ============================================================ */
.page-kontakt .kf-wrap { max-width: 900px; margin: 0 auto; padding: 80px 40px; }
.page-kontakt h2 { font-size: 38px; font-weight: 300; margin-bottom: 12px; text-align: center; }
.kf-intro { text-align: center; font-size: 16px; color: #666; margin-bottom: 44px; line-height: 1.6; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row-1 { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.form-group label .pf { font-size: 11px; color: #aaa; margin-left: 4px; }
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #aaa; }
.form-group textarea { height: 160px; resize: vertical; }
.phone-wrap { display: flex; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.phone-country {
  border: none;
  background: #fafafa;
  border-right: 1px solid #ddd;
  padding: 0 12px;
  font-size: 14px;
  height: 46px;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
}
.phone-wrap input { border: none; border-radius: 0; flex: 1; padding: 12px 14px; }
.privacy-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #555; margin-bottom: 32px; margin-top: 20px; }
.privacy-row input { margin-top: 3px; }
.privacy-row a { text-decoration: underline; }
.form-submit { text-align: center; }
.form-submit button {
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 30px;
  padding: 14px 44px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  transition: opacity .2s;
}
.form-submit button:hover { opacity: .8; }
.form-msg { text-align: center; padding: 16px; font-size: 15px; }
.form-msg.ok { color: green; }
.form-msg.err { color: red; }

/* ============================================================
   TIPPS & LINKS
   ============================================================ */
.tl-page { max-width: 1000px; margin: 0 auto; padding: 60px 40px; }
.tl-tipp {
  background: #fff5f5;
  border-left: 5px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 36px 40px;
  margin-bottom: 56px;
}
.tl-tipp h2 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.tl-tipp p  { font-size: 14px; line-height: 1.75; color: #555; margin-bottom: 14px; }
.tl-tipp a  { color: var(--red); text-decoration: underline; }
.tl-section-title { font-size: 22px; font-weight: 400; margin-bottom: 20px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 14px; }
.tl-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 16px 18px;
  color: var(--dark);
  transition: border-color .2s;
}
.tl-card:hover { border-color: var(--red); }
.tl-card-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tl-card-body { display: flex; flex-direction: column; gap: 3px; }
.tl-card-body strong { font-size: 14px; font-weight: 500; }
.tl-card-body span   { font-size: 12px; color: #777; }

/* ============================================================
   INTERN: LAYOUT
   ============================================================ */
.intern-wrap {
  min-height: calc(100vh - var(--header-h));
  background: #f4f4f4;
  padding: 40px 20px;
}
.intern-main-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}
.intern-login-box {
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  margin: 40px auto;
}
.intern-icon { font-size: 40px; margin-bottom: 16px; }
.intern-login-box h2    { font-size: 26px; font-weight: 300; margin-bottom: 8px; }
.intern-hint            { font-size: 14px; color: #888; margin-bottom: 32px; }
.intern-login-box form  { text-align: left; }
.intern-login-box label { display: block; font-size: 13px; color: #555; margin-bottom: 8px; font-weight: 500; }
.intern-login-box input[type=password] {
  width: 100%;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  margin-bottom: 8px;
}
.intern-login-box input[type=password]:focus { border-color: var(--red); }
.intern-err { color: var(--red); font-size: 13px; margin-bottom: 8px; text-align: center; }
.intern-login-box button {
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
}
.intern-content-box {
  background: var(--white);
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}
.intern-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid #f0f0f0;
}
.intern-header h2    { font-size: 20px; font-weight: 300; margin: 0; }
.intern-logout-btn   {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #B31B1B;
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none !important;
  transition: background .15s;
  white-space: nowrap;
}
.intern-logout-btn:hover { background: #8c0f0f; color: #fff !important; }
.intern-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f4f4f4;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 12px 20px;
  margin-bottom: 20px;
}
.intern-topbar-label {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  letter-spacing: .02em;
}
.intern-list-label   { padding: 10px 28px 4px; font-size: 11px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: .06em; }
.intern-noten-list   { padding: 8px 0; }
.intern-note-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-bottom: .5px solid #f5f5f5;
  transition: background .15s;
}
.intern-note-row:last-child { border-bottom: none; }
.intern-note-row:hover      { background: #fafafa; }
.intern-note-type {
  background: #f0f0f0;
  color: #666;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
  text-align: center;
}
.intern-note-info            { flex: 1; }
.intern-note-info strong     { display: block; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.intern-note-info span       { font-size: 12px; color: #999; }
.intern-note-dl {
  background: var(--red);
  color: #fff;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  transition: opacity .2s;
}
.intern-note-dl:hover { opacity: .85; }
.intern-empty { padding: 48px 28px; text-align: center; color: #aaa; font-size: 14px; line-height: 1.8; }
.intern-ev-future { background: #f0fff4 !important; cursor: pointer; }
.intern-ev-past   { opacity: .6; cursor: pointer; }
.intern-ev-future:hover { background: #dcfce7 !important; }

/* ============================================================
   INTERN: NOTEN KARTEN-GRID
   ============================================================ */
.noten-grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 16px;
  padding: 24px 28px;
}
.noten-card-item {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s;
}
.noten-card-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.noten-card-thumb {
  width: 100%;
  aspect-ratio: 3/4;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.noten-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.noten-card-thumb .no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.noten-card-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.noten-card-info strong { font-size: 12px; font-weight: 500; line-height: 1.4; }
.noten-card-dl {
  display: block;
  text-align: center;
  background: var(--red);
  color: #fff !important;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  transition: opacity .2s;
  letter-spacing: .01em;
}
.noten-card-dl:hover { opacity: .85; }

/* ============================================================
   EVENT POPUP
   ============================================================ */
.ev-popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ev-popup-overlay.open { display: flex; }
.ev-popup-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  animation: popupIn .2s ease;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.ev-popup-header {
  background: var(--red);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.ev-popup-header h3   { font-size: 20px; font-weight: 400; margin: 0; line-height: 1.3; }
.ev-popup-header .ev-popup-date { font-size: 13px; opacity: .8; margin-top: 4px; }
.ev-popup-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  opacity: .8;
  padding: 0;
}
.ev-popup-close:hover { opacity: 1; }
.ev-popup-body { padding: 24px 28px; }
.ev-popup-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
}
.ev-popup-row:last-child { border-bottom: none; }
.ev-popup-row .ev-popup-icon  { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.ev-popup-row .ev-popup-label { font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.ev-popup-row a               { color: var(--red); text-decoration: underline; word-break: break-all; }
.ev-popup-empty               { color: #aaa; font-size: 14px; text-align: center; padding: 8px 0; }

/* ============================================================
   STICKY BOTTOM NAV (nur Mobile)
   ============================================================ */
.mobile-bottom-nav { display: none; }
@media(max-width:900px){
  body { padding-bottom: 64px; }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: #1a1a1a;
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 2000;
    align-items: stretch;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
  }
  .mobile-bottom-nav::-webkit-scrollbar { display: none; } /* Chrome/Safari */
  .mob-nav-item {
    flex: 0 0 auto;      /* nicht schrumpfen — eigene Breite */
    min-width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(255,255,255,.55);
    font-size: 9px;
    font-family: 'Helvetica Neue',Arial,sans-serif;
    text-decoration: none;
    padding: 6px 4px;
    transition: color .15s, background .15s;
    border-right: 1px solid rgba(255,255,255,.06);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
  }
  .mob-nav-item:last-child  { border-right: none; }
  .mob-nav-item .mob-icon   { font-size: 18px; line-height: 1; }
  .mob-nav-item:hover,
  .mob-nav-item.active      { color: #fff; background: rgba(179,27,27,.6); }
  .mob-nav-item.mob-kontakt { color: #fff; background: var(--red); }
  .mob-nav-item.mob-kontakt:hover { background: #8c0f0f; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media(max-width:900px){
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--red);
    padding: 16px 32px;
    gap: 16px;
    z-index: 999;
  }
  .main-nav.open { display: flex; }
  .menu-toggle   { display: block; }
  .hero-full     { flex-direction: column; height: auto; min-height: 0; max-height: none; }
  .hf-left       { width: 100%; flex: none; }
  .hf-title      { flex: none; min-height: auto; padding: 28px 24px; }
  .hf-title h1   { font-size: clamp(28px, 6vw, 42px); }
  .hf-title-inner { min-height: auto; overflow: visible; }
  .hf-events-wrap { flex: none; min-height: 280px; }
  .hf-events-content { padding: 16px 16px; }
  .hf-ev-grid {
    grid-template-columns: 1fr 1fr;  /* Volle Breite, 2 Spalten */
    grid-auto-rows: 130px;
  }
  .hf-ev-sq { width: 100%; height: 130px; }
  .hf-ev-sq-day { font-size: 28px; }
  .hf-ev-sq-mon { font-size: 12px; }
  .hf-ev-sq-yr  { font-size: 10px; }
  .hf-ev-sq-bot strong { font-size: 12px; }
  .hf-ev-sq-bot span   { font-size: 11px; }
  .hf-cta        { flex: none; min-height: auto; padding: 20px 24px; }
  .hf-right      { display: none; } /* Mobile: Foto rechts ausgeblendet */
  .page-ueber .uu-hero { flex-direction: column; }
  .page-ueber .uu-photo,
  .page-ueber .uu-content { width: 100%; }
  .page-ueber .uu-content { padding: 40px 28px; }
  .cta-section .cta-inner { padding: 40px 28px; }
  .content-page           { padding: 48px 24px; }
  .page-kontakt .kf-wrap  { padding: 60px 24px; }
  .form-row-2             { grid-template-columns: 1fr; }
  .masonry-grid           { column-count: 2; }
  .tl-page                { padding: 40px 20px; }
  .intern-main-grid       { grid-template-columns: 1fr; }
}
@media(max-width:480px){
  .masonry-grid           { column-count: 1; }
  .hf-title h1            { font-size: 36px; }
  .noten-grid-cards       { grid-template-columns: repeat(auto-fill, minmax(130px,1fr)); }
}

/* Weitere Veranstaltungen Button */
.hf-mehr-btn {
  display: inline-block;
  margin-top: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.hf-mehr-btn:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ============================================================
   BUTTON-POSITION: bei kleiner Bildschirmhöhe rechts neben Text
   Schwelle: <= 820px Viewport-Höhe (Mac mit Browser-Chrome)
   Bei > 820px: Button bleibt unterhalb (Standard)
   ============================================================ */
@media (max-height: 820px) {

  /* Titelbereich: h1 links, Button rechts daneben */
  .hf-title-inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
  }
  .hf-title-inner .hf-label {
    flex: 0 0 100%;       /* Label bleibt volle Breite */
    margin-bottom: 0;
  }
  .hf-title-inner h1 {
    flex: 1;              /* h1 nimmt verfügbaren Platz */
    min-width: 0;
    margin-bottom: 0;
  }
  .hf-title-inner .btn-white {
    flex-shrink: 0;       /* Button rechts, schrumpft nicht */
    align-self: center;
  }

  /* CTA-Bereich: Beschreibungstext links, Button rechts daneben */
  .hf-cta {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
  }
  .hf-cta-title {
    flex: 0 0 100%;       /* Titel bleibt volle Breite */
    margin-bottom: 0;
  }
  .hf-cta-sub {
    flex: 1;              /* Text links */
    min-width: 0;
    margin-bottom: 0;
  }
  .hf-cta .btn-white {
    flex-shrink: 0;       /* Button rechts */
    align-self: center;
  }
}
