@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

/* =========================================================================
   CSS Reset & Variables
   ========================================================================= */
:root {
  /* Colors - Derived from the live site */
  --primary-color: #133566; /* The deep blue used in the separator and headings */
  --text-color: #333333;
  --bg-color: #ffffff;
  --bg-sidebar: rgba(255, 255, 255, 0.05);
  --header-bg: #f9f9f9; /* Fallback if no bg image */
  --link-color: #133566;
  --link-hover-color: #0b1f3c;
  
  /* Typography */
  --font-family: 'Open Sans', Arial, sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --padding-standard: 20px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* =========================================================================
   Typography & Links
   ========================================================================= */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  text-decoration: underline;
  color: var(--link-hover-color);
}

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

/* =========================================================================
   Layout & Container
   ========================================================================= */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--padding-standard);
}

/* =========================================================================
   Header & Banner
   ========================================================================= */
.site-header {
  position: relative;
  width: 100vw;
  background-color: var(--header-bg);
  /* The banner image will be set here or via inline style per page if it changes */
  background-image: url('assets/banner.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 350px; /* Adjust based on actual design */
  display: flex;
  flex-direction: column;
}

.header-top {
  width: 100%;
  background: rgba(255,255,255,0.9); /* Semi-transparent top bar for nav */
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 80px; /* Adjust as needed */
  width: auto;
}

/* =========================================================================
   Navigation (Desktop)
   ========================================================================= */
.main-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-weight: 600;
  text-transform: uppercase;
  padding: 10px 5px;
  display: block;
}

.nav-link:hover, .nav-item.active .nav-link {
  text-decoration: none;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

/* Dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 250px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  list-style: none;
  z-index: 100;
  border-top: 2px solid var(--primary-color);
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu a {
  padding: 12px 15px;
  display: block;
  font-size: 0.9rem;
  color: #333;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5;
  color: var(--primary-color);
  text-decoration: none;
}

/* =========================================================================
   Mobile Navigation (Burger Menu)
   ========================================================================= */
.burger-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
  padding: 10px;
}

/* =========================================================================
   Main Content Area
   ========================================================================= */
.content-area {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 40px;
  padding: 50px 0;
}

.main-content {
  /* Content styling */
}

/* Separator Line from original design */
.separator {
  height: 4px;
  border-top: 1px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  margin: 30px 0;
  width: 100%;
}

/* =========================================================================
   Sidebar
   ========================================================================= */
.sidebar {
  background-color: var(--bg-sidebar);
  padding: 20px;
  text-align: center;
}

.sidebar h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.sidebar img.sidebar-logo {
  max-width: 150px;
  margin: 0 auto 20px;
  display: block;
}

.sidebar p {
  margin-bottom: 15px;
  font-size: 0.95rem;
}

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 30px 0;
  margin-top: 50px;
}

.site-footer a {
  color: #fff;
  margin: 0 5px;
}

.site-footer a:hover {
  text-decoration: underline;
  color: #ddd;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* =========================================================================
   Cookie Banner
   ========================================================================= */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(19, 53, 102, 0.95); /* Primary color slightly transparent */
  color: white;
  padding: 20px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.4s ease-in-out;
}

#cookie-banner.show {
  transform: translateY(0);
}

.cookie-text {
  max-width: 800px;
  font-size: 0.9rem;
}

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

.cookie-buttons button {
  background-color: #fff;
  color: var(--primary-color);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 4px;
  margin-left: 10px;
  transition: background-color 0.2s;
}

.cookie-buttons button:hover {
  background-color: #eee;
}

/* =========================================================================
   Media Queries
   ========================================================================= */
@media (max-width: 992px) {
  .content-area {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .burger-menu-btn {
    display: block;
  }

  .main-nav {
    display: none; /* Hide default nav */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 99;
  }

  .main-nav.active {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee;
  }

  .nav-link {
    padding: 15px 20px;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    background-color: #f9f9f9;
    padding-left: 20px;
    display: none;
  }
  
  .nav-item.dropdown:hover .dropdown-menu,
  .nav-item.dropdown.active .dropdown-menu {
    display: block;
  }
  
  .site-header {
      min-height: 250px;
  }
}

/* =========================================================================
   Additions to CSS for Home Hero Image and overall polish
   ========================================================================= */
.home-hero-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.main-content h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Polishing the Sidebar to match original */
.sidebar {
    background-color: var(--bg-sidebar);
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

/* Fixing table styling in subpages */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

td, th {
    padding: 10px;
    vertical-align: top;
}

/* Specific styling from Impressum / Kontakt matching the original */
table td:first-child {
    font-weight: 600;
    width: 30%;
}

