/* ============================================
   OHNE TX GEHT NIX – zentrales Designsystem
   Einheitlich für alle Seiten
   ============================================ */

:root {
  --yellow: #F9E93E;        /* exakt Logo-Farbe */
  --yellow-light: #FFF48C;  /* hellerer Ton für Flächen */
  --black: #000000;
  --white: #ffffff;
  --muted: #333333;
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* --- Grundlayout --- */
html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  background: var(--yellow);
  color: var(--black);
  scroll-behavior: smooth;
}

a {
  color: var(--black);
  text-decoration: none;
  transition: 0.2s;
}
a:hover {
  text-decoration: underline;
}

/* --- Header / Navigation --- */
header {
  background: var(--yellow);
  border-bottom: 2px solid var(--black);
  position: sticky;
  top: 0;
  z-index: 50;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
}

.brand img {
  height: 60px;
  width: auto;
}

nav ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-weight: 500;
}

nav a:hover {
  opacity: 0.7;
}

/* --- Responsive Menü --- */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--black);
}

.nav-links {
  display: flex;
}

@media (max-width: 820px) {
  .nav {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    display: none;
    width: 100%;
  }
  .nav-links.active {
    display: block;
  }
  .nav-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    border-top: 2px solid var(--black);
    background: var(--yellow);
  }
  .nav-links a {
    font-size: 18px;
    font-weight: 600;
  }
}

/* --- Hero-Bereich --- */
.hero {
  position: relative;
  text-align: center;
  padding: 180px 0 140px;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url('/assets/hero.jpg') center/cover no-repeat;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  margin-bottom: 16px;
}

.hero p {
  font-size: 20px;
  color: #f1f1f1;
  margin-bottom: 32px;
}

.btn {
  background: var(--yellow);
  color: var(--black);
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  transition: all .2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.btn:hover {
  background: #E6D72E;
  transform: translateY(-2px);
}

/* --- Inhalte / Sektionen --- */
.section {
  text-align: center;
  padding: 80px 20px;
  background: var(--yellow-light);
  border-top: 2px solid var(--black);
  border-bottom: 2px solid var(--black);
}

.section h2 {
  color: var(--black);
  font-size: 28px;
  margin-bottom: 20px;
}

.section p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
}

/* --- Footer --- */
footer {
  border-top: 2px solid var(--black);
  background: var(--yellow);
  text-align: center;
  padding: 30px 0;
  font-size: 15px;
  color: var(--black);
}

footer a {
  color: var(--black);
}

/* --- Allgemeine Elemente --- */
h1, h2, h3 {
  color: var(--black);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

blockquote {
  background: #fff3a8;
  border-left: 6px solid #000;
  padding: 12px 18px;
  margin: 20px auto;
  max-width: 800px;
  font-style: italic;
  font-size: 15px;
  color: #333;
}

/* --- News-Boxen (für news.php) --- */
.news-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin: 40px auto;
  max-width: 750px;
  padding: 0 15px;
}

.news-item {
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  width: 100%;
  padding: 20px;
  box-shadow: 4px 4px 0 #000;
  text-align: left;
}

.news-item h2 {
  color: #a30000;
  margin-bottom: 5px;
  font-size: 22px;
}

.news-item .date {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-item p {
  white-space: pre-line;
  font-size: 15px;
  color: #000;
}

.news-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #000;
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .section {
    padding: 60px 16px;
  }
  .news-container {
    max-width: 95%;
  }
}
/* --- Über uns Seite (ueber-uns.php) --- */

.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.content h1 {
  font-size: 36px;
  font-weight: bold;
  color: #a30000;
  margin-bottom: 20px;
}

.content h2 {
  font-size: 24px;
  color: #000;
  margin-top: 40px;
  margin-bottom: 10px;
}

.content p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Mission-Box */
.mission {
  background: #fff7c9;
  border-radius: 16px;
  border: 2px solid #000;
  padding: 30px;
  margin-top: 40px;
  text-align: left;
  box-shadow: 4px 4px 0 #000;
}

.mission h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 10px;
  color: #a30000;
}

