/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --thw-blue: #003399;
  --thw-blue-dark: #1E2F66;
  --thw-blue-light: #F8F8F9;
  --thw-accent: #0077B6;
  --thw-yellow: #FFEB00;
  --text-primary: #202020;
  --text-secondary: #53616B;
  --white: #FFFFFF;
  --gray-light: #F4F5F6;
  --gray-border: #DADEE1;
  --focus-color: #0077B6;
  --max-width: 1100px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--white);
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--thw-blue);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  border-radius: 0 0 4px 4px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ===== Focus Styles ===== */
:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 2px;
}

a:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  color: var(--thw-blue);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--thw-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--thw-blue-dark);
}

/* ===== Header / Navigation ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--thw-blue);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.nav-brand .nav-logo {
  height: 4rem;
  width: auto;
}

.nav-brand span {
  display: inline-block;
  max-width: 220px;
  line-height: 1.3;
}

/* Hamburger Menu Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--thw-blue);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a:focus {
  background: var(--thw-blue-light);
  color: var(--thw-blue);
}

.nav-menu .nav-cta {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--thw-blue);
  color: var(--thw-yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.nav-menu .nav-cta:hover,
.nav-menu .nav-cta:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--thw-blue-dark);
  color: var(--thw-yellow);
}

/* ===== Hero Section ===== */
.hero {
  margin-top: 72px;
  background: linear-gradient(135deg, var(--thw-blue) 0%, var(--thw-blue-dark) 100%);
  color: var(--white);
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--thw-yellow);
  color: var(--thw-blue);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover,
.hero-cta:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  color: var(--thw-blue);
}

/* ===== Sections ===== */
.section {
  padding: 5rem 1.5rem;
}

.section-alt {
  background: var(--gray-light);
}

.section-blue {
  background: var(--thw-blue);
  color: var(--white);
}

.section-blue h2,
.section-blue h3 {
  color: var(--white);
}

.section-blue a {
  color: var(--thw-blue-light);
}

.section-blue a:hover {
  color: var(--white);
}

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

.section-intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

/* ===== About Section ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.equipment-list {
  list-style: none;
  padding: 0;
}

.equipment-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  border-bottom: 1px solid var(--gray-border);
}

.equipment-list li:last-child {
  border-bottom: none;
}

.equipment-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--thw-accent);
  font-weight: 700;
}

/* ===== Vehicle Cards ===== */
.vehicle-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 2.5rem;
}

.vehicle-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.vehicle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 300px;
}

/* ===== Carousel ===== */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  min-width: 100%;
}

.carousel-slide .vehicle-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
  border: none;
  font-size: 2rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.2s;
  z-index: 2;
}

.carousel-btn:hover,
.carousel-btn:focus {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-btn-prev {
  left: 0.5rem;
}

.carousel-btn-next {
  right: 0.5rem;
}

.carousel-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.carousel-dot.is-active {
  background: var(--white);
}

.vehicle-info {
  padding: 2rem;
}

.vehicle-info h3 {
  font-size: 1.3rem;
  color: var(--thw-blue);
  margin-bottom: 1rem;
}

.vehicle-specs {
  width: 100%;
  border-collapse: collapse;
}

.vehicle-specs tr {
  border-bottom: 1px solid var(--gray-border);
}

.vehicle-specs tr:last-child {
  border-bottom: none;
}

.vehicle-specs th,
.vehicle-specs td {
  padding: 0.4rem 0;
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
}

.vehicle-specs th {
  font-weight: 600;
  color: var(--text-secondary);
  padding-right: 1rem;
  white-space: nowrap;
  width: 40%;
}

/* ===== Donation / CTA Section ===== */
.donate-box {
  background: var(--white);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.donate-box h3 {
  color: var(--thw-blue);
}

.bank-details {
  background: var(--gray-light);
  border-left: 4px solid var(--thw-blue);
  border-radius: 0 6px 6px 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  text-align: left;
}

.bank-details strong {
  display: block;
  margin-bottom: 0.25rem;
}

.iban {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--thw-blue);
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--thw-blue);
  color: var(--thw-yellow);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: var(--thw-blue-dark);
  color: var(--thw-yellow);
}

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

.btn-outline:hover,
.btn-outline:focus {
  background: var(--thw-blue);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--thw-blue);
}

.btn-white:hover,
.btn-white:focus {
  background: var(--thw-blue-light);
  color: var(--thw-blue);
  transform: translateY(-1px);
}

/* ===== Membership Section ===== */
.membership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.membership-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.membership-benefits li {
  padding: 0.4rem 0 0.4rem 1.75rem;
  position: relative;
}

.membership-benefits li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--thw-blue);
  font-weight: 700;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--thw-blue);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.5rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--white);
  text-decoration: underline;
}

.footer-copy {
  font-size: 0.9rem;
}

/* ===== Impressum Page ===== */
.page-header {
  margin-top: 72px;
  background: var(--thw-blue);
  color: var(--white);
  padding: 3rem 1.5rem;
}

.page-header h1 {
  color: var(--white);
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

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

.page-content h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-border);
}

.page-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.page-content h3 {
  margin-top: 1.5rem;
}

.page-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.page-content li {
  margin-bottom: 0.25rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid,
  .membership-grid,
  .vehicle-card-inner {
    grid-template-columns: 1fr;
  }

  .vehicle-image {
    min-height: 200px;
    max-height: 350px;
  }
}

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

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    gap: 0;
  }

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

  .nav-menu a {
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 0.5rem;
    text-align: center;
    width: 100%;
    display: block;
  }

  .hero {
    padding: 4rem 1.5rem 3.5rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .donate-box {
    padding: 1.5rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

/* ===== Print Styles ===== */
@media print {
  .site-header,
  .site-footer,
  .nav-toggle,
  .hero::before,
  .hero-cta,
  .btn,
  .nav-cta,
  .skip-link {
    display: none;
  }

  .hero {
    margin-top: 0;
    background: none;
    color: var(--text-primary);
    padding: 2rem 0;
  }

  .hero h1 {
    color: var(--thw-blue);
  }

  .section {
    padding: 1.5rem 0;
  }

  body {
    font-size: 12pt;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: var(--text-secondary);
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  .vehicle-card {
    box-shadow: none;
    border: 1px solid var(--gray-border);
  }

  .vehicle-card-inner {
    grid-template-columns: 1fr;
  }
}
