/* ============================================
   Bürgerinitiative Tüßling – Shared Styles
   Modeled after bi-tuessling.de original design
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,300;0,400;0,700;0,800;1,300&display=swap');

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

:root {
  --orange:       #F1562A;
  --orange-hover: #d44720;
  --blue:         #1E78B4;
  --blue-dark:    #185f8e;
  --blue-list:    #3D9BE9;
  --text:         #000000;
  --text-body:    #333333;
  --text-light:   #727272;
  --border:       #E8E6E6;
  --header-height: 80px;
  --max-width: 980px;
  --hero-bg: url('https://static.wixstatic.com/media/04de4a_7e9b240097614ebf8f5044f81c6159fb~mv2.jpg/v1/fill/w_980,h_567,al_c,q_85,usm_0.66_1.00_0.01,enc_auto/04de4a_7e9b240097614ebf8f5044f81c6159fb~mv2.jpg');
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', 'Avenir', 'Avenir LT W01 35 Light', 'Helvetica Neue', sans-serif;
  font-weight: 300;
  color: var(--text-body);
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  color: var(--orange-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Header & Navigation
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 60px;
  width: 60px;
  object-fit: contain;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  color: var(--text);
  font-family: 'Nunito', 'Avenir LT W01 85 Heavy', sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--orange);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--orange);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   Main Content
   ============================================ */

main {
  min-height: calc(100vh - var(--header-height) - 80px);
}

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

/* ============================================
   Page Hero (inner pages)
   ============================================ */

.page-hero {
  position: relative;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center 40%;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 0 20px 40px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.35) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.page-hero-eyebrow {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--orange);
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  margin-bottom: 0;
  line-height: 1.15;
}

/* ============================================
   Index – Hero Section (two-column with SVG)
   ============================================ */

.hero-section {
  background-color: #fff;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center 40%;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.94);
  z-index: 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  min-height: 420px;
  position: relative;
  z-index: 1;
}

.hero-illustration-wrap {
  flex: 0 0 auto;
  width: 450px;
  margin-left: -30px;
  margin-top: -30px;
  margin-bottom: -20px;
}

.hero-illustration {
  display: block;
  width: 100%;
  height: auto;
}

.hero-text {
  flex: 1 1 auto;
  padding: 48px 20px 48px 10px;
  max-width: 520px;
}

.hero-text p {
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.875em;
  margin-bottom: 24px;
  font-weight: 300;
}

.hero-text .hero-link {
  color: var(--orange);
  font-weight: 400;
  text-decoration: underline;
}

.hero-text .hero-link:hover {
  color: var(--orange-hover);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  padding: 12px 28px;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--orange-hover);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: #fff;
}

/* ============================================
   Section styles
   ============================================ */

.section {
  padding: 70px 20px;
}

.section-white { background: #fff; }
.section-gray  { background: #f7f7f7; }
.section-blue  { background: var(--blue); }

/* ============================================
   Goals / "Wofür wir uns einsetzen"
   ============================================ */

.goals-section {
  padding: 70px 20px;
  background: #fff;
  text-align: center;
}

.goals-section-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--blue-list);
  line-height: 1.1;
  margin-bottom: 20px;
}

.goals-section-sub {
  max-width: 680px;
  margin: 0 auto 40px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
  font-weight: 300;
}

.goals-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  line-height: 2em;
}

.goals-list li {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-list);
  line-height: 2em;
}

.goals-cta {
  margin-top: 20px;
}

/* ============================================
   Goals detail cards (what-we-do.html)
   ============================================ */

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.goal-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px 24px;
  border-top: 3px solid var(--blue-list);
}

.goal-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--blue-list);
  margin-bottom: 10px;
}

.goal-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

.goal-card a {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

/* ============================================
   Section title (generic)
   ============================================ */

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-list);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-body);
  margin-bottom: 32px;
  font-weight: 300;
  max-width: 780px;
  line-height: 1.8;
}

/* ============================================
   Blue welcome / membership section
   ============================================ */

.welcome-section {
  background: var(--blue);
  padding: 70px 0;
}

.welcome-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.welcome-heading {
  flex: 0 0 auto;
  width: 360px;
}

.welcome-heading h2 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.welcome-body {
  flex: 1 1 auto;
}

.welcome-body p {
  color: #fff;
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
  font-weight: 300;
}

.welcome-body p strong {
  font-weight: 700;
}

.welcome-body .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.btn-white {
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}

.btn-white:hover {
  background: #e8e8e8;
  color: var(--blue-dark);
}

.btn-white-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-weight: 700;
}

