/* ============================
   Google Fonts (getrennt)
============================ */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Creepster&display=swap'); /* Headings; bei Bedarf austauschbar */

/* ============================
   Design Tokens
============================ */
:root{
  --bg: #0b0b0b;
  --surface: #111;
  --text: #e0e0e0;
  --muted: #bdbdbd;
  --accent: #9b59b6;          /* Violett */
  --accent-strong: #7d3fa0;
  --border: #222;
  --shadow: 0 2px 10px rgba(0,0,0,.5);
}

/* ============================
   Base
============================ */
*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:'Roboto',system-ui,-apple-system,Segoe UI,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.6;
  padding-bottom: 70px;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:none; }

/* ============================
   Container & Sections
============================ */
.container, .tabs-container{
  max-width:1180px;
  margin:0 auto;              /* mittig */
  padding: 1rem;             /* Seitenabstand */
}
.section{
  padding:2.5rem 0;
}

/* ============================
   Typography
============================ */
h1,h2,h3{
  font-family:'Creepster',cursive; /* Falls Überschrift-Font nicht lädt: */
  color:#fff;
  margin:0 0 1rem 0;
  line-height:1.2;
}
h1{ font-size:2.5rem; letter-spacing:2px; text-transform:uppercase; }
h2{ font-size:2rem; letter-spacing:1px; }
h3{ font-size:1.5rem; }
h4{ font-size:1.2rem; line-height:1;}
h5{ font-size:1.5rem; line-height:1; margin: 0 0 20px 0;}
p { font-size:1rem; margin: 0; padding: 0; }
/* Optionaler Akzent für H2 */
.heading-accent{
  border-left:4px solid var(--accent);
  padding-left:1rem;
}

/* ============================
   Header & Navigation
============================ */
header{
  position:sticky; top:0; z-index:1000;
  background:rgba(17,17,17,.95);
  backdrop-filter: blur(5px);
  border-bottom:2px solid var(--accent);
  box-shadow:var(--shadow);
}
.header-inner{
  display:flex; align-items:flex-end; gap:1rem;
  padding:1rem
}
.logo img{
  max-width: 288px;
}
.logo p{
  font-size:0.75rem;
}

/* Nav: Desktop */
nav{ position:relative; margin-left:auto;}
nav ul{
  list-style:none; margin:0; padding:0;
  display:flex; gap:2rem; align-items:center;
}
nav li a{
  color:var(--accent); font-weight:500; position:relative; padding:.25rem 0;
}
nav li a::after{
  content:''; position:absolute; left:0; bottom:-4px; height:2px; width:0;
  background:var(--accent); transition:width .25s ease;
}
nav li a:hover::after{ width:100%; }

/* Burger */
.burger{
  display:none; flex-direction:column; gap:6px; cursor:pointer;
  margin-left:1rem;
}
.burger div{
  width:26px; height:3px; background:var(--accent);
  transition:transform .3s ease, opacity .3s ease;
}

/* Aktiv-Zustand (Burger -> X) */
nav.active .burger div:nth-child(1){
  transform: rotate(45deg) translate(5px,6px);
}
nav.active .burger div:nth-child(2){
  opacity:0;
}
nav.active .burger div:nth-child(3){
  transform: rotate(-45deg) translate(5px,-6px);
}

/* ============================
   Two-Column Layout (Startseite)
============================ */
.two-column{
  display:flex; align-items:center; justify-content:center;
  gap:20px;padding-bottom: 80px;
}
.one-column{
  padding-bottom: 80px;
}
.text-column{ flex:1; }
.image-column{
  flex:2; display:flex; justify-content:center; align-items:center; max-width: 400px;
}
.image-column img{
  max-width: 400px;
}
/* ============================
   Buttons
============================ */
.button, .btn{
  display:inline-block; border:none; cursor:pointer;
  background:var(--accent); color:#fff; font-weight:700;
  padding:.75rem 1.25rem; border-radius:6px;
  transition: background .2s ease;
}
.button:hover,.btn:hover{ background:var(--accent-strong); }
.button:disabled{ opacity:.6; cursor:not-allowed; }

