:root{
  --cream:#fbf6ed;
  --ink:#161616;
  --muted:#5b5b5b;
  --brand:#8e1b2d;
  --line:rgba(0,0,0,.10);
  --glass:rgba(255,255,255,.72);
  --radius:24px;
  --shadow:0 18px 60px rgba(0,0,0,.14);
}

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

html, body { overflow-x: hidden; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background: var(--cream);
  position: relative;
}

/* Hintergrundlinien / Wellen außen */
body::before,
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* stärkere Linien wirklich außen */
body::before,
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Haupt-Schleifen über die ganze Fläche */
body::before,
body::after{
  content:"";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
}

/* lange, durchgehende Hauptlinien */
body::before{
  opacity: .18;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1200' preserveAspectRatio='none'>\
<g fill='none' stroke='%238e1b2d' stroke-width='5' stroke-linecap='round'>\
<path d='M-120,180 C180,80 360,260 620,340 S1120,240 1720,120'/>\
<path d='M-120,420 C220,300 420,520 760,560 S1260,420 1720,300'/>\
<path d='M-120,660 C180,560 420,760 760,800 S1260,660 1720,540'/>\
<path d='M-120,920 C220,800 460,980 820,1020 S1320,900 1720,780'/>\
<path d='M80,-80 C220,180 480,320 760,360 S1240,260 1680,460'/>\
<path d='M40,1280 C220,1000 500,860 800,820 S1280,900 1680,700'/>\
</g></svg>");
}

/* zweite, feinere Ebene ebenfalls komplett durchgehend */
body::after{
  opacity: .10;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1200' preserveAspectRatio='none'>\
<g fill='none' stroke='%238e1b2d' stroke-width='3.5' stroke-linecap='round'>\
<path d='M-120,110 C220,220 460,140 820,180 S1320,120 1720,220'/>\
<path d='M-120,540 C220,620 480,500 860,520 S1360,620 1720,700'/>\
<path d='M-120,1030 C220,960 520,1080 900,1000 S1380,900 1720,980'/>\
<path d='M300,-80 C420,180 680,380 980,420 S1380,340 1720,460'/>\
<path d='M240,1280 C420,1000 700,800 1000,760 S1400,860 1720,760'/>\
</g></svg>");
}
a{color:inherit;text-decoration:none}
a:hover{opacity:.92}
.container{max-width:1160px;margin:0 auto;padding:0 18px}

/* Header */
.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251,246,237,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom:1px solid var(--line);
}

/* links | logo | rechts */
.topbar__inner{
  display:grid;
  grid-template-columns: 1fr auto 1fr;
  align-items:center;
  gap:12px;
  padding:10px 0;
}

.nav{display:flex;gap:6px;align-items:center}
.nav a{padding:10px 12px;border-radius:14px;color:var(--muted)}
.nav a:hover{background:rgba(0,0,0,.04);color:var(--ink)}
.navLeft{justify-content:flex-start}

.navRight{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:10px;
}

.loginSmall{
  padding:8px 10px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.55);
  font-size:13px;
  color:var(--muted);
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.loginSmall:hover{
  border-color:rgba(142,27,45,.28);
  background:rgba(142,27,45,.10);
  color:var(--ink);
}

.headerLogo{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0 10px
}

.headerLogo img{
  height:132px;
  width:auto;
  display:block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18));
}

.burger{
  display:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.6);
  padding:10px 12px;
  border-radius:14px;
  cursor:pointer;
}

/* Mobile Menü */
.mobileNav a{
  padding:14px 18px;
  color:var(--muted);
}

.mobileNav{
  position:absolute;
  left:0;
  right:0;
  top:100%;
  background: rgba(251,246,237,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  max-height: 0;
  overflow: hidden;
  overflow-y: auto;
  transition: max-height .25s ease;
  z-index: 120;
}

.mobileNav.show{
  display:flex;
  flex-direction: column;
  max-height: 100vh;
}
/* Icons */
.icon{
  width:18px;
  height:18px;
  display:inline-block;
  vertical-align:-3px;
  flex:0 0 auto;
}

/* HERO */
.hero{
  margin-top: 0;
  padding-top: 132px; /* Platz für den fixen Header */
  min-height: 72vh;
  position: relative;
  overflow: hidden;
  color:#fff;
  --hero-url: url('/assets/img/hero/01.jpg');
  --hero-fade: 1;
}

.hero::before{
  content:"";
  position:absolute;
  inset:-10px;
  background-image: var(--hero-url);
  background-size:cover;
  background-position:center;
  filter: blur(2.4px) brightness(.95) saturate(1.05);
  transform: scale(1.04);
  opacity: var(--hero-fade);
  transition: opacity 1.2s ease-in-out;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.10), rgba(0,0,0,.26)),
    radial-gradient(900px 600px at 20% 30%, rgba(142,27,45,.20), transparent 60%);
}

