/* =========================================================
   GLOBAL VARIABLES
   ========================================================= */
:root {
  --brand: #ff9800;
  --brand-dark: #e28300;
  --ink: #2b2b2b;
  --bg: #fff;
  --muted: #f5f5f7;
  --accent: #3a2d72;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(0,0,0,.08);
  --hover-shadow: 0 15px 35px rgba(0,0,0,.15);
  --transition-speed: 0.3s;
}

/* =========================================================
   BASIC RESET & GENERAL STYLES
   ========================================================= */
* { box-sizing: border-box; margin:0; padding:0; }

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  user-select: none;
  -webkit-user-select: none;
}

/* =========================================================
   LINKS
   ========================================================= */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-speed);
}
a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* =========================================================
   LAYOUT: CONTAINER & SECTION
   ========================================================= */
.container { max-width: 1120px; margin:0 auto; padding:0 20px; }
.section { padding:64px 0; }
.section--alt { background: var(--muted); }

/* =========================================================
   TYPOGRAPHY: HEADINGS
   ========================================================= */
h1,h2,h3 { font-family:'Baloo 2', cursive; color: var(--brand); }
h1 { font-size:3em; text-transform: uppercase; letter-spacing:1px; font-weight:900;text-shadow: -4px -4px 0 rgba(0,0,0,0.8);text-shadow: 4px -4px 0 rgba(0,0,0,0.8);text-shadow: -4px 4px 0 rgba(0,0,0,0.8);text-shadow: 4px px 0 rgba(0,0,0,0.8); }
h2 { font-size:2em; margin-bottom:24px; }
h3 { font-size:1.5em; margin-bottom:16px; }
h4 {
  font-size: 1.3em;
  margin-bottom: 16px;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.7);
}

/* =========================================================
   GRID & CARD COMPONENTS
   ========================================================= */
.grid {
  display:grid;
  gap:20px;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
}

.card {
  background:#fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
  text-align:center;
  transition: all var(--transition-speed);
  cursor:pointer;
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--hover-shadow);
}

/* overlay link für klickbare Karten */
.overlay-link {
  position:absolute;
  top:0; left:0;
  width:100%; height:100%;
  text-indent:-9999px;
  z-index:10;
}

#groups .grid {
  display: grid;
  gap: 20px;

  /* Mindestbreite der Karte: hier 260px – kannst du anpassen */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

  align-items: stretch;
}



/* =========================================================
   HEADER / HERO AREA
   ========================================================= */
header {
  background: url('../img/header_banner.png') center/cover no-repeat;
  color:#fff;
  text-align:center;
  padding:200px 20px;
  position: relative;
  overflow:hidden;
}

header h1 { animation: fadeInDown 1s ease forwards; }
header p  { font-size:1.2em; margin:10px 0 20px; animation: fadeInUp 1s ease forwards; }

.site-header {
    min-height: 720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 180px;
    padding-bottom: 80px;
    text-align: center;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn, .news-btn {
  display: inline-block;
  padding: 12px 25px;
  background: var(--brand);
  color: #000;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition-speed), transform var(--transition-speed);
  margin-top: 20px;
}

.btn:hover, .news-btn:hover {
  background: var(--brand-dark);
  transform: scale(1.02);
  color: #000
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background:#222;
  color:#ccc;
  text-align:center;
  padding:30px;
  font-size:0.9em;
}

/* ================================================
   Fix: Footer ganz unten trotz fester Navigation
   ================================================ */

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content-wrap {
    flex: 1;
    margin-top: 52px; /* Höhe der apple-nav */
}



/* =========================================================
   ANIMATIONS
   ========================================================= */
@keyframes fadeInDown {
  0%{opacity:0; transform:translateY(-30px);}
  100%{opacity:1; transform:translateY(0);}
}
@keyframes fadeInUp {
  0%{opacity:0; transform:translateY(30px);}
  100%{opacity:1; transform:translateY(0);}
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media(max-width:768px){
  h1{font-size:2.2em;}
  h2{font-size:1.8em;}
  h3{font-size:1.2em;}
  .section{padding:48px 0;}
}

@media(max-width:480px){
  h1{font-size:1.8em;}
  h2{font-size:1.5em;}
  h3{font-size:1em;}
}

/* =========================================================
   NEWS PAGE – MAIN IMAGE & TEXT
   ========================================================= */
.news-main-image {
    display:block;
    margin:0 auto 20px auto;
    max-width:500px;
    width:100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}
.news-main-image:hover {
    transform: scale(1.03);
    box-shadow: var(--hover-shadow);
}

.group-text p {
    margin-bottom:20px;
    line-height:1.8;
    font-size:1.1em;
}

/* =========================================================
   DROPDOWN (Jahresauswahl)
   ========================================================= */
.year-dropdown { margin-bottom: 20px; }

.year-dropdown button {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    background: var(--brand);
    color: #000;
    cursor: pointer;
    transition: all var(--transition-speed);
    margin-top: 20px;
}

.year-dropdown button:hover {
    background: var(--brand-dark);
    transform: scale(1.02);
}

.year-dropdown button::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.year-dropdown button.active::after {
    transform: rotate(-180deg);
}

.dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.dropdown-content.show {
    max-height: 1000px;
    padding: 20px 0;
}

/* =========================================================
   PHOTO GALLERY
   ========================================================= */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    justify-items: center;
    margin-top: 20px;
}

.photo-gallery .gallery-item {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.photo-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.photo-gallery .gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--hover-shadow);
}

