/* Open Sans lokal eingebunden */
@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-Regular.woff2') format('woff2'),
	   url('fonts/OpenSans-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  src: url('fonts/OpenSans-Bold.woff2') format('woff2'),
	   url('fonts/OpenSans-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Grundstil */
body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #f5f5f5; /* sehr helles Grau */
  color: #333333; /* dunkles Grau */
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 40px;
  background-color: #dddddd;
}

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

.header p {
  padding: 0 20px;
}

/* Basis Logo */
.logo img,
.logo svg {
  padding: 20px 20px 0 20px;
}

.logo a {
  color: #2d6bb8;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.3rem;
}

.logo a:hover {
  color: #666666;
  text-decoration: none;
}

.home-button {
  display: inline-flex;        /* Icon + Text nebeneinander */
  align-items: center;
  gap: 8px;                    /* Abstand zwischen Icon und Text */
  background-color: #2d6bb8;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 400;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-left: 20px;
  margin-bottom: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.home-button:hover,
.home-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Icon soll mit Text mitziehen */
.home-button .icon-home {
  vertical-align: middle;
  margin-top: -25px;
  margin-left: -20px;
  margin-right: -20px;
}

/* Haupttitel */
.main-title {
  text-align: center;
  color: #2d6bb8;
  font-size: 1.7rem;
  margin-bottom: 40px;
  padding: 0 150px;
}

.main-subtitle {
  text-align: center;
  padding: 0 150px 60px 150px;
}

/* Typografie */
h1, h2 {
  color: #2d6bb8;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 1.7rem;
}

h2, h3 {
  font-size: 1.3rem;
}

div.contentheadline h3 {
  padding-top: 30px;
  margin-bottom: -10px;
}

.slogan {
  font-size: 1.3rem;
  color: #2d6bb8;
  font-weight: bold;
  font-style: italic;
}

p a {
  color: #2d6bb8;
  text-decoration: none;
  transition: color 0.3s ease;
}

p a:hover {
  color: #666666;
  text-decoration: none;
}

/* Content */
.content section {
  margin-bottom: 30px;
}

/* 4 Inhaltsbereiche 2-spaltig */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 50px;
}

.info-box h2 {
  color: #2d6bb8;
}

.info-box p {
  color: #333;
}

/* Linie unter Info-Boxen */
.info-box {
  position: relative;
  padding-bottom: 20px; /* Abstand zur Linie */
}

.info-box::after {
  content: "";
  display: block;
  width: 60px;
  height: 2px;
  background-color: #ccc;
  margin-top: 10px;
}

/* Abgegrenzter Kontaktbereich */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background-color: #e0e0e0;
  padding: 20px;
  margin-bottom: 40px;
}

.contact-left p {
  margin: 0;
}

.contact-right h3 {
  color: #2d6bb8;
  margin-top: 0;
  margin-bottom: 10px;
}

.contact-right p a {
  color: #2d6bb8;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 1.3rem;
}

.contact-right p a:hover {
  color: #666666;
  text-decoration: none;
}

span.kontakt-blau a {
  color: #2d6bb8;
  font-size: 1.3rem;
}

span.kontakt-blau a:hover {
  color: #666666;
}

/* Footer */
.footer {
  border-top: 1px solid #ccc;
  padding-top: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  text-align: center;
}

.footer a {
  color: #2d6bb8;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #5095e2;
  text-decoration: none;
}

/* Responsives Layout */

@media (max-width: 1023px) {
  .main-title {
    padding: 0;
    text-align: left;
  }
  
  .main-subtitle {
    padding: 0;
    padding-bottom: 40px;
    text-align: left;
  }
  
}

@media (min-width: 769px) {
  .header {
    grid-template-columns: 5fr 7fr; /* links 5, rechts 7 */
  }
  
  .logo {
    padding-right: 20px;
  }
}

@media (max-width: 768px) {
  .header {
	grid-template-columns: 1fr;
	text-align: center;
  }

  .logo, .header-image {
	justify-self: center;
  }
  
  .logo {
    padding: 0 10px; /* etwas Abstand links/rechts */
    text-align: center;
  }
  
  .main-title {
    padding: 0;
    text-align: left;
  }
  
  .main-subtitle {
    padding: 0;
    padding-bottom: 40px;
    text-align: left;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  .contact-section {
    grid-template-columns: 1fr;
    text-align: left;
  }
  
}