/* ============================
   Download-Liste
============================ */
.download-list{ list-style:none; padding:0; margin:1rem 0; }
.download-list li{ margin:.5rem 0; }
.download-list a{ color:var(--accent); }
.download-card{
  border:1px solid var(--border); border-radius:10px; padding:1rem;
  background:#121212;
}

/* ============================
   Accordion (über uns))
============================ */
.accordion-container {
  margin:30px 0 0 0;
  border-top: 0px solid var(--accent); /* dunkles Rot als Linie */
  border-left: 3px solid var(--accent);
  font-family: 'Helvetica', 'Arial', sans-serif; 
}

.accordion-toggle {
  width: 100%;
  background: #111; /* dunkelgrau/schwarz */
  color: var(--accent);   /* dezentes Gothic-Rot */
  cursor: pointer;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: bold;
  border: none;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.3s;
}

.accordion-toggle:hover {
  background: #222; /* etwas helleres Schwarz beim Hover */
}

.accordion-content {
  display: none;
  padding: 16px 20px;
  background: #1a1a1a; /* dunkles Grau für Kontrast */
  color: #eee;
  line-height: 1.6;
  border-left: 0px solid var(--accent);
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.accordion-content p{
  font-size:0.8rem;
}

/* ============================
   Formulare (Kontakt)
============================ */
form{
  max-width:680px; margin:0; display:flex; flex-direction:column; gap:1rem; padding-top: 1rem; 
}
label{ font-weight:500; color:#fff; }
input,textarea{
  width:100%; padding:.7rem 1rem;
  border:1px solid #2a2a2a; border-radius:6px;
  background:#1a1a1a; color:#fff; font:inherit;
}
input:focus,textarea:focus{
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px rgba(155,89,182,.15);
}
textarea{ min-height:140px; resize:vertical; }

/* Submit als Button-Stil übernehmen */
button[type="submit"]{ composes: button; } /* ignoriert von Browsern, nur Doku */
button[type="submit"]{
  background:var(--accent); color:#fff; border:none; padding:.9rem 1.25rem;
  border-radius:6px; font-weight:700; cursor:pointer;
}
button[type="submit"]:hover{ background:var(--accent-strong); }

/* ============================
   Footer
============================ 
footer {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  font-family: 'Roboto', sans-serif;
  color: var(--muted);
  width: 100%;
}
.footer-inner{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  background:var(--surface);
  border-top:2px solid var(--accent);
  font-family:'Roboto',sans-serif;
  color:var(--muted);
  flex-wrap:wrap;
}

.footer-left, .footer-right{
  display: flex;
  align-items: flex-start;
}
.footer-left p {
  margin: 0;
  line-height: 1.2;
  font-size: 0.9rem;
}
.footer-right a{
  margin: 0;
  margin-left:12px;
  display:inline-block;
}

.social-icon{
  width:24px;
  height:24px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s, filter 0.2s;
}

.social-icon:hover{
  transform: scale(1.2);
  filter: brightness(0) invert(0.8) sepia(1) hue-rotate(270deg) saturate(5);
  
}*/

/* Footer Base */
footer {
  background: var(--surface);
  border-top: 2px solid var(--accent);
  color: var(--muted);
  font-family: 'Roboto', sans-serif;
  width: 100%;
}

/* Footer Inner */
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Inhalt vertikal zentriert */
  padding: 1rem;
  flex-wrap: wrap;
}

.footer-left p {
  margin: 0;
  line-height: 1.2;
  font-size: 0.9rem;
}

.footer-left a {
  color: var(--accent);
  text-decoration: none;
}

.footer-left a:hover {
  text-decoration: underline;
}

.footer-right {
  display: flex;        /* wichtig für horizontale Anordnung */
  flex-direction: row;  /* nebeneinander */
  align-items: center;
  gap: 10px;            /* Abstand zwischen Icons */
}

.footer-right a {
  margin: 0;   
}

.social-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s, filter 0.2s;
}

.social-icon:hover {
  transform: scale(1.2);
  filter: brightness(0) invert(0.8) sepia(1) hue-rotate(270deg) saturate(5);
}

/* Cookie Info Box */
.cookie-info {
  display: none;
  background: #111;
  color: #ddd;
  font-size: 0.9rem;
  padding: 1rem;
  border-top: 1px solid #333;
  text-align: left;
}

