/* ========================================
   DFG Premnitz e.V. — Stylesheet
   Farben: Tricolore (Blau/Rot/Weiß)
   ======================================== */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #1d327c;
  --blue-dark: #141f52;
  --red: #c1272d;
  --red-light: #d94348;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #e0e0e0;
  --text: #333333;
  --text-light: #666666;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, sans-serif;
  --max-width: 1100px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

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

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

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

/* ---- Navigation ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: var(--nav-height);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}

.nav__logo:hover {
  color: var(--blue-dark);
}

.nav__logo-img {
  height: 50px;
  width: auto;
}

.nav__logo-text {
  font-size: 0.95rem;
}

.nav__menu {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav__menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.5rem 0;
  position: relative;
}

.nav__menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s;
}

.nav__menu a:hover {
  color: var(--blue);
}

.nav__menu a:hover::after {
  width: 100%;
}

.nav__lang {
  display: inline-flex;
  align-items: center;
  padding: 0 !important;
}

.nav__lang::after {
  display: none !important;
}

.nav__flag {
  width: 28px;
  height: 19px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s;
}

.nav__lang:hover .nav__flag {
  transform: scale(1.15);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  margin-top: var(--nav-height);
  overflow: hidden;
  background: var(--blue-dark);
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29, 50, 124, 0.55) 0%, rgba(20, 31, 82, 0.4) 100%);
}

.hero__content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 2rem 1.5rem;
  max-width: 800px;
}

.hero__logo {
  width: 250px;
  text-align: center;
  height: auto;
  margin: auto;
  margin-bottom: 2rem;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  opacity: 0.9;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ---- Buttons ---- */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}

.btn:hover {
  background: var(--red-light);
  color: var(--white);
  transform: translateY(-2px);
}

/* ---- Sections ---- */

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--gray-light);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--blue);
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0.8rem auto 0;
}

.section__empty {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}

/* ---- News / Aktuelles ---- */

.news-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.news-card__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.news-card__content {
  padding: 1.2rem 1.5rem;
}

.news-card__date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin: 0.3rem 0 0.5rem;
}

.news-card__title a {
  color: var(--blue-dark);
}

.news-card__title a:hover {
  color: var(--red);
}

.news-card__excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* News list (archive page) */

.news-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  display: flex;
  gap: 1.5rem;
  background: var(--gray-light);
  border-radius: 8px;
  overflow: hidden;
}

.news-item__image {
  flex-shrink: 0;
  width: 200px;
}

.news-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-item__content {
  padding: 1.2rem 1.5rem 1.2rem 0;
  flex: 1;
}

.news-item__date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.news-item__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin: 0.3rem 0 0.5rem;
}

.news-item__title a {
  color: var(--blue-dark);
}

.news-item__excerpt {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.news-item__more {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
}

/* Article detail */

.article {
  max-width: 750px;
  margin: 0 auto;
}

.article__back {
  font-size: 0.9rem;
  color: var(--text-light);
  display: inline-block;
  margin-bottom: 1rem;
}

.article__date {
  font-size: 0.9rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.5rem;
}

.article__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.article__cover {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.article__text {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article__text p {
  margin-bottom: 1rem;
}

.article__text img {
  border-radius: 8px;
  margin: 1rem 0;
}

.article__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}

.article__gallery-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.article__gallery-item img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox__img {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  z-index: 1;
  transition: color 0.2s;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  color: #fff;
}

.lightbox__close {
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  line-height: 1;
}

.lightbox__prev,
.lightbox__next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.5rem;
  line-height: 1;
  padding: 0.5rem;
}

.lightbox__prev {
  left: 1rem;
}

.lightbox__next {
  right: 1rem;
}

.lightbox__counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }

  .news-item__image {
    width: 100%;
    height: 200px;
  }

  .news-item__content {
    padding: 1rem 1.5rem;
  }
}

/* ---- Events ---- */

.events {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 750px;
  margin: 0 auto;
}

.event {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.event:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.event__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 0.5rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 6px;
  text-align: center;
  line-height: 1.2;
}

.event__day {
  font-size: 1.8rem;
  font-weight: 700;
}

.event__month {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.event__year {
  font-size: 0.75rem;
  opacity: 0.8;
}

.event__info {
  flex: 1;
}

.event__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--blue-dark);
  margin-bottom: 0.3rem;
}

.event__time,
.event__location {
  font-size: 0.9rem;
  color: var(--text-light);
}

.event__time::before {
  content: '🕐 ';
}

.event__location::before {
  content: '📍 ';
}

.event__desc {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

/* ---- About ---- */

.about {
  max-width: 800px;
  margin: 0 auto;
}

.about__text {
  font-size: 1.05rem;
  line-height: 1.8;
}

.about__text p {
  margin-bottom: 1rem;
}

.about__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.about__gallery img {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ---- Membership ---- */

.membership {
  max-width: 800px;
  margin: 0 auto;
}

.membership__text {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.membership__text p {
  margin-bottom: 1rem;
}

.membership__downloads {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 1.5rem 2.5rem;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.download:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

.download__icon {
  font-size: 2rem;
}

.download__label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.download__hint {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ---- Partners ---- */

.partners {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.partner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  min-width: 200px;
}

.partner:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.partner img {
  max-height: 80px;
  max-width: 220px;
  object-fit: contain;
}

.partner__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--blue);
  text-align: center;
  font-weight: 600;
}

/* ---- Board / Vorstand ---- */

.board-list {
  max-width: 500px;
  margin: 0 auto;
}

.board-list__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--gray);
}

.board-list__item:last-child {
  border-bottom: none;
}

.board-list__name {
  font-weight: 600;
  color: var(--blue-dark);
}

.board-list__role {
  color: var(--text-light);
  font-size: 0.9rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* ---- Footer ---- */

.footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0 1.5rem;
}

.footer h3 {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
}

.footer a:hover {
  color: var(--white);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.4rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer__bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---- Modal (Impressum / Datenschutz) ---- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.modal__content {
  position: relative;
  background: var(--white);
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal__content h2 {
  font-family: var(--font-heading);
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.modal__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}

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

/* ---- French Page ---- */

.french-page__content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.french-page__content p {
  margin-bottom: 1rem;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
  }

  .nav__menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__menu li {
    width: 100%;
  }

  .nav__menu a {
    display: block;
    padding: 0.8rem 1.5rem;
  }

  .nav__menu a::after {
    display: none;
  }

  .nav__lang {
    margin: 0.5rem 1.5rem;
  }

  .nav__logo-text {
    display: none;
  }

  .hero {
    min-height: 70vh;
  }

  .section {
    padding: 3rem 0;
  }

  .event {
    flex-direction: column;
    gap: 1rem;
  }

  .event__date {
    flex-direction: row;
    gap: 0.5rem;
    min-width: auto;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    align-self: flex-start;
  }

  .event__day {
    font-size: 1.2rem;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