.heroInner{
  position:relative;
  z-index:1;
  min-height: 68vh;
  padding: 0;
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.heroContent{
  max-width: 74ch;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Titelblock */
.heroTitleBlock{margin-bottom:10px}

.heroHeading{
  margin:0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6vw, 78px);
  letter-spacing: -0.5px;
  line-height: 1.02;
  text-wrap: balance;
  color: transparent;
  background-image: linear-gradient(
    90deg,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.96) 40%,
    rgba(232,214,184,.96) 50%,
    rgba(255,255,255,.96) 60%,
    rgba(255,255,255,.96) 100%
  );
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  animation:
    titleFloat 3.8s ease-in-out infinite,
    titleShine 7.5s linear infinite;
}

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

@keyframes titleShine{
  from{ background-position: 0% 50%; }
  to{ background-position: 220% 50%; }
}

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

/* Wellenlinie unter dem Titel */
.waveLine{
  width: min(420px, 80vw);
  height: 16px;
  margin: 10px auto 0;
  overflow: hidden;
  opacity: .9;
  color: rgba(255,255,255,.88);
  filter: drop-shadow(0 10px 20px rgba(0,0,0,.25));
}

.waveLineInner{
  display:flex;
  width: calc(240px * 2);
  animation: waveScroll 3.2s linear infinite;
}

.waveLine svg{
  width:240px;
  height:16px;
  flex: 0 0 240px;
}

@keyframes waveScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-240px); }
}

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

.heroSub{
  margin:0 auto 18px;
  max-width: 60ch;
  color: rgba(255,255,255,.86);
  line-height:1.6;
  font-size:18px;
}

.btnRow{
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:8px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  justify-content:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
}

.btnPrimary{
  background: rgba(142,27,45,.32);
  border-color: rgba(142,27,45,.55);
}

.btn:hover{
  transform: translateY(-1px);
  transition: transform .2s ease;
}

/* SECTIONS */
.section{padding:34px 0}

.sectionHead{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  margin-bottom:14px;
}

.sectionHead h2{
  margin:0;
  font-size:26px;
  font-family: ui-serif, Georgia, serif;
}

.muted{color:var(--muted)}

.card{
  background: var(--glass);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* Gallery Grid (Startseite alt) */
.galleryGrid{
  display:grid;
  gap:12px;
  grid-template-columns:repeat(12, 1fr);
}

.tile{
  border-radius: 20px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  aspect-ratio: 1 / 1;
}

.tile.wide{
  grid-column: span 8;
  aspect-ratio: 16 / 10;
}

.tile.small{
  grid-column: span 4;
}

.tile img{
  width:100%;
  height:100%;
  object-fit: cover;
  object-position:center;
  display:block;
  transform: scale(1.01);
}

.tile:hover img{
  transform:scale(1.05);
  transition:transform .35s ease;
}

/* Hours */
.openStatus{
  margin:0 0 8px;
  font-size:18px;
  font-weight:800;
}

.openStatus.open{ color:#198754; }
.openStatus.closed{ color:#b42318; }

.todayHours{
  margin:0 0 10px;
  color:var(--muted);
  font-size:14px;
}

.hoursNote{
  margin:0 0 10px;
  color:#8a6a2f;
  font-weight:600;
}

.hoursList{
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:10px;
}

.hoursList li{
  padding:10px 12px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
}

/* Footer */
.footer{
  border-top:1px solid var(--line);
  padding:18px 0;
  margin-top:22px;
  background:rgba(255,255,255,.45);
}

.footerInner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  color:var(--muted);
}

.footerLinks{display:flex;gap:12px}
.footerLinks a{color:var(--muted)}
.footerLinks a:hover{color:var(--ink)}

/* Unterseiten */
.page{padding-top:24px}

.pageHead{
  margin: 98px 0 16px;
}

.pageTitle{
  margin:0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 40px;
  letter-spacing:-0.4px;
}

.pageSub{
  margin:8px 0 0;
  color:var(--muted);
}

/* Kontakt Layout */
.contactGrid{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  align-items: stretch;
}

.contactCard,
.mapCard{
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cardTitle{
  margin:0 0 14px;
  font-size:18px;
}

.label{
  font-size:12px;
  color:var(--muted);
  margin-bottom:4px;
}

.value{
  font-size:16px;
  color:var(--ink);
}

.value, .value a {
  overflow-wrap: anywhere;
}

.contactRow{
  display:grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.contactRow:last-child{border-bottom:0}

.contactIcon{
  width:36px;
  height:36px;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(142,27,45,.10);
  border: 1px solid rgba(142,27,45,.18);
  color: var(--brand);
}

.contactBtns{justify-content:flex-start}

.hint{
  margin:14px 0 0;
  color:var(--muted);
  font-size:13px;
}

/* Map */
.mapFrame{
  position:relative;
  flex: 1;
  min-height: 420px;
  border-radius: 20px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  aspect-ratio: auto;
}

.mapFrame iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mapFrame img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  filter: saturate(1.02) contrast(1.02);
}

.mapOverlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.35));
  color:#fff;
}

