/* ═══════════════════════════════════════════════════════════
   Schützenverein Mulfingen 1924 e.V.
   Variante 1: Fullscreen Hero Slideshow
   Basis: MR OnePage v2.0 – Marusti WebDesign
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --op-main-color:  #4caf50;
  --op-main-dark:   #2e7d32;
  --op-main-light:  #a5d6a7;
  --op-hero-from:   #1b5e20;
  --op-hero-to:     #388e3c;
  --op-nav-bg:      rgba(30, 70, 32, 0.97);
  --op-spacing:     .625em;
  --op-spacing-l:   2em;
  --op-color:       #1a2e1a;
  --op-bg-color:    #fff;
  --op-shadow:      0 4px 24px rgba(46, 125, 50, 0.15);
}

/* ── Schriften ── */
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../fonts/roboto-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Roboto Condensed';
  src: url('../fonts/roboto-condensed-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Quattrocento';
  src: url('../fonts/quattrocento-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

html { height: 100%; scroll-behavior: smooth; }

body {
  height: 100vh;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  max-width: 1920px;
  margin: 0 auto;
  background: var(--op-bg-color);
  color: var(--op-color);
}

h1, h2, h3 {
  font-family: 'Roboto Condensed', sans-serif;
  margin-bottom: var(--op-spacing);
  color: var(--op-main-dark);
  letter-spacing: .01em;
}
h1 { font-size: 3em; }
h2 { font-size: 2em; border-bottom: 3px solid var(--op-main-light); padding-bottom: .25em; margin-bottom: .6em; }
h3 { font-size: 1.5em; }

/* ── HERO ── */
.hero-wrap {
  position: relative;
  height: 100vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--op-hero-from);
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.12) 0%,
    rgba(27,94,32,.5) 55%,
    rgba(27,94,32,.88) 100%
  );
  pointer-events: none;
}

/* Dekorstreifen */
.hero-overlay::after {
  content: '';
  position: absolute;
  top: -10%; right: -8%;
  width: 45%; height: 130%;
  background: rgba(255,255,255,.03);
  transform: skewX(-12deg);
}

/* Zielscheibe Deko */
.hero-wrap::after {
  content: '';
  position: absolute;
  bottom: 2em; right: 3em;
  width: 180px; height: 180px;
  opacity: .07;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='48' stroke='white' stroke-width='2.5' fill='none'/%3E%3Ccircle cx='50' cy='50' r='34' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='50' cy='50' r='20' stroke='white' stroke-width='2' fill='none'/%3E%3Ccircle cx='50' cy='50' r='6' fill='white'/%3E%3Cline x1='50' y1='0' x2='50' y2='28' stroke='white' stroke-width='2'/%3E%3Cline x1='50' y1='72' x2='50' y2='100' stroke='white' stroke-width='2'/%3E%3Cline x1='0' y1='50' x2='28' y2='50' stroke='white' stroke-width='2'/%3E%3Cline x1='72' y1='50' x2='100' y2='50' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Pfeil-Buttons */
.hero-arrows {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1em;
  z-index: 10;
  pointer-events: none;
}
.hero-arr {
  pointer-events: all;
  background: rgba(0,0,0,.28);
  border: none;
  color: #fff;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5em;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .15s;
  line-height: 1;
}
.hero-arr:hover  { background: rgba(0,0,0,.5); transform: scale(1.08); }
.hero-arr:active { transform: scale(.96); }

/* Hero Inhalt */
.hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 1.5em;
}

.hero-logo {
  width: 100px; height: 100px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08);
  padding: 7px;
  margin: 0 auto 1em;
  display: block;
}

.hero-tag {
  font-size: .75em;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--op-main-light);
  margin-bottom: .5em;
  font-family: 'Roboto', sans-serif;
}

.page-name {
  font-family: 'Quattrocento', serif;
  font-size: clamp(1.8em, 5vw, 4.5em);
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,.3);
}