.cookie-info p{
  font-size: 0.9rem;
}

.cookie-info a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================
   Desktop: fixed Footer
============================ */
@media (min-width: 769px) {
  footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
  }
  body {
    margin-bottom: 70px !important; /* Höhe Footer */
  }
}

/* ============================
   Mobile: normal Footer
============================ */
@media (max-width: 768px) {
  footer {
    position: static;
  }
  body {
    padding-bottom: 0;
  }
  .footer-inner {
    flex-direction: column; /* Container stapelt Text + Social */
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-right {
    flex-direction: row; /* Social-Icons nebeneinander */
    display: flex;
    gap: 8px; /* Abstand zwischen den Icons */
  }
  .footer-right a {
    margin-left: 0; /* Margin durch gap ersetzt */
  }
}

/* ============================
   Responsive (<= 768px)
============================ */
/*@media (min-width: 769px) {
  footer {
    position: fixed; 
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
  }*/

@media (max-width: 768px){
body {
    padding-bottom: 0;
  }
  .logo img{
    width: 100%;
  max-width: 288px;
}
  /* Nav: mobil als Off-canvas Dropdown */
  nav ul{
    position:absolute; top:56px; right:0;
    background:rgba(17,17,17,.98);
    flex-direction:column; gap:1rem;
    width:240px; padding:1rem 1rem;
    border-left:2px solid var(--accent);
    box-shadow:var(--shadow);
    display:none;               /* zu */
  }
  nav.active ul{ display:flex; }/* auf */
  .burger{ display:flex; }      /* Burger zeigen */

  /* Inhalt */
  .container { padding:20px !important; }
  .section{ padding:20px 0; }   /* vertikal kompakter */
  .two-column{
    flex-direction:column; text-align:center;
    padding:20px 0; gap:20px;   /* umlaufend 20px kommt vom Container */
  }
  .image-column{ order:-1; }    /* Bild zwischen Header (H1) und Text */
  .image-column img{
  max-width: 200px;
}
  /* Typo kleiner */
  h1{ font-size:2rem; }
  h2{ font-size:1.5rem; }
}
/*footer {
    position: static;  Footer normal im Fluss 
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-right a {
    margin-left: 8px;
  }*/

@media (max-width: 480px){
  /*.footer{
    flex-direction:column;
    align-items:center;
    gap:0.5rem;
    text-align:center;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }
  .footer-right a {
    margin-left: 8px;
  }*/
}

/* ============================
   Tabs (Desktop) / Accordion (Mobile)
============================ */
.tabs-buttons {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  /*margin-bottom: 1.5rem;*/
  gap: 0.5rem;
}
.tabs-content {
  margin-bottom: 80px;
}
.tab-btn {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--border);
  border-bottom: none;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 0.9rem;
}

.tab-btn.active {
  background: var(--bg);
  color: var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
}

.tab-btn:hover {
  color: var(--accent-strong);
}

/* Tab Content */
.tab {
  display: none;
  background: var(--surface);
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
}

.tab.active {
  display: block;
}

.preview {
  font-style: italic;
  color: var(--muted);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.full-content {
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ============================
   Mobile: Accordion
============================ */
@media (max-width: 768px) {
  .tabs-buttons { display: none; } /* Buttons ausblenden */

  .tab {
    display: block; /* alle Tabs sichtbar */
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    padding: 0;
    overflow: hidden;
  }

  .full-content {
    display: none;
    padding: 1rem 1.25rem;
  }

  .tab.active .full-content {
    display: block;
  }

  .preview {
    padding: 0.75rem 1.25rem;
    display: block;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    font-weight: 500;
  }
}

.language-toggle {
  display: inline-block;
  position: relative;
}

/* Checkbox komplett ausblenden */
.language-toggle input {
  display: none;
}

.switch {
  display: block;
  width: 48px;           /* Breite */
  height: 24px;          /* Höhe */
  border-radius: 12px;   /* Halbe Höhe für runde Enden */
  border: 1px solid black;
  background-image: url('https://www.goths-against-fascism.de/img/lang_switch_bg.png');
  background-size: cover;
  cursor: pointer;
  position: relative;
  transition: background-position 0.3s ease;
}

/* Der Kreis-Schieber */
.switch:before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;             /* Startposition für Englisch */
  width: 22px;           /* Höhe minus 2px Rand */
  height: 22px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

/* Position für Deutsch (rechts) */
#lang-toggle:checked + .switch:before {
  transform: translateX(24px); /* Slider bewegt sich um Breite minus Kreis */
}

/* ============================
   Utilities (optional)
============================ */

.hr{
  height:1px; background:#1f1f1f; border:none; margin:2rem 0;
}
.muted{ color:var(--muted); }
.center{ text-align:center; }
.mt-2{ margin-top:.5rem; } .mt-4{ margin-top:1rem; } .mt-8{ margin-top:2rem; }
.mb-2{ margin-bottom:.5rem; } .mb-4{ margin-bottom:1rem; } .mb-8{ margin-bottom:2rem; }

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important; /* 4 Spalten Desktop */
    gap: 20px !important;
    width: 100%;
}

