/* ========================================
   RESET & BASE
   ======================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: #555;
  background-color: #fff;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 70vh;
}


a {
  text-decoration: none;
  color: inherit;
}

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

/* ========================================
   LAYOUT CONTAINER
   ======================================== */
.site-container {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}


/* ========================================
   HEADER
   ======================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0 10px;
  position: relative;
}

.site-logo {
  display: block;
  height: auto;
  max-height: 38px;
  width: auto;
}

/* ========================================
   HORIZONTAL RULES / LINES
   ======================================== */
.header-line {
  border: none;
  border-top: 1px solid #333;
  margin: 0;
}

.banner-line {
  border: none;
  border-top: 1px solid #333;
  margin: 0;
}

.footer-line {
  border: none;
  border-top: 1px solid #333;
  margin-top: auto;
}




/* ========================================
   BANNER
   ======================================== */
.banner {
  width: 100%;
  overflow: visible;
  line-height: 0;
  font-size: 0;
  margin: 0;
  padding: 0;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* ========================================
   PAGE BODY — Sidebar + Content
   ======================================== */
.page-body {
  display: flex;
  gap: 0;
  padding-top: 12px;
  padding-bottom: 0;
  flex: 1;
}




/* ========================================
   SIDEBAR NAVIGATION
   ======================================== */
.sidebar {
  width: 200px;
  min-width: 155px;
  flex-shrink: 0;
  padding: 4px 0;
}

.sidebar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar nav > ul > li {
  margin-bottom: 1px;
}

.sidebar nav a {
  display: block;
  padding: 3px 0px;
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b0b0b0;
  transition: color 0.2s ease;
}


.sidebar nav a:hover {
  color: #444;
}

.sidebar nav a.active {
  color: #222;
  font-weight: 400;
}

.sidebar nav a.parent-active {
  color: #222;
  font-weight: 400;
}

/* Sub-navigation */
.sidebar nav ul ul {
  margin: 0;
  padding-left: 10px;
}

.sidebar nav ul ul li {
  margin-bottom: 0;
}

.sidebar nav ul ul a {
  font-size: 1rem;
  letter-spacing: 0.4px;
  font-weight: 400;
}


/* ========================================
   CONTENT AREA
   ======================================== */
.content {
  flex: 1;
  padding: 4px 0 0 60px;
  min-width: 0;
}

.content::after {
  content: "";
  display: table;
  clear: both;
}

.content h1 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: #333;
  margin-bottom: 2px;
  line-height: 1.3;
}

.content h2 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}

.content h3 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #333;
  margin-top: 16px;
  margin-bottom: 4px;
}

.content p {
  font-size: 0.85rem;
  margin-bottom: 9px;
  line-height: 1.6;
  color: #555;
}

.content ul {
  font-size: 0.85rem;
  margin-bottom: 9px;
  padding-left: 1.3em;
  list-style: disc;
}

.content ul li {
  margin-bottom: 1px;
  color: #555;
}

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

.content a:hover {
  color: #222;
}

.content a.cta-link {
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* Profile image floated left */
.profile-image {
  float: left;
  width: 130px;
  margin: 2px 16px 8px 0;
}

/* ========================================
   KONTAKT PAGE
   ======================================== */
.contact-box {
  background: #fffff;
  border: 0px solid #e0e0e0;
  padding: 5px 20px;
  max-width: 400px;
}

.contact-box h3 {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: #333;
}

.contact-box p {
  font-size: 0.78rem;
  margin-bottom: 4px;
  color: #555;
}

.contact-box a {
  color: #555;
}

/* ========================================
   IMPRESSUM PAGE
   ======================================== */
.impressum-block {
  margin-bottom: 12px;
}

.impressum-block h3 {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.impressum-block p {
  margin-bottom: 2px;
}

/* ========================================
   FOOTER — directly after content
   ======================================== */
.site-footer {
  text-align: right;
  padding: 8px 0 14px;
  font-size: 0.72rem;
  color: #333;
}


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

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


/* ========================================
   HAMBURGER (Mobile)
   ======================================== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
  z-index: 100;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: #333;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .site-container {
    padding: 0 16px;
  }

  .site-header {
    padding: 12px 0 8px;
  }

  .site-logo {
    max-height: 28px;
  }

  .hamburger {
    display: flex;
  }

  .page-body {
    flex-direction: column;
    padding-bottom: 0;
    padding-top: 8px;
  }

  .sidebar {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  .sidebar.open {
    max-height: 600px;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 6px;
  }

  .sidebar nav a {
    padding: 5px 0;
    font-size: 0.8rem;
  }

  .sidebar nav ul ul a {
    font-size: 0.74rem;
  }

  .content {
    padding: 8px 0 0 0;
  }

  .content h1 {
    font-size: 1.2rem;
  }

  .profile-image {
    float: none;
    width: 100%;
    max-width: 150px;
    margin: 0 0 10px 0;
  }

  .contact-box {
    max-width: 100%;
  }

  .site-footer {
    text-align: center;
    padding: 8px 16px 12px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    max-height: 22px;
  }

  .content p,
  .content ul {
    font-size: 0.76rem;
  }

  .content h1 {
    font-size: 1.05rem;
  }
}
