/* ==============================================
   BREMER TABLETOP VEREIN — style.css
   Mobile-first. Desktop overrides at min-width: 768px.
   No inline styles. No frameworks.
   ============================================== */

/* ----------------------------------------------
   RESET & BASE
---------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #f0ece4;
  line-height: 1.7;
}

/* Dark fallback shown when no slideshow images are loaded */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-color: #1a1510;
  z-index: -2;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ----------------------------------------------
   BACKGROUND SLIDESHOW
---------------------------------------------- */
.slideshow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.slideshow-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

/* JS adds this class to fade a layer in */
.slideshow-layer.is-visible {
  opacity: 1;
}

/* ----------------------------------------------
   HEADER — logo bar (mobile + desktop)
---------------------------------------------- */
.site-header {
  position: relative;
  width: 100%;
  text-align: center;
  background-color: rgba(20, 15, 10, 0.80);
  padding: 1.25rem 1rem;
}

.site-header__logo {
  display: block;
  margin: 0 auto;
  max-width: 150px;
  height: auto;
}

/* ----------------------------------------------
   SCROLL-TO-TOP BUTTON
---------------------------------------------- */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  width: 2.8rem;
  height: 2.8rem;
  background-color: rgba(20, 15, 10, 0.85);
  border: 1px solid rgba(201, 34, 38, 0.5);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c92226;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, color 0.2s ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover,
.scroll-top:focus {
  color: #f0ece4;
  outline: none;
}

.scroll-top svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* ----------------------------------------------
   MAIN CONTENT — mobile
---------------------------------------------- */
.site-main {
  position: relative;
  z-index: 1;
  padding: 2rem 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.content-block {
  background-color: rgba(20, 15, 10, 0.75);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  margin-bottom: 2rem;
}

.content-block h2 {
  font-size: 1.4rem;
  letter-spacing: 0.04em;
  color: #fff;
  background-color: #273773;
  margin: -1.5rem -1.25rem 0.75rem -1.25rem;
  padding: 0.6rem 1.25rem;
  border-radius: 4px 4px 0 0;
}

#moin h2            { background-color: #c92226; }
#der-verein h2      { background-color: #273773; }
#das-vereinsheim h2 { background-color: #318639; }
#kontakt h2         { background-color: #c92226; }

/* Impressum */
#impressum h2   { background-color: #c92226; }
#kontakt-imp h2 { background-color: #273773; }
#verbraucher h2 { background-color: #318639; }

/* Datenschutz */
#datenschutz-ueberblick h2   { background-color: #c92226; }
#datenschutz-hosting h2      { background-color: #273773; }
#datenschutz-allgemein h2    { background-color: #318639; }
#datenschutz-datenerfassung h2 { background-color: #c92226; }
#datenschutz-plugins h2      { background-color: #273773; }

.content-block p {
  margin-bottom: 0.75rem;
}

.content-block p:last-child {
  margin-bottom: 0;
}

.content-block h3 {
  font-size: 1.05rem;
  font-weight: bold;
  color: #fff;
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  border-left: 3px solid #c92226;
  padding-left: 0.6rem;
}

.content-block h4 {
  font-size: 0.95rem;
  font-weight: bold;
  color: rgba(240, 236, 228, 0.85);
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.content-block ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-block li {
  margin-bottom: 0.3rem;
}

.content-block a {
  color: #c92226;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  transition: color 0.2s ease;
}

.content-block a:hover,
.content-block a:focus {
  color: #f0ece4;
  outline: none;
}

.legal-source {
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(240, 236, 228, 0.4);
}

/* ----------------------------------------------
   DER VEREIN — text + map layout
---------------------------------------------- */
.verein-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.5rem;
}

.map-container {
  min-height: 280px;
  background-color: rgba(20, 15, 10, 0.4);
  border: 1px dashed rgba(49, 134, 57, 0.4);
  border-radius: 4px;
  overflow: hidden;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* ----------------------------------------------
   KONTAKT — icon links
---------------------------------------------- */
.contact-links {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
  justify-content: center;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: #c92226;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: #f0ece4;
  outline: none;
}

.contact-link svg {
  width: 2.5rem;
  height: 2.5rem;
}

/* ----------------------------------------------
   FOOTER — mobile
---------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.85rem;
  color: rgba(240, 236, 228, 0.55);
  background-color: rgba(20, 15, 10, 0.6);
}

.footer-nav {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.footer-nav a {
  color: rgba(240, 236, 228, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: #f0ece4;
  outline: none;
}

/* ==============================================
   DESKTOP OVERRIDES — min-width: 768px
   ============================================== */
@media (min-width: 768px) {

  /* Larger logo on desktop */
  .site-header__logo {
    max-width: 200px;
  }

  /* Wider content padding on desktop */
  .site-main {
    padding: 3rem 2rem;
  }

  .content-block {
    padding: 2rem 2.5rem;
  }

  .content-block h2 {
    font-size: 1.6rem;
    margin: -2rem -2.5rem 0.75rem -2.5rem;
    padding: 0.75rem 2.5rem;
  }

  /* Der Verein: text and map side by side on desktop */
  .verein-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .verein-text {
    flex: 1;
  }
}

/* ==============================================
   WIDE SCREEN OVERRIDES — min-width: 1200px
   Expands the content area on large monitors (HD, WQHD, 4K).
   ============================================== */
@media (min-width: 1200px) {
  .site-main {
    max-width: 1100px;
  }
}