/* Dots */
.hero-dots {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 1.4em;
}
.hero-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .22s, transform .22s;
}
.hero-dot.active { background: #fff; transform: scale(1.35); }

/* Scroll-Link */
.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .4em;
  margin-top: 1.6em;
  text-decoration: none;
  color: rgba(255,255,255,.82);
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
}
.hero-scroll:hover { color: #fff; }

/* ── ANIMATION ── */
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0); }
  40% { transform: translateY(-14px); }
  60% { transform: translateY(-7px); }
}
.arrow {
  width: 42px; height: 42px;
  display: block;
}
.arrow::before {
  content: "";
  display: block; width: 100%; height: 100%;
  background: no-repeat center/contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}
.bounce { animation: bounce 2s infinite; }

.lightSpeedIn {
  animation: lightSpeedIn 1s ease-out both;
}
@keyframes lightSpeedIn {
  0%   { transform: translate3d(100%,0,0) skewX(-30deg); opacity: 0; }
  60%  { transform: skewX(20deg); opacity: 1; }
  80%  { transform: skewX(-5deg); opacity: 1; }
  100% { transform: none; opacity: 1; }
}

/* ── HAUPTBEREICH ── */
.main { height: 100%; }

.flexcontainer {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#inhalt {
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--op-main-color);
}

/* ── NAVIGATION ── */
.name { display: none; }

#responsive-nav { position: absolute; opacity: 0; }

.responsive-nav-label {
  display: flex;
  align-items: center;
  gap: .5em;
  font-size: 1.1em;
  font-weight: 700;
  padding: .7em 1.2em;
  color: var(--op-main-dark);
  cursor: pointer;
}
.responsive-nav-label::before {
  display: block;
  width: 22px; height: 22px;
  content: '';
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg viewBox='0 0 100 80' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='100' height='10' fill='%232e7d32'/%3E%3Crect y='30' width='100' height='10' fill='%232e7d32'/%3E%3Crect y='60' width='100' height='10' fill='%232e7d32'/%3E%3C/svg%3E");
}
#responsive-nav:checked + .responsive-nav-label::before {
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='10' y1='10' x2='90' y2='90' stroke='%232e7d32' stroke-width='10'/%3E%3Cline x1='90' y1='10' x2='10' y2='90' stroke='%232e7d32' stroke-width='10'/%3E%3C/svg%3E");
}

/* Logo in Nav-Leiste (Desktop) */
.nav-logo-bar { display: none; }

nav {
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  display: none;
}
#responsive-nav:checked ~ nav { display: block; }

nav ul {
  background: var(--op-nav-bg);
  list-style: none;
}
nav ul ul { padding-left: 1em; }

nav a {
  display: flex;
  padding: .9em 1.2em;
  text-decoration: none;
  color: rgba(255,255,255,.9);
  letter-spacing: .04em;
  transition: background .18s, color .18s;
}
nav a:hover { background: rgba(255,255,255,.1); color: #fff; }

label { display: block; position: relative; margin-left: 0; }

/* ── INHALT ── */
main { padding: var(--op-spacing-l); }

#inhalt main {
  width: 92vw;
  max-width: 960px;
  margin: 0 auto;
  flex: 1;
}
main > * + * { margin-top: 1.8em; }