/* Team-Abschnitt */
.team-section {
  margin-top: 60px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.member {
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.2s ease;
}

.member:hover {
  transform: translateY(-5px);
}

.photo-wrapper {
  width: 100%;
  max-width: 200px;
  height: 240px;
  margin: 0 auto 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #000;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member h3 {
  font-size: 18px;
  margin: 5px 0;
  color: #a30000;
}

.member span {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

blockquote {
  margin: 20px auto;
  background: #fff3a8;
  border-left: 6px solid #000;
  padding: 16px 20px;
  font-style: italic;
  font-size: 15px;
  color: #333;
  max-width: 800px;
}

/* Responsive Anpassung */
@media (max-width: 600px) {
  .content {
    padding: 40px 16px;
  }

  .mission {
    padding: 20px;
  }

  .photo-wrapper {
    max-width: 160px;
    height: 190px;
  }
}

/* --- Team-Seite --- */
.content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.team-section {
  margin-top: 50px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.member {
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 4px 4px 0 #000;
  transition: transform 0.2s ease;
}

.member:hover {
  transform: translateY(-5px);
}

.photo-wrapper {
  width: 100%;
  max-width: 200px;
  height: 240px;
  margin: 0 auto 16px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #000;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member h3 {
  font-size: 18px;
  margin: 5px 0;
  color: #a30000;
}

.member span {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.member blockquote {
  margin: 12px auto 0;
  background: #fff3a8;
  border-left: 5px solid #000;
  padding: 10px 14px;
  font-style: italic;
  font-size: 14px;
  color: #333;
  max-width: 240px;
}


/* --- News-Seite --- */
.news-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin: 40px auto;
  max-width: 800px;
  padding: 0 15px;
}

.news-item {
  background: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  width: 100%;
  padding: 20px;
  box-shadow: 4px 4px 0 #000;
  text-align: left;
}

.news-item img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #000;
  background: #fff;
  display: block;
}

.news-item video {
  width: 100%;
  max-height: 400px;
  border-radius: 10px;
  margin-bottom: 10px;
  border: 1px solid #000;
}

.news-item h2 {
  color: #a30000;
  margin-bottom: 5px;
  font-size: 22px;
}

.news-item .date {
  color: #666;
  font-size: 14px;
  margin-bottom: 10px;
}

.news-item p {
  white-space: pre-line;
  font-size: 15px;
  color: #000;
}

.pdf-viewer {
  width: 100%;
  height: 600px;
  border: 2px solid #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 3px 3px 0 #000;
}

.pdf-viewer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.pdf-link {
  background: #a30000;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.pdf-link:hover {
  background: #7a0000;
}

/* 📱 Mobile Optimierung */
@media (max-width: 768px) {
  .news-container {
    padding: 0 15px;
    margin: 30px auto;
  }
  .news-item {
    padding: 16px;
    border-width: 1.5px;
    box-shadow: 3px 3px 0 #000;
  }
  .news-item img,
  .news-item video,
  .pdf-viewer iframe {
    max-height: 400px;
  }
  h1 {
    font-size: 28px;
    margin-top: 40px;
  }
}

/* --- Kontakt-Seite --- */
.contact-form {
  max-width: 500px;
  margin: 40px auto 100px;
  text-align: left;
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
}

.contact-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #000;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1.5px solid #000;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #a30000;
}

.contact-form .btn {
  display: inline-block;
  background: #000;
  color: #ffec42;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  border: none;
}

.contact-form .btn:hover {
  background: #333;
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .contact-form {
    margin: 30px 15px 80px;
    padding: 25px 20px;
  }
}

/* === Login-Button im Header === */
nav .login-btn {
  display: flex;
  align-items: center;
  height: 100%;              /* sorgt für gleiche vertikale Mitte */
  margin: 0;
  padding: 0;
}

nav .login-btn form {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

nav .login-button {
  background: var(--black);
  color: var(--yellow);
  border: 2px solid var(--black);
  border-radius: 8px;
  font-weight: 700;
  padding: 8px 16px;
  line-height: 1;            /* gleiche Textlinie wie Menütexte */
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 2px 2px 0 #000;
  height: auto;
  margin: 0;
  vertical-align: middle;
}

nav .login-button:hover {
  background: var(--yellow);
  color: var(--black);
  transform: translateY(-2px);
}

/* Mobile Ansicht */
@media (max-width: 820px) {
  nav .login-btn {
    justify-content: center;
    margin-top: 10px;
  }
}

/* Alle Nav-Items vertikal mittig in der Zeile */
nav ul {
  display: flex;
  align-items: center;   /* <- sorgt für identische Höhe/Ausrichtung */
}

/* Links als inline-flex, damit Text exakt mittig sitzt */
nav a {
  display: inline-flex;
  align-items: center;
  height: 40px;          /* gemeinsame Höhe für Links */
}

/* Login-Button exakt auf gleiche Linie wie die Links */
nav .login-button {
  display: inline-flex;   /* Text vertikal zentriert */
  align-items: center;
  height: 40px;           /* gleiche Höhe wie Links */
  padding: 0 16px;        /* nur horizontales Padding */
  line-height: 40px;      /* Fallback für ältere Browser */
}