/* 1. Basics & variables */

:root {
  --color-green-main: #9AC31C;
  --color-green-dark: #004b32;
  --color-green-accent: #ABC600;
  --color-blue-main: #00A3EA;
  --color-bg-light: #F2F6F9;
  --color-bg-muted: #E3EBE8;
  --color-text-main: #222222;
  --color-text-muted: #555555;
  --max-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.5;

  /* sticky footer layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 2. Layout helpers */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-main {
  flex: 1;
}

/* 3. Header & Nav – mobile first (< 700px) */

/* HEADER BASE */

.site-header {
  background: #ffffff;
  border-bottom: 2px solid var(--color-green-main);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.75rem 0;
  position: relative;
}

/* Burger button */

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--color-text-main);
  border-radius: 999px;
}

/* Mobile logo (next to burger) */

.logo-mobile img {
  height: 32px;
  width: auto;
  margin-left: 0.75rem;
}

/* Main nav – mobile: hidden dropdown */

.main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background: #ffffff;
  padding: 1rem 1.5rem 1.25rem;
  gap: 0.75rem;
  border-bottom: 2px solid var(--color-green-main);
  z-index: 10;
}

.main-nav.is-open {
  display: flex;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

/* desktop logo inside nav is hidden on mobile */
.nav-logo-desktop {
  display: none;
}

/* START link styling (same color as before) */
.nav-start {
  font-weight: 700;
  color: var(--color-green-dark);
}

/* Hover */
.main-nav a:hover {
  color: var(--color-blue-main);
}

/* 4. Hero – mobile first */

.hero {
  position: relative;
  padding: 3rem 0;
  overflow: hidden;
}

/* Background image (60% saturation) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/stock/cover.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.6);
  opacity: 1;
  z-index: 0;
}

/* Milchglas layer */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  text-align: center;
}

.hero-text {
  max-width: 34rem;
}

/* text inside home1 snippet */
.hero-text h1 {
  font-size: 2rem;
  margin: 0 0 0.75rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hero-text p {
  margin: 0 0 1.5rem;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.hero-image {
  flex: 0 0 auto;
}

.hero-image img {
  width: 220px;
  max-width: 70vw;
  border-radius: 999px;
  border: 4px solid var(--color-green-main);
  display: block;
}

.hero-date-badge {
  position: absolute !important;
  bottom: 1.5rem !important;
  right: 10rem !important;
  left: auto !important;
  width: 140px !important;
  max-width: none !important;
  z-index: 5 !important;
}



/* 5. Buttons */

.btn-primary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--color-green-main);
  color: #ffffff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: var(--color-green-dark);
}

/* 6. Highlights (index bottom section) */

.highlights {
  padding: 4rem 0 6rem;
  background: var(--color-blue-main);
}

.highlights h2 {
  text-align: center;
  font-size: 2.2rem;
  margin: 0 0 2rem;
  color: #ffffff;
}

.highlights-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.highlight-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1.5rem;
}

.highlight-card h3 {
  margin-top: 0;
}

.highlight-icon {
  width: 70px;       /* make it bigger */
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;   /* center horizontally + add spacing */
}

/* 7. Footer */