.mapOverlay span{
  width:100%;
  text-align:center;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(142,27,45,.30);
  backdrop-filter: blur(6px);
}

/* Kontakt Desktop nicht strecken */
@media (min-width: 901px){
  .contactGrid{
    align-items: start !important;
  }

  .contactCard,
  .mapCard{
    height: auto !important;
    display: block !important;
  }

  .mapFrame{
    height: 460px !important;
    min-height: 460px !important;
    flex: none !important;
    aspect-ratio: auto !important;
  }
}

/* Galerie Carousels */
.carouselSection{
  margin: 18px 0 26px;
}

.carouselTop{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.carouselTitle{
  margin:0;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.carouselHint{
  color: var(--muted);
  font-size: 13px;
}

.carouselWrap{
  position: relative;
}

.carousel{
  display:flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 44px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.40);
  border: 1px solid rgba(0,0,0,.08);
  scrollbar-width: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  contain: layout paint;
  transform: translateZ(0);
}

.carousel::-webkit-scrollbar{ display:none; }

.carouselCard{
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.04);
  aspect-ratio: 4 / 5;
  display:block;
  contain: content;
}

.carouselCard.news{
  aspect-ratio: 16 / 10;
  flex-basis: 260px;
}

.carouselCard img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.01);
  will-change: transform;
  backface-visibility: hidden;
}

.carouselCard:hover img{
  transform: scale(1.05);
  transition: transform .35s ease;
}

.carouselBtn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(142,27,45,.28);
  background: rgba(251,246,237,.85);
  color: var(--brand);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  z-index: 10;
  pointer-events: auto;
}

.carouselBtn svg{
  width:20px;
  height:20px;
}

.carouselBtn.left{ left: 10px; }
.carouselBtn.right{ right: 10px; }

/* Content vor Hintergrund */
.hero,
.section,
.page,
.footer{
  position: relative;
  z-index: 1;
}

/* MOBILE */
@media (max-width: 980px){
  .loginDesktopOnly{ display:none !important; }
  .navLeft{ display:none; }

  .topbar__inner{
    grid-template-columns: 1fr auto 1fr;
    padding: 10px 0;
    align-items: center;
    min-height: 96px;
  }

  .navRight{
    grid-column: 1;
    justify-content: flex-start;
    align-items: center;
  }

  .burger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width: 52px;
    height: 52px;
    font-size: 33px;
    border-radius: 16px;
  }

  .headerLogo{
    grid-column: 2;
    display:flex;
    justify-content:center;
    align-items:center;
    height: 60px;
  }

  .headerLogo img{
    height: 118px;
    width: auto;
  }

  .topbar__inner > :nth-child(3){
    justify-content:flex-start;
  }

  .mobileNav{
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(251,246,237,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);

  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
  z-index: 320;
  }

  .mobileNav a{
  display:block;
  padding:16px 18px;
  font-size:16px;
  color:var(--ink);
  }

  .mobileNav a:hover{
  background: rgba(142,27,45,.08);
  }

  .mobileNav.show{
  max-height: 420px;
  }
  .hero{
  	margin-top: 0;
  	padding-top: 118px;
	}
  .heroInner{ min-height: 64vh; }

  .pageTitle{ font-size: 32px; }
  .pageHead{ margin-top: 120px; }

  #galerie, #zeiten { scroll-margin-top: 170px; }
  .homePage .hero{
  margin-top: 0;
  padding-top: 118px;
  }

  .galleryPage .pageHead,
  .contactPage .pageHead,
  .subPage .pageHead{
   margin-top: 118px;
  }
  .carouselSection{
  margin: 22px 0 30px;
  }

  .carouselTop{
    margin-bottom: 14px;
  }


  .hoursList{ grid-template-columns:1fr; }
  .tile.wide{ grid-column: span 12; }
  .tile.small{ grid-column: span 6; }

  .contactGrid{
    grid-template-columns: 1fr !important;
  }

  .mapFrame{
    min-height: 320px;
    width: 100%;
    flex: none;
  }

  .carousel{
    padding: 10px 38px;
  }

  .carouselCard{ flex-basis: 190px; }
  .carouselCard.news{ flex-basis: 220px; }
}

