/* Mega-Service-Center Rostock - v15 (RTM) Stylesheet */
/* Stil & Farbschema beibehalten (#500000 Weinrot, #FFC45D Gold), moderner responsiver Aufbau, Schrift: Times New Roman */

:root {
  --bg-primary: #500000;
  --bg-darker: #3b0000;
  --bg-card: rgba(35, 0, 0, 0.45);
  --text-gold: #FFC45D;
  --text-gold-light: #FFE2A8;
  --border-gold: rgba(255, 196, 93, 0.4);
  --border-gold-strong: #FFC45D;
  --font-main: "Times New Roman", Times, serif;
  --sidebar-width: 280px;
  --header-height: 120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-gold);
  font-family: var(--font-main);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a {
  color: var(--text-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--text-gold-light);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--text-gold-light);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header (ehemals kopf.html) */
.site-header {
  width: 100%;
  min-height: var(--header-height);
  background: var(--bg-primary) url("../elemente/obenh2.png") repeat-x center top;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  position: relative;
}

.site-header__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.site-header__logo {
  display: block;
  max-width: 825px;
  width: 100%;
  height: auto;
}

.mobile-menu-toggle {
  display: none;
  background-color: var(--bg-darker);
  color: var(--text-gold);
  border: 1px solid var(--border-gold-strong);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: bold;
  padding: 8px 14px;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.mobile-menu-toggle:hover {
  background-color: #660000;
}

/* Layout Container (ehemals Frameset: menu + haupt) */
.layout-wrapper {
  display: flex;
  flex: 1 0 auto;
  width: 100%;
}

/* Sidebar Navigation (ehemals menu.html) */
.sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background-color: var(--bg-primary);
  border-right: 1px solid var(--border-gold);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.nav-list li {
  margin-bottom: 10px;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  font-family: var(--font-main);
  font-size: 1.45rem;
  line-height: 1.3;
  color: var(--text-gold);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.active {
  background-color: var(--bg-darker);
  color: var(--text-gold-light);
  box-shadow: inset 0 0 0 1px var(--border-gold);
}

.sidebar__meta {
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid var(--border-gold);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Main Content Area (ehemals haupt.html) */
.main-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 36px 28px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.content-container {
  width: 100%;
  max-width: 960px;
  text-align: center;
}

.page-title {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: bold;
  margin: 0 0 24px;
  line-height: 1.25;
}

.section-title {
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: bold;
  margin: 32px 0 16px;
}

.lead-text {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  margin: 0 0 20px;
}

.hero-info {
  margin: 18px auto 28px;
}

.hero-info p {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: bold;
  margin: 8px 0;
}

.hero-info .hint-text {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: normal;
}

.opening-hours {
  margin: 28px auto;
  padding: 20px 24px;
  max-width: 560px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
}

.opening-hours h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  margin: 0 0 14px;
}

.opening-hours p {
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  margin: 6px 0;
}

/* Service & Info Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 24px 0;
  text-align: left;
}

.info-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 18px 20px;
}

.info-card h2,
.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.info-card p,
.info-card li {
  font-size: 1.1rem;
  margin: 6px 0;
}

.info-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

/* Clean centered list (z.B. Schleiferei) */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 24px;
  max-width: 760px;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.service-list li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 196, 93, 0.15);
}

.service-list li:last-child {
  border-bottom: none;
}

.footnote {
  font-size: 1.05rem;
  font-style: italic;
  margin: 16px 0 28px;
}

/* Gravur-Kategorien */
.category-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 20px 0 28px;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.15rem;
  min-height: 44px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.category-pill:hover,
.category-pill:focus-visible {
  background-color: var(--bg-darker);
  border-color: var(--border-gold-strong);
}

.category-count {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Image Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.gallery-item {
  display: block;
  background-color: var(--bg-darker);
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  padding: 6px;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  transform: translateY(-2px);
  border-color: var(--border-gold-strong);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.back-link-row {
  text-align: right;
  margin-top: 24px;
  font-size: 1.15rem;
}

.btn-link {
  display: inline-block;
  padding: 10px 18px;
  background-color: var(--bg-darker);
  border: 1px solid var(--border-gold-strong);
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  min-height: 44px;
}

.btn-link:hover {
  background-color: #660000;
}

/* Links page */
.partner-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin: 24px 0 36px;
}

.partner-link-item {
  font-size: 1.25rem;
}

.partner-link-item img {
  border: 1px solid var(--border-gold);
  border-radius: 4px;
}

/* Disclaimer / Impressum box */
.legal-box {
  text-align: left;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 22px 24px;
  margin-top: 28px;
  font-size: 1rem;
  line-height: 1.6;
}

.legal-box h2,
.legal-box h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 1.25rem;
}

.legal-box h2:first-child {
  margin-top: 0;
}

/* Aktueller Hinweis / Urlaubsbanner (via CMS ein-/ausblendbar) */
.notice-banner {
  background-color: #6e0f00;
  border: 2px solid var(--border-gold-strong);
  border-radius: 6px;
  padding: 14px 20px;
  margin: 0 auto 24px;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: bold;
  color: var(--text-gold-light);
}

