/* AfD Winsen (Luhe) 2026 - Premium Campaign Site Styles */
/* Corporate Design aligned: Hellblau #00ccff, Dunkelblau #006699, Schwarzblau #173557, Rot #D5172F */

:root {
  --afd-hellblau: #00ccff;
  --afd-dunkelblau: #006699;
  --afd-schwarzblau: #173557;
  --afd-rot: #D5172F;
  --afd-text: #0f172a;
  --afd-muted: #475569;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--afd-text);
  line-height: 1.6;
}

/* Premium typography */
h1, h2, .display {
  font-family: "Bitter", Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.1;
}

.section-title {
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(to right, var(--afd-rot), var(--afd-dunkelblau));
  border-radius: 3px;
}

/* Nav */
.nav {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 0 rgb(15 23 42 / 0.06);
}

/* Hero - heavily tuned for mobile */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 38%;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero {
    background-position: center 42%;
    background-attachment: scroll;
    min-height: 100dvh;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom right,
    rgba(23, 53, 87, 0.86) 0%,
    rgba(23, 53, 87, 0.68) 42%,
    rgba(15, 23, 42, 0.58) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 46rem;
}

/* Logo treatment - respecting CD Schutzzone */
.logo {
  height: 46px;
  width: auto;
  display: block;
}

@media (min-width: 640px) {
  .logo {
    height: 52px;
  }
}

.logo-small {
  height: 36px;
  width: auto;
}

/* Cards - premium feel */
.theme-card,
.team-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0.0, 0.2, 1),
              border-color 0.2s ease;
  border: 1px solid #e2e8f0;
}

.theme-card:hover,
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 25px -5px rgb(15 23 42 / 0.08), 0 8px 10px -6px rgb(15 23 42 / 0.08);
  border-color: #cbd5e1;
}

/* Mobile card polish */
@media (max-width: 640px) {
  .theme-card {
    padding: 1.35rem 1.1rem;
  }
  .theme-card .icon-wrap {
    width: 46px;
    height: 46px;
  }
}

/* Extra mobile breathing room for key sections */
@media (max-width: 640px) {
  section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
  
  .countdown-section {
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }
  
  /* Slightly tighter container padding on phones */
  .max-w-7xl.px-6,
  .max-w-7xl.px-5 {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

.theme-card .icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--afd-schwarzblau), var(--afd-dunkelblau));
  color: white;
  transition: transform 0.3s ease;
}

.theme-card:hover .icon-wrap {
  transform: scale(1.05) rotate(2deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font-size: 0.95rem;
}

.btn-primary {
  background-color: var(--afd-rot);
  color: white;
  box-shadow: 0 10px 15px -3px rgb(213 23 47 / 0.25);
}

.btn-primary:hover {
  background-color: #b31226;
  transform: translateY(-1px);
  box-shadow: 0 20px 25px -5px rgb(213 23 47 / 0.3);
}

.btn-secondary {
  background-color: white;
  color: var(--afd-schwarzblau);
  border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
  background-color: #f8fafc;
  border-color: var(--afd-dunkelblau);
  color: var(--afd-dunkelblau);
}

.btn-ghost {
  color: white;
  border: 1px solid rgba(255,255,255,0.6);
}

.btn-ghost:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: white;
}

/* Team */
.team-photo {
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-card:hover .team-photo {
  transform: scale(1.04);
}

.team-card .role {
  color: var(--afd-dunkelblau);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
}

/* Form */
input, textarea, select {
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--afd-dunkelblau);
  box-shadow: 0 0 0 4px rgba(0, 102, 153, 0.1);
}

/* Accent elements */
.accent-red {
  color: var(--afd-rot);
}

.accent-blue {
  color: var(--afd-dunkelblau);
}

/* Footer */
footer a {
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--afd-hellblau);
}

/* Mobile nav */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle dividers */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 100px);
  background: var(--afd-schwarzblau);
  color: white;
  padding: 14px 24px;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: 100dvh;
  }
  
  .logo {
    height: 42px;
  }
}

/* Print friendly */
@media print {
  .nav, .btn, footer { display: none !important; }
}

/* ============================================
   PREMIUM ELECTION COUNTDOWN
   Inspired by high-quality campaign sites (max-ostermeier.de style)
   Heavily optimized for mobile
   ============================================ */

.countdown-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.countdown-container {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 1.75rem;
  padding: 1.5rem 1rem;
  box-shadow: 0 10px 15px -3px rgb(15 23 42 / 0.06);
  position: relative;
}

/* Subtle red accent line on top for extra "Wahlkampf" punch (especially visible on mobile) */
.countdown-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 3px;
  background: linear-gradient(to right, #D5172F, #173557);
  border-radius: 3px;
  opacity: 0.9;
}

@media (min-width: 640px) {
  .countdown-container {
    padding: 2rem 1.75rem;
    border-radius: 2rem;
  }
}

.countdown-header {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #D5172F;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .countdown-header {
    font-size: 0.95rem;
    letter-spacing: 1.75px;
  }
}

.countdown-title {
  font-size: 1.35rem;
  line-height: 1.1;
  margin-top: 0.15rem;
}

@media (min-width: 640px) {
  .countdown-title {
    font-size: 1.85rem;
  }
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1.1rem;
}

@media (min-width: 480px) {
  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1.35rem;
  }
}

.countdown-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 0.85rem 0.4rem 0.7rem;
  text-align: center;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.2s ease,
              border-color 0.2s ease;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 480px) {
  .countdown-item {
    padding: 1rem 0.5rem 0.85rem;
    min-height: 108px;
  }
}

.countdown-item:active {
  transform: scale(0.97);
}

@media (hover: hover) {
  .countdown-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgb(15 23 42 / 0.1);
    border-color: #cbd5e1;
  }
}

.countdown-number {
  font-family: "Bitter", Georgia, serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 0.95;
  color: #173557;
  letter-spacing: -0.045em;
  font-feature-settings: "tnum";
}

@media (min-width: 380px) {
  .countdown-number {
    font-size: 2.45rem;
  }
}

@media (min-width: 480px) {
  .countdown-number {
    font-size: clamp(2.1rem, 6.5vw, 3.1rem);
  }
}

/* Days get strong red accent - very visible on mobile */
.countdown-item:first-child .countdown-number {
  color: #D5172F;
  font-weight: 800;
}

.countdown-label {
  font-size: 0.65rem;
  letter-spacing: 1.6px;
  color: #475569;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 0.2rem;
  line-height: 1;
}

@media (min-width: 480px) {
  .countdown-label {
    font-size: 0.68rem;
    letter-spacing: 1.4px;
    margin-top: 0.3rem;
  }
}

.countdown-finished {
  font-size: 1.05rem;
  color: #D5172F;
  font-weight: 700;
  padding: 1.25rem 0.5rem;
  text-align: center;
  line-height: 1.3;
}

@media (min-width: 640px) {
  .countdown-finished {
    font-size: 1.25rem;
    padding: 1.75rem;
  }
}