/* 
  Rebuild of notare-koerner-koehn.de
  Clean minimal CSS retaining the original design, aesthetics, colors, and layout structure.
*/
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap');

:root {
  --primary-color: #166823;
  --text-color: #333;
  --bg-color: #fff;
  --font-family: "Open Sans", Arial, sans-serif;
  --container-width: 1000px; /* Original design max-width approx */
}

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

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: #eee; /* Outer background is light gray usually on these sites */
  line-height: 1.6;
}

/* Background Effects based on original (approx) */
.cm-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #e4e7e6; /* Guessed from typical templates, or blank */
}

#page_wrapper {
  max-width: var(--container-width);
  margin: 0 auto;
  background: var(--bg-color);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  padding: 20px 0;
  background: #fff;
  border-bottom: 2px solid #ccc;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.head_wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.cm-logo {
  display: block;
  width: 230px;
  height: 90px;
  background-image: url("assets/picture-1200___19af0001e78.file");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
}

nav li {
  position: relative;
  padding: 10px 0; /* Add padding to li to keep hover active when moving cursor down */
}

nav a {
  text-decoration: none;
  color: #555;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

/* Dropdown */
nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 220px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  flex-direction: column;
  gap: 0;
  z-index: 1000;
  border-top: 2px solid var(--primary-color);
  padding: 0;
}

nav li.has-dropdown:hover .dropdown {
  display: flex;
}

nav .dropdown li {
  width: 100%;
  padding: 0;
}

nav .dropdown a {
  display: block;
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  text-transform: none;
  font-weight: 600;
  color: #333;
}

nav .dropdown a:hover {
  background-color: #f9f9f9;
  color: var(--primary-color);
}

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

/* Key Visual / Hero Section */
.kv_wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 350px;
  /* They load different sizes based on breakpoints in the original but we use a good middle/large one */
  background-image: url("assets/picture-1200___19af00016a8.file");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Main Content Area */
#content_wrapper {
  display: flex;
  flex: 1;
  padding: 30px;
  gap: 40px;
}

.content_main {
  flex: 2;
}

.content_main h1 {
  font-family: "Open Sans", sans-serif;
  color: #166823;
  font-size: 24px;
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 300;
}

.content_main h2 {
  font-family: "Open Sans", sans-serif;
  color: #166823;
  font-size: large;
  margin-bottom: 0.7em;
  font-weight: 400;
}

.content_main h3 {
  font-family: "Open Sans", sans-serif;
  color: #166823;
  font-size: medium;
  margin-bottom: 0.7em;
  font-weight: 400;
}

.content_main p {
  font-family: "Open Sans", sans-serif;
  font-size: 14px;
  margin-bottom: 15px;
  color: #545454;
}

.content_main a {
  color: #212121;
  text-decoration: underline;
}

.content_main a:hover {
  color: #89744D;
  text-decoration: none;
}

.content_main ul, .content_main ol {
  font-size: 14px;
  color: #545454;
  margin-bottom: 15px;
  margin-left: 20px;
}

.separating-line {
  height: 1px;
  background-color: #ddd;
  margin: 30px 0;
}

/* Sidebar */
.sidebar_wrapper {
  flex: 1;
  border-left: 1px solid #eee;
  padding-left: 30px;
}

.sidebar {
  margin-bottom: 40px;
}

.sidebar h3, .sidebar .sidebar-title {
  color: var(--primary-color);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.sidebar table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 15px;
}

.sidebar td {
  padding: 5px 0;
  vertical-align: top;
}

.sidebar strong {
  font-weight: bold;
}

.sidebar a {
  color: #333;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

.sidebar-img-btn {
  display: block;
  margin-top: 5px;
}

.sidebar-img-btn img {
  width: 132px;
  height: auto;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  margin-bottom: 8px;
  color: var(--primary-color);
}

.sidebar-list a {
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.sidebar-list a:hover {
  color: var(--primary-color);
}

/* Footer */
footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #ddd;
  font-size: 13px;
  color: #666;
  margin: 0 30px;
}

footer a {
  color: #666;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer p {
  margin-top: 10px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  :root {
    --container-width: 100%;
  }

  body {
    overflow-x: hidden;
  }

  #page_wrapper {
    width: 100vw;
    box-shadow: none;
  }

  header {
    width: 100%;
    position: static;
    margin-left: 0;
    margin-right: 0;
  }

  .kv_wrapper {
    width: 100%;
    position: static;
    margin-left: 0;
    margin-right: 0;
    height: 200px; /* smaller hero image on mobile */
  }

  #content_wrapper {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }
  
  .sidebar_wrapper {
    border-left: none;
    border-top: 1px solid #eee;
    padding-left: 0;
    padding-top: 30px;
  }
  
  .head_wrapper {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Mobile Navigation */
  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 5px;
  }
  
  nav li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 0;
  }
  
  nav a {
    display: block;
    padding: 12px;
  }

  /* Mobile Dropdown */
  nav .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    background-color: #f9f9f9;
  }

  nav li.has-dropdown:hover .dropdown {
    display: flex;
  }
  
  nav .dropdown a {
    font-size: 13px;
    padding: 10px;
    border-bottom: 1px dotted #ccc;
  }
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #2D2E2D;
  color: #fff;
  padding: 15px 30px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
  z-index: 9999;
  font-family: var(--font-family);
  font-size: 13px;
}

.cookie-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-content p {
  margin: 0;
  flex: 1;
}

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

.cookie-buttons {
  display: flex;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 15px;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  font-family: var(--font-family);
  font-size: 13px;
  transition: opacity 0.2s;
}

.cookie-buttons button:hover {
  opacity: 0.9;
}

.btn-accept {
  background-color: var(--primary-color);
  color: #fff;
}

.btn-decline {
  background-color: #555;
  color: #fff;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    font-weight: bold;
    font-family: var(--font-family);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    #cm_navigation {
        display: none; /* Hidden by default on mobile */
        width: 100%;
    }
    
    #cm_navigation.open {
        display: block; /* Shown when toggled */
    }
}
