
/* Basic resets */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background-color: var(--color-light);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

/* Colour palette */
:root {
  --color-primary: #2E7D32;    /* dark green */
  --color-secondary: #81C784;  /* soft green */
  --color-accent: #FFB74D;     /* warm orange */
  --color-accent-dark: #F57C00;/* darker orange for hover states */
  --color-light: #F9F9F9;      /* light background */
}

/* Header */
/* Header styling: invert colours for improved contrast.  The logo sits on a white
 * background while the text and navigation links use the primary green.  On
 * mobile the navigation collapses behind a hamburger button. */
header {
  background-color: #ffffff;
  color: var(--color-primary);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid #e0e0e0;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  /* Increase the logo to 100×100 px for better visibility. */
  height: 100px;
  width: 100px;
  margin-right: 0.5rem;
}

header .site-title {
  font-size: 1.5rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--color-primary);
  font-weight: bold;
}

nav a:hover {
  color: var(--color-accent-dark);
}

/* Hide the nav list on small screens and show a toggle button. */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* Responsive navigation behaviour */
@media (max-width: 768px) {
  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background-color: #ffffff;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
  }
  nav ul.open {
    display: flex;
  }
  .nav-toggle {
    display: block;
  }
  /* Ensure header alignment on mobile */
  header {
    align-items: center;
  }
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  height: 60vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

/* Subtitle inside hero sections (e.g. on Gebühren-Seite) */
.hero .hero-subtitle {
  font-size: 1rem;
  margin-top: 0.5rem;
  font-style: italic;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 0.3rem;
  font-weight: bold;
  display: inline-block;
}

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

/* Sections */
section {
  padding: 2rem 2rem;
  background-color: var(--color-light);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.card {
  background-color: #fff;
  border-radius: 0.3rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  flex: 1 1 280px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 0.3rem 0.3rem 0 0;
}

.card h3 {
  margin-top: 0.5rem;
  color: var(--color-primary);
}

.card p {
  margin: 0.5rem 0 1rem;
}

/* Table styling for schedule and fees */
table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.5rem;
  border: 1px solid #ddd;
  text-align: left;
}

th {
  background-color: var(--color-primary);
  color: #fff;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

.btn-download {
  background-color: var(--color-secondary);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  font-size: 0.9rem;
}

.btn-download:hover {
  background-color: var(--color-accent);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .cards {
    flex-direction: column;
  }
}

footer {
  background-color: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: 1rem;
}

footer a {
  color: #fff;
  text-decoration: underline;
}
