:root {
  --bg-page: #f4f6f9;
  --bg-surface: #ffffff;
  --bg-dark: #111827;
  --bg-dark-soft: #1f2937;
  --text-main: #1f2937;
  --text-muted: #4b5563;
  --text-light: #f9fafb;
  --text-light-muted: #9ca3af;
  --accent: #d1b12e;
  --accent-hover: #b19600;
  --accent-soft: #fff7ed;
  --border: #e5e7eb;
  --shadow-sm: 0 2px 8px rgba(17, 24, 39, 0.06);
  --shadow-md: 0 10px 25px rgba(17, 24, 39, 0.08);
  --radius: 12px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Topbar & Navigation */
.topbar {
  background-color: #0b0f19;
  color: var(--text-light-muted);
  font-size: 0.875rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.topbar a {
  color: var(--text-light);
  font-weight: 500;
}

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

.site-header {
  background-color: var(--bg-dark);
  color: var(--text-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.nav-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.brand:hover {
  color: var(--text-light);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand-title span {
  color: var(--accent);
}

.brand-sub {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light-muted);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.main-nav a {
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.main-nav a.active {
  background-color: var(--accent);
  color: #ffffff;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #111827 0%, #1f2937 60%, #292524 100%);
  color: var(--text-light);
  padding: 4.5rem 0 4rem;
  border-bottom: 4px solid var(--accent);
}

.hero-compact {
  padding: 3rem 0 2.75rem;
}

.badge {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.18);
  color: #faf05e;
  border: 1px solid var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: #d1d5db;
  max-width: 650px;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Main Content & Sections */
main {
  flex: 1;

  background-image:
    linear-gradient(rgba(244, 246, 249, 0.1), rgba(244, 246, 249, 0.2)),
    url("hintergrund.png");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2.25rem;
}

.section-header h2 {
  font-size: 1.75rem;
  margin: 0 0 0.4rem;
  color: var(--bg-dark);
  letter-spacing: -0.01em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Info Banner / Öffnungszeiten */
.info-strip {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: -2rem;
  position: relative;
  z-index: 10;
}

.info-block h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.info-block p {
  margin: 0;
  font-weight: 600;
  color: var(--bg-dark);
  font-size: 1.02rem;
}

.info-block small {
  display: block;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

/* Service Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #9E9FC1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.25rem;
  color: var(--bg-dark);
}

.card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  flex: 1;
}

.card-meta {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-dark);
  background-color: var(--bg-page);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Detail & Two-Column Layouts */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: start;
}

.panel {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.panelNoRim {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.panel h2,
.panel h3 {
  margin-top: 0;
  color: var(--bg-dark);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* Gallery Placeholder Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.gallery-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.gallery-slot {
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  border: 2px dashed #cbd5e1;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.gallery-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Map Box */
.map-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-placeholder {
  padding: 2.5rem 1.5rem;
  text-align: center;
  background-color: #f8fafc;
}

.map-box iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* Legal / Impressum */
.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--bg-dark);
}

.legal-content h3 {
  font-size: 1.08rem;
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--bg-dark);
}

.legal-content p {
  color: var(--text-muted);
  margin: 0 0 1rem;
}

/* Footer */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  padding: 3rem 0 2rem;
}

.site-footer h4 {
  color: #ffffff;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.92rem;
  margin: 0 0 0.4rem;
}

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

.footer-links a {
  color: var(--text-light-muted);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}


/* Gallery Grid & Lightbox */

.gallery-slot {
  appearance: none;
  background: #e5e7eb;
  border: 1px solid var(--border);
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  display: block;
  width: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-slot:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.gallery-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-slot:hover img {
  transform: scale(1.04);
}

/* Lightbox Großansicht */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 15, 25, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 999;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--accent);
}

/* Lightbox Navigation & Zähler */
.lightbox-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.lightbox-counter {
  color: #e5e7eb;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
  user-select: none;
}

.lightbox-nav:hover {
  background: var(--accent);
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

@media (max-width: 640px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
  }
  .lightbox-prev {
    left: 0.6rem;
  }
  .lightbox-next {
    right: 0.6rem;
  }
}

.gallery-card {
  margin: 0;
  cursor: pointer;
}

.gallery-year {
  margin-top: 0.45rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
}

.lightbox-meta {
  margin-top: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
  text-align: center;
}