.instagram-post {
    background: #111;
    color: #eee;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.instagram-post img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: 0.3s;
}

.instagram-post img:hover {
    filter: brightness(1.1);
    transform: scale(1.02);
}

.instagram-post .caption {
    background: #1a1a1a;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.3;
    color: #eee;
    text-align: left;
    border-top: 1px solid #222;
}

/* Mobile: unter 801px zwei Spalten */
@media (max-width: 801px) {
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* 2 Spalten mobil */
        justify-items: center;
    }
    .instagram-post {
        max-width: 350px;
        width: 100%;
    }
}

.captcha-hinweis {
  font-size: 0.9em;
  color: #bbb;
  margin-bottom: 0px;
  margin-top: -15px;
}

/* News-Bereich */
.news-container h1 {
  margin-bottom: 1rem;
  color: #fff;
}

.news-item {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 0; /* Abstand zwischen Bild und Text entfernt */
  margin-bottom: 20px;
  align-items: start;
  background: #1a1a1a; /* durchgehende Fläche */
  border-radius: 10px;  /* abgerundete Ecken außen */
  overflow: hidden;     /* sorgt dafür, dass die inneren runden Ecken sichtbar bleiben */
}

.news-item.reverse {
  grid-template-columns: 1fr 250px;
}

.news-image img {
  width: 100%;
  height: auto;
  max-width: 250px; /* gleiche Breite wie Instagram-Posts */
  display: block;
  object-fit: cover;
  border-radius: 10px 0 0 10px; /* links abgerundet */
}
.news-item.reverse .news-image img {
  border-radius: 0 10px 10px 0; /* rechts abgerundet */
}
.news-text {
  background: #1a1a1a; /* wie Instagram Caption */
  color: #eee;
  padding: 20px;
  font-size: 13px;
  line-height: 1.3;
  border-radius: 0 10px 10px 0; /* rechts abgerundet zum Bild */
}
.news-item.reverse .news-text {
  border-radius: 10px 0 0 10px; /* links abgerundet zum Bild */
}
.news-text h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

.news-text p {
  margin: 0;
}

/* Reversiert die Position der Kinder */
.news-item.reverse .news-image {
  order: 2; /* Bild nach rechts */
}

.news-item.reverse .news-text {
  order: 1; /* Text nach links */
}

/* ============================ */
/* Mobile: Bild über Text */
/* ============================ */
@media (max-width: 768px) {
    .news-item,
  .news-item.reverse {
    grid-template-columns: 1fr;
  }
  .news-item.reverse .news-image,
  .news-item.reverse .news-text {
    order: unset; /* Reihenfolge wieder normal */
  }
  .news-image img, .news-item.reverse .news-image img {
    max-width: 100%; /* Bild passt sich Containerbreite an */
    border-radius: 10px 10px 0 0; /* oben abgerundet */
  }
  .news-text {
    border-radius: 0 0 10px 10px; /* unten abgerundet */
  }
}

/* Trennlinie zwischen News und Instagram */
.section-divider {
  border: none;
  height: 2px;
  background-color: var(--accent); /* gleiche Farbe wie Footer-Linie */
  margin: 40px 0; /* Abstand oben und unten */
  width: 100%;
  max-width: 1180px; /* gleiche Breite wie Container */
  margin-left: auto;
  margin-right: auto;
}