/*
Theme Name: AFD Entwaffnen
Theme URI: https://afd-entwaffnen.de
Author: Thomas Hempel
Description: Kampagnentheme "Keine Waffen für die AfD" basierend auf dem HTML-Prototyp.
Version: 1.0
Text Domain: afd-entwaffnen
*/

html, body {
  margin: 0;
  padding: 0;
}
/* Grundlayout */
body {
  margin: 0;
  font-family: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #e6e6e6; /* graue Ränder */
  color: #111;
  line-height: 1.5;
}

a {
  color: #e3000b;
}

a:hover,
a:focus {
  text-decoration: underline;	
  text-decoration-style: dotted;
}

/* =======================
   STICKY HEADER
   ======================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #e3000b;
  overflow: visible;
}

/* weißer Bereich für Logo + Menü */
.header-content {
  background: transparent; /* statt #ffffff */
  position: relative;
  z-index: 2;
  padding-top: 10px;      /* vorher 120px */
  padding-bottom: 20px;   /* ggf. anpassen */
}

/* Elterncontainer als Bezugspunkt für absolute Positionierung */
.header-inner {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0px 30px 0px 50px;        /* kein extra top/bottom-Padding mehr */
  box-sizing: border-box;
}

/* Menü + Logo deutlich über den Fransen */
/* (Kommentar jetzt korrekt!) */
 /* Menü + Logo deutlich über den Fransen */
.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: relative;
  z-index: 2;             /* liegt über header-fringe */
}

/* Fransen im Hintergrund, aber über dem Seitenhintergrund */
.header-fringe {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -70px;          /* Überhang in den Content */
  width: 100vw;           /* wirklich GANZE Fensterbreite */
  height: 180px;

  background-image: url("images/header-edge-top.png");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 180px;

  z-index: 1;             /* unter header-bar, über Hintergrund */
  pointer-events: none;
}

/* Menü links, Logo rechts */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 1;
}

.logo {
  order: 2;
}

.logo {
/* outline: 1px solid lime;     nur zum Debuggen */
}

.logo img {
/*  outline: 1px dashed yellow;   nur zum Debuggen */
}

.logo img {
  height: auto;      /* testweise deutlich größer */
  max-height: 70px;   /* keine zusätzliche Kappung */
  width: auto;

}

@media (min-width: 1025px) {
  .logo img {
    max-height: 115px;
	display: block;
    transform: scale(1.2) translateX(-2.5em);
  }
}


/* Navigation Desktop – aktuell weiß (auf weißem Header unsichtbar!) */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: #ffffff;             /* hier auf rot gestellt, damit man sie sieht */
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
  /*text-transform: uppercase;*/
}

.nav-menu a:hover,
.nav-menu a:focus {
  color: #ffffff;	
  text-decoration: underline;	
  text-decoration-style: dotted;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 4px;
  color: #ffffff;
  font-size: 1.1rem;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
}

.nav-toggle:focus {
  outline: 2px solid #e3000b;
  outline-offset: 2px;
}

/* =======================
   CONTENT
   ======================= */

.site-main {
  padding: 0 0 3rem 0;   /* vorher 2rem */
}

.content-wrapper {
  max-width: 1160px;
  margin: 0 auto;
  background: #ffffff;
  padding: 0 3rem 2rem 3rem;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
  position: relative;     /* reicht, kein z-index nötig */
}


/* HERO – ein Stück unter die Fransen ziehen */
.hero {
  position: relative;
  max-width: 1160px;
  margin: 0 -3rem 1.5rem -3rem;   /* Padding des Wrappers kompensieren */
}

.hero img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* Headline im Bild */
.hero-headline {
  position: absolute;
  top: 33%;
  left: 3rem;                    /* vorher 33% – rückt weiter nach links */
  transform: translateY(-50%);  /* nur vertikal zentrieren */
  text-align: left;
  text-decoration: extra black;
  font-weight: 900;
  /*letter-spacing: 0.04em;*/
  font-size: 4.7rem;           /* vorher 2.6rem */
  line-height: 1.1;
}
/* Jede Zeile einzeln steuerbar */
/* Zeile 1 + 2 inline (nebeneinander) */
.hero-headline .line-1,
.hero-headline .line-2 {
  display: inline;          /* auf einer Zeile */
  white-space: nowrap;      /* verhindert automatischen Zeilenumbruch */
}

