/*
Theme Name: Christian Theme
Theme URI: https://example.com/christian-theme
Author: Dein Name
Author URI: https://example.com
Description: Ein Fanpage-Theme für Christian
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: christian-theme
*/

/* ===== Grund-Setup ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #fff;
  background-color: #222;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;	
}
p {
  color: #fff;
  text-decoration: none;
}

a {
  color: #0093d0;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px; /* feste Höhe */
  background-color: #222;
  z-index: 1000;
  border: 2px solid limegreen; /* Sichtbarmachen */
}

.header-inner {
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
}

/* Grafik direkt unter Header, volle Breite */
.header-graphic {
 width: 100%;
  max-width: 1200px; /* gleiche Breite wie .header-inner oder main */
  height: auto;
  margin: 0 auto; /* zentrieren */
  overflow: hidden;
  position: relative; /* NICHT fixed! */
  z-index: 500; /* unter Header, aber über Main */
}

/* Bild passt sich an, maximal so breit wie die Seite */
.header-graphic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



/* Hauptbereich unten, genug Abstand wegen Header + Grafik */
main {
  padding-top: 300px; /* nur so viel wie der Header */
  position: relative;
  z-index: 1;
  background-color: #222;
  margin: 0 auto;
  max-width: 1200px; /* Optional: max Breite der Seite */
  box-sizing: border-box;
	border: 2px solid crimson;
}

/* Logo bleibt links, nimmt keine flexible Breite */
.logo {
  flex: 0 0 auto;
}

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* Menü wächst und zentriert die Links */
.main-menu {
  flex: 1 1 auto;           /* Menü wächst flexibel */
  display: flex;
  justify-content: center;  /* Menü-Links zentrieren */
}

/* Menü-Links horizontal */
.main-menu .menu {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-menu .menu li a {
  color: #0093d0;
  font-weight: 600;
  text-decoration: none;
  font-size: 16px;
}

.main-menu .menu li a:hover {
  text-decoration: underline;
}

/* Social Icons rechts, fix */
.nav-social {
  flex: 0 0 auto;
  display: flex;
  gap: 15px;
}

.social-icons {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-icons li a {
  color: white;
  font-size: 1.3em;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icons li a:hover {
  color: #0093d0;
}

.social-icons li a img {
  width: 24px;
  height: 24px;
  display: block;
  transition: opacity 0.3s ease;
}

.social-icons li a:hover img {
  opacity: 0.7;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

#burger { display: none; }

/* Hero */
#hero {
  background: url('https://via.placeholder.com/1200x400?text=Album-Cover') center/cover no-repeat;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
#hero h1 { font-size: 3rem; margin-bottom: 1rem; }
#hero button {
  padding: 0.8rem 2rem;
  background: #c2005b;
  border: none;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
}
#hero button:hover { background: #9e0047; }

/* Sections */
section {
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}
section.visible {
  opacity: 1;
  transform: translateY(0);
}
#about { display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; }
#about img {
  width: 300px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
#about .text h2 { color: #c2005b; margin-bottom: 1rem; }

.events-list, .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.event, .video {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: center;
}
.event .date { color: #c2005b; font-weight: bold; margin-bottom: 0.5rem; }
.event a {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #c2005b;
  color: #fff;
  border-radius: 25px;
}
.event a:hover { background: #9e0047; }

.album, .video img {
  width: 100%;
  border-radius: 15px;
}

footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1.5rem 2rem;
}
footer nav a { color: #fff; margin: 0 1rem; }

/* === Mobile Navigation === */
@media (max-width: 768px) {
  #burger { display: block; }
  nav ul {
    position: absolute;
    top: 60px;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  nav.open ul {
    display: flex;
  }
}

/* === Dark Mode === */
body.dark {
  background: #121212;
  color: #f1f1f1;
}
body.dark header { background: #1e1e1e; }
body.dark footer { background: #000; }
body.dark a { color: #ff88cc; }
body.dark .event, body.dark .video {
  background: #222;
  color: #fff;
}

/* === Termine === */
.mec-event-list-modern {
  max-width: 900px;
  margin: 40px auto;      /* oben/unten 40px Abstand, automatisch zentriert */
  padding: 0 20px;        /* links/rechts etwas Abstand zum Rand */
  text-align: center;     /* Inhalt innerhalb der Box mittig */
}

/* Allgemeines Layout-Zentrieren für Seiteninhalte */
main, .site-content, .page, .post, .entry-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  text-align: center;
}

/* Optional: Bilder ebenfalls zentriert darstellen */
.entry-content img,
.page img {
  display: block;
  margin: 20px auto;
}

/* Buttons mittig */
.wp-block-button {
  text-align: center;
}

/* Footer Grundstruktur */
.site-footer {
  background-color: #222;
  color: #fff;
  padding: 2rem 1rem;
  width: 100%;
}

.footer-inner {
 max-width: 1200px;
  margin: 0 auto;
  padding: 0 1em;
}

/* Linke Spalte: Leer oder Logo falls du magst */
/* Mittlere Spalte: Logo + Social + Copyright */
.footer-center {
    flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  align-items: center; /* Logo + Social mittig */
  position: relative;
  text-align: center;
}

/* Logo oben */
.footer-center .footer-logo {
  margin-bottom: 1em;
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Social Icons darunter, zentriert */
.footer-social-icons {
 display: flex;
  gap: 15px;
  justify-content: center; /* Zentriert die Icons */
  margin-bottom: 1em;
  width: 100%;
}

/* Copyright links unter Social, aber linksbündig in der mittleren Spalte */
.footer-center .footer-copyright {
  align-self: flex-start; /* Links ausrichten */
  font-size: 0.9rem;
  max-width: 250px;
}

/* Rechte Spalte: Menü rechtsbündig */
.footer-right {
  flex: 1 1 200px;
  text-align: right;
}

/* Footer Menü rechts nebeneinander */
.footer-menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
  justify-content: flex-end;
}

.footer-menu-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.footer-menu-links li a:hover {
  color: #0093d0;
}

/* Logo-Größe */
.footer-logo img,
.footer-center .custom-logo-link img {
  height: 80px;
  width: auto;
}

/* Responsive Anpassung für kleine Bildschirme */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .footer-center {
    align-items: center;
  }
  .footer-center .footer-copyright {
    align-self: center;
    text-align: center;
  }
  .footer-right {
    text-align: center;
  }
}