.btn-white-outline:hover {
  background: #fff;
  color: var(--blue);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 28px;
}

.contact-card h3 {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
  color: var(--orange);
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  font-weight: 300;
}

.contact-card a {
  color: var(--text-body);
}

.contact-card a:hover {
  color: var(--orange);
}

/* ============================================
   Content Block (impressum, datenschutz, etc.)
   ============================================ */

.content-block {
  max-width: 780px;
}

.content-block h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-list);
  margin-top: 36px;
  margin-bottom: 12px;
}

.content-block p {
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.7;
  font-weight: 300;
}

.content-block ul, .content-block ol {
  padding-left: 24px;
  margin-bottom: 16px;
  color: var(--text-body);
  font-weight: 300;
}

.content-block li {
  margin-bottom: 6px;
  line-height: 1.6;
}

blockquote {
  border-left: 3px solid var(--blue-list);
  padding: 12px 20px;
  background: #f5f9fd;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-body);
  font-weight: 300;
}

blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-style: normal;
  color: #888;
}

/* ============================================
   News / Articles (about-2)
   ============================================ */

.article-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 780px;
}

.article-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}

.article-card:last-child {
  border-bottom: none;
}

.article-meta {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 8px;
  font-weight: 300;
}

.article-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-card p {
  color: var(--text-body);
  margin-bottom: 12px;
  line-height: 1.7;
  font-weight: 300;
}

.article-card .read-more {
  font-weight: 700;
  font-size: 0.9rem;
}

.article-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.article-photos img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

/* ============================================
   Hochwasser Map
   ============================================ */

.map-image {
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--border);
  margin: 24px 0;
}

.map-caption {
  font-size: 0.85rem;
  color: #888;
  margin-top: 6px;
  font-style: italic;
}

/* ============================================
   Membership box (for what-we-do & kopie pages)
   ============================================ */

.membership-box {
  background: var(--blue);
  padding: 40px;
  margin-top: 32px;
}

.membership-box h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.membership-box p {
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.7;
  font-weight: 300;
}

.membership-box .btn-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: #f5f5f5;
  border-top: 1px solid var(--border);
  padding: 24px 20px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-inner a {
  color: var(--text-light);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--orange);
  text-decoration: underline;
}

.footer-inner .sep {
  color: var(--border);
}

/* ============================================
   Responsive – Mobile
   ============================================ */

@media (max-width: 768px) {
  :root {
    --header-height: 65px;
  }

  .logo img {
    height: 45px;
    width: 45px;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    border-bottom: 1px solid var(--border);
  }

  .main-nav li:last-child a {
    border-bottom: none;
  }

  /* Hero mobile */
  .hero-inner {
    flex-direction: column;
    min-height: auto;
  }

  .hero-illustration-wrap {
    width: 100%;
    margin: 0;
    order: 2;
    max-height: 220px;
    overflow: hidden;
  }

  .hero-text {
    order: 1;
    padding: 30px 16px 20px;
    max-width: 100%;
  }

  .hero-text p {
    font-size: 15px;
  }

  /* Goals section mobile */
  .goals-section-title {
    font-size: 2rem;
  }

  .goals-list li {
    font-size: 1.2rem;
  }

  /* Welcome/blue section mobile */
  .welcome-inner {
    flex-direction: column;
    gap: 20px;
  }

  .welcome-heading {
    width: 100%;
  }

  .welcome-heading h2 {
    font-size: 2.2rem;
  }

  .welcome-body .btn-row {
    flex-direction: column;
  }

  .welcome-body .btn-row .btn {
    text-align: center;
  }

  /* Generic section mobile */
  .section {
    padding: 40px 16px;
  }

  .goals-section {
    padding: 40px 16px;
  }

  .welcome-section {
    padding: 40px 0;
  }

  .welcome-inner {
    padding: 0 16px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .page-hero {
    min-height: 200px;
    padding: 0 16px 28px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  /* Goals grid mobile */
  .goals-grid {
    grid-template-columns: 1fr;
  }

  /* Contact section mobile */
  .contact-section {
    grid-template-columns: 1fr;
  }

  /* Article photos mobile */
  .article-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Membership box mobile */
  .membership-box {
    padding: 24px 16px;
  }

  .membership-box .btn-row {
    flex-direction: column;
  }

  .membership-box .btn-row .btn {
    text-align: center;
  }

  .footer-inner {
    gap: 6px 16px;
  }
}

@media (max-width: 480px) {
  .hero-illustration-wrap {
    max-height: 180px;
  }

  .article-photos {
    grid-template-columns: 1fr;
  }
}