/* Zeile 3 bleibt block (darunter) */
.hero-headline .line-3 {
  display: block;
  margin-top: 0.2em;        /* schöner Abstand */
}

/* Farbschema */
.hero-headline .line-1 {
  color: #e3000b;               /* rot */
}

.hero-headline .line-2,
.hero-headline .line-3 {
  color: #ffffff;               /* weiß */
}

/* Copyright im Bild – Desktop */
.hero-copyright {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;                /* Basisposition */

  /* vertikale Schrift */
  writing-mode: vertical-rl;
  transform: translateY(-170px) rotate(180deg);  /* drehen, nach OBEN schieben */
  /*transform: translateY(-170px);   nach OBEN schieben */
  color: #ffffff;
  opacity: 0.75;
  font-size: 0.75rem;
  line-height: 1.2;

  z-index: 15;                   /* über den Fransen */
  pointer-events: none;
}

/* weiße Fransen am unteren Bildrand – nur Breite des Heros */
.hero-fringe {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;                       /* leicht in den Content hinein */
  height: 180px;

  background-image: url("images/content-edge-top-white.png");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 180px;        /* proportional, nicht gestaucht */

  pointer-events: none;
}

/* =======================
   CONTENT
   ======================= */
/* Inhalt direkt unter dem Hero-Bild */
.section-page-content {
  position: relative;
  margin-top: -120px;     /* 120px nach oben “in” die Fransen schieben */
  padding-top: 2.5rem;   /* etwas Platz nach oben, damit die H2 Luft hat */
  z-index: 20;           /* über der .hero-fringe, aber unter Header */
}


/* =======================
   PFEILE
   ======================= */