/* ── FOOTER ── */
footer {
  padding: var(--op-spacing-l);
  background: var(--op-nav-bg);
  color: rgba(255,255,255,.72);
  text-align: center;
  font-size: .88em;
  border-top: 3px solid var(--op-main-color);
}
footer a:link  { color: var(--op-main-light); }
footer a:hover { color: #fff; }

/* ── ALLGEMEINE LINKS ── */
main a:link    { color: var(--op-main-dark); text-decoration: underline; text-underline-offset: 2px; }
main a:visited { text-decoration: underline; }
main a:active  { text-decoration: underline; }
main a:hover   { opacity: .75; }

img { max-width: 100%; height: auto; border-radius: 6px; }

/* ── UTILITIES ── */
.small { font-size: .9em; }
.leftcontentimage  { float: left;  margin: 0 1.2em .8em 0; }
.rightcontentimage { float: right; margin: 0 0 .8em 1.2em; }
.listitem   { list-style-position: inside; }
.alignright { text-align: right; }
.alignleft  { text-align: left; }
.aligncenter{ text-align: center; }

/* ── TABELLEN ── */
table.contenttable { width: 100%; text-align: center; border-collapse: collapse; }
th.contenttable {
  background: var(--op-main-dark); color: var(--op-bg-color);
  border-right: 1px solid var(--op-main-color);
  padding: 10px 14px; font-weight: 700; letter-spacing: .04em;
}
th.contenttable:last-child { border-right: none; }
td { padding: 9px 14px; border-bottom: 1px solid var(--op-main-light); }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: #f1f8f1; }
.result-list-header { font-weight: 700; color: var(--op-main-dark); }
.result-list-item   { margin-left: var(--op-spacing-l); }

/* ── BARRIEREFREIHEIT ── */
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }

/* ── COOKIE-BANNER ── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9999;
  background: var(--op-nav-bg);
  border-top: 3px solid var(--op-main-color);
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  padding: 1em 1.5em;
  display: none;
}
#cookie-banner.is-visible {
  display: block;
  animation: cookieSlideUp .35s ease-out both;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.cookie-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 1em;
}
.cookie-text {
  flex: 1 1 280px;
  font-size: .88em;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
  margin-bottom: 0;
}
.cookie-link { color: var(--op-main-light); text-decoration: underline; text-underline-offset: 2px; }
.cookie-link:hover { color: #fff; }
.cookie-actions { display: flex; gap: .6em; flex-shrink: 0; }
.cookie-btn {
  cursor: pointer; border: none; border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: .9em; font-weight: 700;
  padding: .55em 1.4em;
  transition: background .18s, transform .12s;
}
.cookie-btn--accept { background: var(--op-main-color); color: #fff; }
.cookie-btn--accept:hover { background: var(--op-main-dark); transform: translateY(-1px); }

/* ══════════════════════════════════════
   TABLET / DESKTOP ab 768 px
══════════════════════════════════════ */
@media only screen and (min-width: 768px) {

  .name {
    display: block;
    color: rgba(255,255,255,.9);
    padding: .7em 1.4em;
    position: absolute; left: 0;
    font-size: .9em; font-weight: 700;
    letter-spacing: .05em;
  }

  /* Logo in der Navigationsleiste */
  .nav-logo-bar {
    display: flex;
    align-items: center;
    background: var(--op-nav-bg);
    padding: .4em 1.4em;
  }
  .nav-logo { height: 38px; object-fit: contain; }

  nav { display: block; }
  nav ul {
    display: flex; flex-flow: row wrap;
    justify-content: flex-end;
    padding-right: var(--op-spacing-l);
  }
  nav ul ul {
    position: absolute; list-style: none;
    visibility: hidden; display: inline-block;
    padding: 0; background: var(--op-nav-bg);
    box-shadow: var(--op-shadow); min-width: 100%;
    border-top: 2px solid var(--op-main-color);
  }
  nav ul li:hover ul,
  nav ul li:focus-within ul { visibility: visible; }
  nav ul ul a { color: rgba(255,255,255,.85); }
  nav ul a:hover { background: rgba(255,255,255,.12); color: #fff; }

  .responsive-nav-label { display: none; }

  .menuactive {
    background: rgba(255,255,255,.15); color: #fff;
    border-bottom: 2px solid var(--op-main-light);
  }
  .mainmenu-item { position: relative; }

  .hero-logo { width: 110px; height: 110px; }
}

@media only screen and (min-width: 1200px) {
  nav { font-size: 1.05em; }
  #inhalt main { width: 85vw; }
}