.site-footer {
  background: var(--color-green-main);
  color: #ffffff;
  padding: 1rem 0;
  margin-top: 0; /* no gap between content and footer */
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.site-footer a {
  color: #ffffff;
  text-decoration: underline;
}

/* 8. Generic page sections (other pages) */

.page-section {
  padding: 1.0rem 0;
}

.page-section h1,
.page-section h2 {
  margin-top: 0;
}

/* 9. Support page grid */

.support-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.support-block {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.support-block h2 {
  margin-top: 0;
}

/* 10. Issues grid */

/* FORCE SINGLE COLUMN FOR THEMEN PAGE */
.issues-grid {
  display: block !important;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.issues-grid .issue-block {
  margin-bottom: 2rem;
  width: 100%;
}


.issue-block {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.issue-block h2,
.issue-block h3 {
  margin-top: 0;
}

/* 11. Contact */

.contact-list {
  list-style: none;
  padding-left: 0;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

/* 12. Missing text fallback styling */

[data-text-src].missing {
  color: #b00020;
  font-style: italic;
}

/* 13. Desktop / tablet breakpoint (>= 700px) */

@media (min-width: 700px) {

  /* HEADER: Start left, logo centered, nav right */

  .header-inner {
    justify-content: center;
  }

  .nav-toggle,
  .logo-mobile {
    display: none;            /* no burger / mobile logo on desktop */
  }

  .main-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    border-bottom: none;
    background: transparent;
  }

  .nav-start {
    margin-right: auto;       /* pushes everything else to the right */
  }

  .nav-logo-desktop {
    display: block;
    height: 40px;
    width: auto;
  }

  /* first <a> after logo = "Über mich" -> push right block out */
  .main-nav a:nth-of-type(2) {
    margin-left: auto;
  }

  /* Hero side-by-side */
  .hero-inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .hero-text {
    flex: 1 1 0;
  }

  .hero-image {
    flex: 0 0 auto;
  }

  .hero-date-badge {
    width: 90px;
    bottom: -10px;
    left: -10px;
  }

  .hero-text h1 {
    font-size: 2.4rem;
  }

  /* Highlights grid: 3 columns */
  .highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Support and issues: 2 columns on larger screens */
  .support-grid,
  .issues-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Footer side-by-side */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.page-about {
  background: var(--color-bg-muted); /* soft grey */
  padding: 3rem 0;
}

:root {
  --color-bg-grey: #d0d4d2;
}

/* About page layout */
.page-about {
  background: var(--color-bg-muted);
  padding: 1rem 0 1rem;   /* equal top/bottom padding -> subtitle sits "in the middle" */
  text-align: center;
}

.about-subtitle {
  margin: 0 0 1rem;       /* no big gap above, nice gap below */
  font-size: 1.8rem;
  font-weight: 700;
  text-align: left;     /* centered text */
  color: var(--color-text-main);
}

/* Card grid */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;   /* spacing between cards */
}

/* Card styling */
.about-card {
  background: var(--color-green-dark);
  color: #ffffff;                     /* white text */
  padding: 1.75rem;
  border-radius: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  text-align: justify;
  text-justify: inter-word;
}

.about-card img {
  width: 250px;
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Layout of the about cards */
.about-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;           /* primary spacing between cards */
}

/* Fallback: even if .about-grid is missing, cards get space */
.about-card + .about-card {
  margin-top: 1.5rem;
}

.site-main {
  text-align: justify;
  text-justify: inter-word;
}

/* ABOUT INTRO */
.about-intro {
  background: var(--color-bg-light);
  padding: 3rem 0;
}

.about-intro-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.about-intro-text {
  max-width: 700px;
}

/* Image style: no border, no rounding */
.about-intro-img img {
  width: 230px;
  max-width: 45vw;
  border: none;
  border-radius: 1rem;
  display: block;
}

/* Desktop: text left, image right */
@media (min-width: 700px) {
  .about-intro-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .about-intro-img img {
    width: 300px;
    max-width: none;
  }
}

@media (max-width: 699px) {
  .about-card {
    flex-direction: column;
  }

  .about-card img {
    order: 2;  /* image below text */
    width: 100%;
    max-width: 320px;
    margin-top: 1rem;
  }

  .about-card-text {
    order: 1;
  }
}

@media (min-width: 700px) {
  .about-card {
    flex-direction: row;
  }

  .about-card img {
    width: 250px; /* your preferred size */
    order: 0;
  }
}

.twint-qr {
  max-width: 160px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0.5rem auto 0;
  align-items: center;
}

/* 10a. Issues: collapsible blocks */

.issue-block {
  position: relative;           /* needed to position the toggle button */
  padding-bottom: 3rem;         /* extra space so button doesn't overlap text */
}

/* default: expanded */
.issue-content {
  max-height: none;
}

/* collapsed state: show only the first chunk of text */
.issue-block.is-collapsed .issue-content {
  max-height: 7rem;             /* adjust if you want more/less preview */
  overflow: hidden;
}

/* Toggle button */

.issue-toggle {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  border: none;
  background: var(--color-green-dark);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.25rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.issue-toggle:hover {
  background: var(--color-green-main);
}

.issue-toggle-symbol {
  display: inline-block;
}