@media (max-width: 900px){
  .contactGrid{
    grid-template-columns: 1fr;
  }

  .mapFrame{
    min-height: 320px;
    flex: none;
  }
}

@media (max-width: 560px){
  .tile.small{ grid-column: span 12; }
}
.topbar{
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300 !important;
}
.homePage .hero{
  margin-top: 0;
  padding-top: 132px;
}
.galleryPage .pageHead,
.contactPage .pageHead,
.subPage .pageHead{
  margin-top: 112px; /* ca. 10–15px Luft unter Header */
}
.galleryPage .carousel{
  background: rgba(255,255,255,.58);
}
.galleryPage .page,
.contactPage .page{
  position: relative;
  z-index: 1;
}
.galleryPage{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.galleryPage .page{
  flex: 1;
}

.galleryPage .pageHead{
  margin-top: 145px;
  margin-bottom: 22px;
}

.galleryPage .footer{
  margin-top: auto;
}
/* ===== Kontakt / Impressum / Datenschutz sauber unter Header ===== */
.contactPage,
.subPage{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contactPage .page,
.subPage .page{
  flex: 1;
  display: flex;
  align-items: center;   /* Inhalt mittiger in der Höhe */
}

.contactPage .page .container,
.subPage .page .container{
  width: 100%;
}

.contactPage .pageHead,
.subPage .pageHead{
  margin-top: 145px;     /* Abstand unter Header */
  margin-bottom: 22px;
}

.contactPage .footer,
.subPage .footer{
  margin-top: auto;
}

/* Mobile: nicht zu mittig, eher natürlicher */
@media (max-width: 980px){
  .contactPage .page,
  .subPage .page{
    align-items: flex-start;
  }

  .contactPage .pageHead,
  .subPage .pageHead{
    margin-top: 132px;
  }
}
.errorPage{
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.errorCard{
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 34px 24px;
}

.errorCode{
  font-size: clamp(72px, 12vw, 140px);
  line-height: 1;
  font-weight: 800;
  color: rgba(142,27,45,.18);
  margin-bottom: 8px;
  letter-spacing: -3px;
}

@media (max-width: 980px){
  .errorPage{
    align-items: flex-start;
  }

  .errorCard{
    margin-top: 30px;
  }
}
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(6px);
  padding: 24px;
}

.lightbox.show{
  display: flex;
}

.lightboxInner{
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightboxInner img{
  max-width: 100%;
  max-height: 86vh;
  border-radius: 20px;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
  display:block;
}

.lightboxClose{
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}

.lightboxNav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 34px;
  cursor: pointer;
}

.lightboxNav.left{ left: 24px; }
.lightboxNav.right{ right: 24px; }

@media (max-width: 700px){
  .lightbox{
    padding: 14px;
  }

  .lightboxNav{
    width: 44px;
    height: 44px;
    font-size: 28px;
  }

  .lightboxNav.left{ left: 10px; }
  .lightboxNav.right{ right: 10px; }

  .lightboxClose{
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    font-size: 28px;
  }
}
.socialLink{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.55);
}

.socialLink:hover{
  background: rgba(142,27,45,.10);
  color: var(--brand);
}

.socialIcon{
  width:18px;
  height:18px;
  display:block;
}