/* FAQ-Bereich (Besucherhilfe & KI-Suche / GEO) */
.faq-section {
  text-align: left;
  margin-top: 36px;
}

.faq-section h2 {
  text-align: center;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.faq-item summary {
  font-size: 1.15rem;
  font-weight: bold;
  cursor: pointer;
}

.faq-item p {
  margin: 10px 0 0;
  font-size: 1.05rem;
}

/* Aktuell-Sparte: Drehender Schlittschuh (Hohlschliff) */
.skate-spotlight {
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  background: linear-gradient(135deg, #680b00 0%, #3d0000 100%);
  border: 2px solid var(--border-gold-strong);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 0 auto 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.skate-spotlight__icon-wrap {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 196, 93, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50%;
}

.skate-spotlight__svg {
  width: 58px;
  height: 58px;
  color: var(--text-gold);
  animation: skate-spin 7s linear infinite;
}

@keyframes skate-spin {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .skate-spotlight__svg {
    animation: none;
  }
}

.skate-spotlight__body {
  flex: 1 1 auto;
}

.skate-spotlight__badge {
  display: block;
  width: fit-content;
  margin: 0 auto 10px;
  font-size: 0.88rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 12px;
  border: 1px solid var(--border-gold-strong);
  border-radius: 999px;
  color: var(--text-gold-light);
}

.skate-spotlight__body h2 {
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2.3vw, 1.55rem);
  color: var(--text-gold-light);
  text-align: center;
}

.skate-spotlight__text p {
  margin: 0 0 14px;
  font-size: 1.08rem;
  line-height: 1.55;
}

.skate-spotlight__text p:last-child {
  margin-bottom: 0;
}

/* Prägnanter Startseiten-Titel */
.hero-title {
  line-height: 1.2;
}

.hero-title__sub {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: normal;
  letter-spacing: 0.03em;
}

.hero-title__main {
  display: block;
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: bold;
  color: var(--text-gold);
  margin: 4px 0;
}

@media (max-width: 600px) {
  .skate-spotlight {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }
}

/* Google Maps 2-Klick-Box (DSGVO-konform) */
.maps-section {
  margin: 32px auto;
  text-align: center;
}

.maps-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  padding: 20px;
  margin-top: 12px;
}

.maps-box__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}

.maps-btn {
  background-color: #7a1400;
  color: var(--text-gold-light);
  border: 1px solid var(--border-gold-strong);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1.08rem;
  font-weight: bold;
  padding: 10px 18px;
  min-height: 44px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.maps-btn:hover {
  background-color: #8f1a00;
}

.maps-btn--secondary {
  background-color: var(--bg-darker);
  color: var(--text-gold);
}

.maps-frame-wrap {
  margin-top: 16px;
  border: 1px solid var(--border-gold-strong);
  border-radius: 4px;
  overflow: hidden;
}

.maps-frame {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 0, 0, 0.93);
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__stage {
  position: relative;
  max-width: 92vw;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 76vh;
  border: 2px solid var(--border-gold-strong);
  border-radius: 4px;
  background-color: #1a0000;
}

.lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.lightbox__btn {
  background-color: var(--bg-darker);
  color: var(--text-gold);
  border: 1px solid var(--border-gold-strong);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: bold;
  padding: 8px 16px;
  min-height: 44px;
  cursor: pointer;
}

.lightbox__btn:hover {
  background-color: #660000;
}

.lightbox__counter {
  font-size: 1.05rem;
  min-width: 80px;
  text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-gold);
  background-color: var(--bg-darker);
  padding: 12px 20px;
  text-align: center;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

.site-footer a {
  text-decoration: underline;
}

/* Desktop: Linkes Menü und Hauptbereich unabhängig voneinander scrollbar */
@media (min-width: 821px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .site-header {
    flex: 0 0 auto;
  }

  .layout-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
  }

  .sidebar {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--text-gold) var(--bg-darker);
  }

  .main-content {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--text-gold) var(--bg-darker);
  }

  .sidebar::-webkit-scrollbar,
  .main-content::-webkit-scrollbar {
    width: 8px;
  }

  .sidebar::-webkit-scrollbar-track,
  .main-content::-webkit-scrollbar-track {
    background: var(--bg-darker);
  }

  .sidebar::-webkit-scrollbar-thumb,
  .main-content::-webkit-scrollbar-thumb {
    background-color: var(--border-gold);
    border-radius: 4px;
  }

  .sidebar::-webkit-scrollbar-thumb:hover,
  .main-content::-webkit-scrollbar-thumb:hover {
    background-color: var(--text-gold);
  }
}

/* Responsive Design for Smartphones & Tablets */
@media (max-width: 820px) {
  .site-header {
    min-height: auto;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .layout-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex: none;
    border-right: none;
    border-bottom: 1px solid var(--border-gold);
    padding: 12px 16px;
    display: none;
  }

  .sidebar.is-open {
    display: flex;
  }

  .nav-list a {
    font-size: 1.25rem;
    padding: 10px 12px;
    min-height: 44px;
  }

  .main-content {
    padding: 24px 16px 36px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
    gap: 10px;
  }

  .legal-box {
    padding: 16px;
  }
}