/* responsive */
@media(max-width:1024px){
    .photo-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:600px){
    .photo-gallery { grid-template-columns: repeat(1, 1fr); }
}

/* =========================================================
   APPLE STYLE TOP NAVIGATION
   ========================================================= */
.apple-nav {
    width: 100%;
    height: 52px;
    background: rgba(22,22,23,0.85);
    backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #d2d2d2;
    font-size: 14px;
    transition: 0.2s;
}

.nav-links a:hover { color: #fff; }

/* =========================================================
   BURGER MENU (MOBILE)
   ========================================================= */
.burger {
    display: none;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

.burger .burger-icon {
    font-size: 28px;
    color: #fff;
    transition: opacity 0.25s ease;
}

.burger .close-icon {
    font-size: 30px;
    color: #fff;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.burger.open .burger-icon { opacity: 0; }
.burger.open .close-icon { opacity: 1; pointer-events: auto; }

@media (max-width: 900px) {
    .nav-links { display: none; }
    .burger { display: flex; }
}

/* =========================================================
   MOBILE MENU OVERLAY
   ========================================================= */
.mobile-menu {
    position: fixed;
    top: 52px;
    left: 0;
    width: 100%;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-bottom: 0;

    background: rgba(20,20,23,0.45);
    backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: translateY(-15px);
    transition:
        max-height 0.35s ease,
        opacity 0.35s ease,
        transform 0.35s ease,
        padding-bottom 0.35s ease;

    z-index: 1500;
    pointer-events: none;
}

.mobile-menu a {
    color: #fff;
    padding: 18px 0;
    font-size: 1.4em;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-menu.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    padding-bottom: 15px;
    pointer-events: auto;
}

/* =========================================================
   INSTAGRAM EMBEDS
   ========================================================= */
#instagram .instagram-media {
    width: 100% !important;
    max-width: 600px;
    min-width: 100% !important;

    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    background: #fff;

    margin: 30px auto !important;
    transition: transform var(--transition-speed),
                box-shadow var(--transition-speed);
}

#instagram .instagram-media:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow) !important;
}

#instagram blockquote.instagram-media {
    width: 100% !important;
    min-width: 100% !important;
}

/* =========================================================
   GROUP IMAGES
   ========================================================= */
.group-image {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px auto;
    display: block;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.group-image:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
}

.group-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

/* =========================================================
   VORSTANDSSEITE – GESAMTBILD
   ========================================================= */
.vorstand-header {
    max-width: 6000px;
    width: 100%;
    border-radius: var(--radius);
    display: block;
    margin: 0 auto 20px auto;
    box-shadow: var(--shadow);
}

/* =========================================================
   VORSTANDSSEITE – GRID
   ========================================================= */
.vorstand-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 30px;
}

/* =========================================================
   VORSTANDSSEITE – EINZELNE KARTEN
   ========================================================= */
.vorstand-card {
    text-align: center;
}

.vorstand-bild {
    width: 200px;
    height: auto;
    border-radius: var(--radius);
    margin: 0 auto 10px auto;
    display: block;
    box-shadow: var(--shadow);
    transition: transform var(--transition-speed),
                box-shadow var(--transition-speed);
}

.vorstand-bild:hover {
    transform: scale(1.05);
    box-shadow: var(--hover-shadow);
}

.vorstand-card h3 {
    margin: 10px 0 5px;
}

.vorstand-card p {
    margin: 0;
    font-size: 1.05em;
}

/* =========================================================
   VORSTANDSSEITE – MAIL-KONTAKTANZEIGE
   ========================================================= */
.kontakt-email {
    margin-top: 8px;
    font-size: 0.95em;
    color: var(--ink);
}

.kontakt-email a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.kontakt-email a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

/* =========================================================
   Geschichte Cards
   ========================================================= */

.cards {
  justify-content: center;
}

.card.card--auto {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card.card--auto img {
  display: block;
  margin: 0 auto;
  width: auto;
  max-width: 100%;
}

/* =========================================================
   TIMELINE / ZEITSRAL
   ========================================================= */

.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 20px;
  border-left: 4px solid var(--brand);
}

.timeline-item {
  margin: 30px 0 30px 20px;
  position: relative;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.timeline-year {
  font-family: "Baloo 2", cursive;
  font-size: 1.6rem;
  margin-bottom: 5px;
  color: var(--brand);
  font-weight: 700;
}

.timeline p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}


/* =========================================================
   SOCIAL MEDIA FLEX
   ========================================================= */
.social-flex {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 40px;
}

.social-box {
    flex: 1 1 45%;
    min-width: 320px;
}

.social-box .instagram-media,
.social-box iframe {
    width: 100% !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
    background: #fff;
    margin: 30px auto !important;
    transition: transform var(--transition-speed),
                box-shadow var(--transition-speed);
}

.social-box .instagram-media:hover,
.social-box iframe:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow) !important;
}

.social-box iframe {
    width: 100% !important;
    height: 560px !important;
    display: block;
    border: none !important;
    background: transparent !important;
}

.social-box {
    min-height: 760px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
