/* =========================================================
   Lausitzer Polka-Patrioten – Gemeinsames Stylesheet
   Farbschema abgeleitet aus dem Logo-Verlauf:
   Rot → Orange → Gelb → Grün
   ========================================================= */

:root {
  --lpp-red:      #dd052b;
  --lpp-red-d:    #b00420;
  --lpp-orange:   #ee8600;
  --lpp-yellow:   #ffdd00;
  --lpp-green:    #62ad2d;
  --lpp-green-d:  #4a8521;
  --lpp-ink:      #1d1d1b;
  --lpp-text:     #2a2a28;
  --lpp-muted:    #6a6a66;
  --lpp-paper:    #ffffff;
  --lpp-line:     #ece4cd;
}

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

body {
  font-family: 'Helvetica Neue', 'Inter', 'Arial', sans-serif;
  color: var(--lpp-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;

  background:
    linear-gradient(
      125deg,
      rgba(221, 5, 43, 0.16)    0%,
      rgba(238, 134, 0, 0.18)  25%,
      rgba(255, 221, 0, 0.20)  50%,
      rgba(98, 173, 45, 0.17)  75%,
      rgba(221, 5, 43, 0.16)  100%
    ),
    #fdfcf8;
  background-size: 380% 380%;
  background-attachment: fixed;
  animation: lpp-bg-shift 40s ease-in-out infinite;
}

@keyframes lpp-bg-shift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

h1, h2, h3, h4 {
  font-family: 'Helvetica Neue', 'Inter', 'Arial', sans-serif;
  letter-spacing: -0.2px;
  margin: 0 0 0.6em;
  color: var(--lpp-ink);
  font-weight: 700;
}

a {
  color: var(--lpp-red);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s, color .15s;
}
a:hover { border-bottom-color: var(--lpp-red); }

/* ------------------------------------------------------
   Header
   ------------------------------------------------------ */
header.hero {
  position: relative;
  background: #ffffff;
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(
    90deg,
    var(--lpp-red) 0%,
    var(--lpp-orange) 35%,
    var(--lpp-yellow) 60%,
    var(--lpp-green) 100%
  ) 1;
}

.hero-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.logo-inline {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.logo-inline img {
  height: 220px;
  width: auto;
  display: block;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin: 0 0 0.2em;
  color: var(--lpp-ink);
}
.hero-text .subtitle {
  font-size: 1.05rem;
  margin: 0;
  color: var(--lpp-muted);
  font-weight: 400;
}

.hero-nav {
  margin-top: 1rem;
  font-size: 0.9rem;
}
.hero-nav a {
  color: var(--lpp-red);
  margin-right: 1.2rem;
}

/* ------------------------------------------------------
   Header-Bild
   ------------------------------------------------------ */
.header-image {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
}
.header-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.header-image .placeholder {
  padding: 4rem 1rem;
  color: var(--lpp-muted);
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
}

/* ------------------------------------------------------
   Main / Sections
   ------------------------------------------------------ */
main {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

section { margin-bottom: 3rem; }
section:last-child { margin-bottom: 0; }

h2 {
  font-size: 1.6rem;
  padding-bottom: 0.4rem;
  position: relative;
  display: inline-block;
  margin-top: 2rem;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--lpp-red) 0%,
    var(--lpp-orange) 50%,
    var(--lpp-yellow) 100%
  );
  border-radius: 2px;
}
h2:first-child { margin-top: 0; }

/* H3 in Fließtext (nicht im Accordion) */
section > h3,
.legal h3 {
  font-size: 1.2rem;
  color: var(--lpp-red-d);
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--lpp-orange);
}

