:root {
  --primary-color: #1c535e; /* Dunkles Blaugrün aus dem Logo */
  --secondary-color: #a3c7cf; /* Helles Blaugrün aus dem Logo */
  --accent-color: #5a8f99;
  --text-color: #333;
  --light-bg: #f4f7f8;
  --white: #ffffff;
  --border-color: #e1e8e9;
  --header-height: 140px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  margin: 0;
  background-color: var(--white);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 25px;
}

/* Header & Navigation */
header {
  background-color: var(--white);
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}


.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo img {
  max-height: 70px;
  width: auto;
}

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

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s;
  font-size: 1rem;
  position: relative;
  padding-bottom: 5px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: width 0.3s;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
  margin-bottom: 40px !important;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3));
  z-index: 1;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 10px;
  border: none;
  padding: 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Page Header (for subpages) */
.page-header {
  background-color: var(--light-bg);
  padding: 40px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
  margin: 0;
  border: none;
}

/* Typography */
h1, h2, h3 {
  color: var(--primary-color);
  margin-top: 15px;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 1.8rem;
  margin-top: 15px;
  position: relative;
  padding-bottom: 10px;
}

h2.with-subtitle {
  padding-bottom: 0;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

h2.with-subtitle::after {
  display: none;
}

h3 {
  font-size: 1.2rem;
  margin-top: 1.5em;
  font-weight: 600;
}

h3.subtitle {
  margin-top: -0.2em;
  margin-bottom: 0.5em;
  padding-bottom: 10px;
  position: relative;
}

h3.subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

p {
  margin-bottom: 1.5em;
  font-size: 1.05rem;
}

/* Layout Elements */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin: 10px 0;
}

.image-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  margin: 20px 0;
}

.image-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Components */
.info-box {
  background-color: var(--white);
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  border-top: 5px solid var(--primary-color);
  margin: 20px 0;
}

table {
  width: 100%;
  max-width: 500px;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--border-color);
}

th {
  color: var(--primary-color);
  font-weight: 700;
}

.button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 14px 30px;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(28, 83, 94, 0.3);
}

.button:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(28, 83, 94, 0.4);
}

.alert {
  background-color: #fff8f1;
  border-left: 5px solid #f39c12;
  padding: 20px 25px;
  border-radius: 4px;
  margin: 30px 0;
}

hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 60px 0;
}

/* Custom grid for info-box content */
.grid-simple {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: flex-start;
}

.address-box {
  padding-right: 30px;
  border-right: 1px solid var(--border-color);
}

.address {
  font-size: 1.1rem;
  margin: 20px 0;
  color: var(--primary-color);
}

/* Vertical layout for info-box (used on Contact page) */
.address-box-vertical {
  padding-bottom: 20px;
}

.hours-box-vertical {
  padding-top: 20px;
}

.info-divider {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 20px 0;
}

.map-placeholder {
  margin-top: 25px;
}

@media (max-width: 768px) {
  .grid-simple {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .address-box {
    padding-right: 0;
    padding-bottom: 30px;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 80px 0 40px;
  margin-top: 80px;
}

footer a,
footer nav ul li a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover,
footer nav ul li a:hover,
footer nav ul li a.active {
  color: var(--white);
}

footer nav ul {
  justify-content: center;
  margin-bottom: 30px;
}

footer nav ul.legal-nav {
  margin-bottom: 40px;
  font-size: 0.9rem;
  opacity: 0.8;
}

footer nav ul li {
  margin: 0 20px;
}

.copyright {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 50px;
  opacity: 0.6;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
}

/* Responsive */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .header-content {
    flex-direction: column;
    padding: 20px 0;
  }

  .logo {
    margin-bottom: 25px;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul li {
    margin: 8px 12px;
  }

  .hero {
    height: 350px;
    margin-bottom: 20px !important;
  }

  .page-header {
    padding: 30px 0;
    margin-bottom: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  section {
    padding: 5px 0;
  }
}