/* rote Pfeile (für Links auf weißem Grund) */
.arrow-icon {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  background-image: url("images/Pfeil_rot_normal.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
  margin-right: 0.3rem;
  transition: transform 0.15s ease-out, background-image 0.15s ease-out;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: inherit;
}

.arrow-text {
  text-decoration: bold;	
}

.arrow-link:hover .arrow-icon,
.arrow-link:focus .arrow-icon {
  transform: scale(1.08);
  background-image: url("images/Pfeil_rot_mouseover.png");
}

/* weiße Pfeile (für rote Buttons) */
.arrow-icon-white {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  background-image: url("images/Pfeil_weiss_normal.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  vertical-align: middle;
  margin-right: 0.3rem;
  transition: transform 0.15s ease-out, background-image 0.15s ease-out;
}

.arrow-link-white {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: bold;
  color: #ffffff;
}

.arrow-link-white .arrow-text {
  text-decoration: bold;	
  color: #ffffff;
}

.arrow-link-white:hover .arrow-icon-white,
.arrow-link-white:focus .arrow-icon-white {
  transform: scale(1.08);
  background-image: url("images/Pfeil_weiss_mouseover.png");
}

/* Überschriften / Buttons */
.section-intro h2,
.section-material h2,
.section-mitmachen h2 {
  margin-top: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.page-title {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e3000b;
  color: #fff;
  border-radius: 3px;
  padding: 0.6rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  margin: 0.5rem 0 1rem 0;
}

.cta-button:hover,
.cta-button:focus {
  background: #b00008;
  text-decoration: underline;
  text-decoration-style: dotted;
}

section {
  margin-bottom: 2rem;
}

ul {
  padding-left: 1.2rem;
}

/* =======================
   FOOTER
   ======================= */

.site-footer {
  background: #ffffff;      /* technisch weiß, schwarz kommt aus der Grafik */
  position: relative;
  margin-top: 0;
  overflow: visible;
}

/* schwarze Fransen: repeat-x, ragen 70px in den Content hinein */
.footer-fringe {
  position: absolute;
  top: -110px;               /* Überhang in den Content */
  left: 0;
  right: 0;

  height: 314px;
  background-image: url("images/content-edge-top.png");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: auto 314px;
  z-index: 1;
}

/* Footer-Inhalt über den Fransen */
.footer-inner {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 0 auto;
  padding: 50px 1.5rem 40px;  /* genug Platz innerhalb der schwarzen Fläche */
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #eee;
}

.footer-logo img {
  max-height: 120px;
  height: auto;
  display: block;
}

.footer-meta p {
  margin: 0.1rem 0;
  font-size: 0.9rem;
  font-weight: 400;
}

.footer-meta a {
  color: #eee;
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;	
  text-decoration-style: dotted;
}

/* =======================
   RESPONSIVE
   ======================= */

@media (max-width: 1024px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0.4rem;
    flex-direction: column;
    background: #e3000b;
    padding: 0.5rem 0;
    border-radius: 4px;
    min-width: 160px;
    display: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
    z-index: 4;
  }

  .nav-menu a {
    color: #ffffff;
  }

  .nav-menu--open {
    display: flex;
  }

  .nav-menu li {
    padding: 0.2rem 0.8rem;
  }

  .header-inner,
  .content-wrapper,
  .footer-inner {
    max-width: 900px;
  }
}

@media (max-width: 768px) {
  body {
    background: #ffffff;
  }

	.header-bar {
	  align-items: flex-start;
	}
	.logo img {
	  max-height: 58px;   
	  width: auto;
	}	
	.header-fringe {
	  height: 150px;
	  background-size: auto 150px;
	}

  .content-wrapper {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 1rem 1rem 1.5rem 1rem;
  }

  .site-main {
    padding: 0 0 2rem 0;  
  }

  .header-inner {
    padding: 0 0.8rem;
  }

  .hero {
    margin: -10px -1rem 1rem -1rem;
  }
  .hero-fringe { 
	bottom: -26px; 
	height: 150px; 
  	background-size: auto 150px;        /* proportional, nicht gestaucht */
  }

  .hero-headline {
      font-size: 2.1rem;
	  top: 38%;
	  left: 1rem;                    /* vorher 33% – rückt weiter nach links */
	}	

  .hero-copyright {
    writing-mode: horizontal-tb;
    transform: none;        /* keine Drehung auf Handy */
    bottom: 3.6rem;
    right: 0.75rem;
    color: #000;
    font-size: 0.65rem;
    opacity: 0.85;
  }

	.footer-fringe {
	  top: -60px;               /* Überhang in den Content */
	  height: 240px;
	  background-size: auto 240px;
	}

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 1rem 40px;
  }
  .footer-logo img {
	  max-height: 60px;
	  height: auto;
	  display: block;
	}
}
/* Designer-Highlight Farben */
:root {
  --entwaffnen-red: #e3000b;
}

/* Basis: Headlines als inline-block für Masken */
.hl-red-12,
.hl-red-23,
.hl-red-10,
.hl-red-13 {
  display: inline-block;
  position: relative;
}

/* Variante: Wort 1 + 2 rot */
.wp-block-heading.hl-red-12 span:nth-child(-n + 2) {
  color: var(--entwaffnen-red, #e3000b);
}

/* Variante: Wort 1 rot */
.wp-block-heading.hl-red-10 span:nth-child(1) {
  color: var(--entwaffnen-red, #e3000b);
}

/* Variante: Wort 2 + 3 rot */
.wp-block-heading.hl-red-23 span:nth-child(n + 2):nth-child(-n + 3) {
  color: var(--entwaffnen-red, #e3000b);
}

/* Variante: Wort 1–3 rot */
.wp-block-heading.hl-red-13 span:nth-child(-n + 3) {
  color: var(--entwaffnen-red, #e3000b);
}

/* Utility: Zerlege die Headline automatisch in Wörter */
.hl-red-23,
.hl-red-12,
.hl-red-10,
.hl-red-13 {
  white-space: normal;
}

.hl-red-23 span,
.hl-red-12 span,
.hl-red-10 span,
.hl-red-13 span {
  display: inline;
}