/* H4 als Sub-Subüberschrift im Fließtext (Konzerte / Weihnachten) */
section > h4 {
  font-size: 1rem;
  color: var(--lpp-ink);
  margin-top: 1.4rem;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

p { margin: 0 0 1em; }

strong { color: var(--lpp-ink); }

/* ------------------------------------------------------
   Förder-Block (Logos der Unterstützer)
   ------------------------------------------------------ */
.funding-block {
  background: var(--lpp-paper);
  border: 1px solid var(--lpp-line);
  border-radius: 6px;
  padding: 1.5rem 1.5rem 1.75rem;
  margin: 2rem 0 2.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.funding-intro {
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: var(--lpp-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.funding-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
}

/* funding-item kann mehrere Inhalte haben (Logo + Caption + ggf. EU-Logo).
   flex-wrap erlaubt, dass das EU-Logo bei Platzmangel umbricht. */
.funding-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.5rem;
  color: var(--lpp-ink) !important;
  border-bottom: none !important;
  text-decoration: none;
  flex: 0 1 auto;
}
.funding-item img {
  height: 55px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.funding-item--ksk img {
  height: 38px;
}
.funding-caption {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  line-height: 1.3;
}
.funding-caption strong {
  color: var(--lpp-ink);
  font-weight: 700;
  font-size: 0.9rem;
}
.funding-caption small {
  color: var(--lpp-muted);
  font-size: 0.78rem;
  margin-top: 0.15rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a.funding-item:hover .funding-caption strong {
  color: var(--lpp-red);
}

/* ------------------------------------------------------
   Notenliste – Accordion (<details>/<summary>)
   ------------------------------------------------------ */
.scores {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.score {
  background: var(--lpp-paper);
  border: 1px solid var(--lpp-line);
  border-left: 4px solid var(--lpp-yellow);
  border-radius: 6px;
  overflow: hidden;
  transition: border-left-color .15s, box-shadow .15s;
}
.score[open] {
  border-left-color: var(--lpp-red);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.score:hover { border-left-color: var(--lpp-orange); }
.score[open]:hover { border-left-color: var(--lpp-red); }

.score > summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  user-select: none;
  outline: none;
}
.score > summary::-webkit-details-marker { display: none; }
.score > summary:focus-visible {
  background: rgba(255, 221, 0, 0.15);
}

.score-title {
  font-weight: 600;
  color: var(--lpp-ink);
  font-size: 1.05rem;
  flex: 1 1 auto;
  min-width: 0;
}

.score-tonarten {
  font-size: 0.85rem;
  color: var(--lpp-muted);
  font-weight: 400;
  white-space: nowrap;
  flex-shrink: 0;
}

.score-toggle {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  transition: transform .25s ease;
}
.score-toggle::before,
.score-toggle::after {
  content: "";
  position: absolute;
  background: var(--lpp-red);
  border-radius: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.score-toggle::before { width: 12px; height: 2px; }
.score-toggle::after  { width: 2px; height: 12px; transition: transform .25s ease; }
.score[open] .score-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }

.score-body {
  padding: 0.5rem 1.25rem 1.25rem;
  border-top: 1px solid var(--lpp-line);
  background: #fdfcf6;
}

.stimme-group {
  margin-top: 1rem;
}
.stimme-group:first-child { margin-top: 0.6rem; }

.stimme-group h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--lpp-muted);
  margin: 0 0 0.5rem;
  font-weight: 600;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--lpp-line);
}

.downloads {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.downloads li { margin: 0; }
.downloads a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: #fff;
  border: 1px solid var(--lpp-line);
  border-radius: 4px;
  color: var(--lpp-ink);
  font-size: 0.9rem;
  font-weight: 500;
  border-bottom: 1px solid var(--lpp-line);
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.downloads a::before {
  content: "↓";
  color: var(--lpp-red);
  font-weight: 700;
  font-size: 0.95rem;
}
.downloads a:hover {
  background: var(--lpp-red);
  border-color: var(--lpp-red);
  color: #fff;
  transform: translateY(-1px);
}
.downloads a:hover::before { color: #fff; }

/* ------------------------------------------------------
   Kontakt
   ------------------------------------------------------ */
.contact-grid {
  display: grid;
  gap: 0.4rem;
  background: var(--lpp-paper);
  border: 1px solid var(--lpp-line);
  padding: 1.2rem 1.5rem;
  border-radius: 6px;
}
.contact-grid dt {
  font-weight: 600;
  color: var(--lpp-ink);
  font-size: 0.9rem;
}
.contact-grid dd { margin: 0 0 0.5rem; }

/* ------------------------------------------------------
   Rechtliche Seiten
   ------------------------------------------------------ */
.legal main { max-width: 760px; }
.legal h2 { font-size: 1.4rem; }
.address-block {
  margin: 0.5rem 0 1.5rem;
  line-height: 1.7;
}

/* ------------------------------------------------------
   Footer
   ------------------------------------------------------ */
footer {
  background: var(--lpp-ink);
  color: #d8d6cc;
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 4px solid transparent;
  border-image: linear-gradient(
    90deg,
    var(--lpp-red) 0%,
    var(--lpp-orange) 35%,
    var(--lpp-yellow) 60%,
    var(--lpp-green) 100%
  ) 1;
  margin-top: 2rem;
}
footer a {
  color: #fff;
  margin: 0 0.6rem;
}
footer .footer-links { margin: 0.6rem 0; }
footer .copyright {
  opacity: .7;
  margin-top: .8rem;
  font-size: 0.8rem;
}

/* ------------------------------------------------------
   Responsive
   ------------------------------------------------------ */
@media (max-width: 600px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .hero-text h1 { font-size: 1.8rem; }
  .logo-inline img { height: 150px; }
  main { padding: 2rem 1.2rem; }

  .score > summary {
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .score-title { flex: 1 1 100%; }
  .score-tonarten { font-size: 0.8rem; }

  .funding-logos { gap: 1.5rem; }
  .funding-item { flex: 1 1 100%; }
  .funding-item img { height: 45px; }
  .funding-item--ksk img { height: 32px; }
}
