:root {
  --page-bg: #f5f1eb;
  --surface: #ffffff;
  --surface-muted: #f2f6f4;
  --text: #1f2933;
  --text-soft: #5b6673;
  --line: #d9dfd8;

  --ikaro-blue: #1E4459;
  --ikaro-blue-light: #418db6;
  --ikaro-blue-dark: #122935;

  --footer-bg: #1e252b;
  --footer-text: #f3f5f6;
  --shadow: 0 20px 50px rgba(31, 41, 51, 0.08);
  --radius: 8px;
  --content-width: min(1120px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /*background: var(--page-bg);*/
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
}

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

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

p,
ul,
ol {
  margin-top: 0;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.rahmen,
.site-hero__inner,
.site-main__inner,
.site-footer__inner {
  width: var(--content-width);
  margin: 0 auto;
}

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 241, 235, 0.92);
  border-bottom: 1px solid rgba(139, 94, 34, 0.12);
}

.site-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.9rem 0;
}

.site-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-brand .frame {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-brand .ce-gallery,
.site-brand .ce-row,
.site-brand .ce-column,
.site-brand figure {
  margin: 0;
}

.site-brand img {
  width: auto;
  max-height: 64px;
  object-fit: contain;
}

.site-nav {
  flex: 1;
  min-width: 0;
}

.hauptnavibox {
  display: flex;
  justify-content: flex-end;
}

.hauptnavi {
  position: relative;
  width: 100%;
  max-width: 760px;
}

.hauptnavi__toggle {
  display: none;
}

.hauptnavi__toggleLabel {
  display: none;
}

.hauptnavi__list,
.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hauptnavi__list {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  color: var(--text);
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

button.nav-link {
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
}

.nav-item.active > .nav-link,
.nav-link:hover,
.nav-link:focus-visible {
  background: var(--surface);
  color: var(--ikaro-blue-light);
}

.nav-item.active > .nav-link:hover {
  color: var(--ikaro-blue) !important;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: var(--ikaro-blue);
  color: white !important;
}

.nav-link[aria-current="page"] {
  background: var(--surface);
  color: var(--ikaro-blue-light);
}

.dropdown-toggle::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  margin-left: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.45rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.dropdown.is-open > .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu .nav-link {
  justify-content: flex-start;
  width: 100%;
  min-height: 40px;
  padding: 0.65rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

.site-hero {
  padding: 0;
}

.site-hero__inner:empty {
  display: none;
}

.site-hero .frame {
  margin: 0;
  background: linear-gradient(135deg, rgba(183, 131, 59, 0.16), rgba(115, 144, 118, 0.14));
  border-radius: var(--radius);
}

.site-hero h1,
.site-hero h2,
.site-hero h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
}

.site-main {
  flex: 1 0 auto;
  padding: 1rem 0 4rem;
}

.site-main__inner {
  display: grid;
  gap: 1.5rem;
}

.site-main .frame {
  margin: 0;
  /*background: var(--surface);
  border: 1px solid rgba(31, 41, 51, 0.07);
  border-radius: var(--radius);
  box-shadow: var(--shadow);*/
  padding: clamp(1.2rem, 2vw, 2rem);
}

.site-main .frame header {
  margin-bottom: 1rem;
}

.site-main h1,
.site-main h2,
.site-main h3,
.site-main h4 {
  margin: 0 0 0.75rem;
  line-height: 1.2;
  color: var(--text);
}

.site-main h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.site-main .ce-bodytext,
.site-main .ce-bodytext p,
.site-main .ce-bodytext li {
  color: var(--text-soft);
}

.site-main .ce-bodytext a,
.site-footer a {
  color: var(--ikaro-blue-light);
}

.site-main figure {
  margin: 0;
}

.site-main .image-embed-item {
  width: 100%;
  border-radius: 6px;
}

.site-main .frame-type-textmedia .ce-gallery img,
.site-main .frame-type-image .ce-gallery img {
  border-radius: 6px;
}

.site-main ul,
.site-footer ul {
  padding-left: 1.15rem;
}

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  box-shadow: 0 -12px 30px rgba(31, 41, 51, 0.2);
}

.site-footer__inner {
  padding: 0.9rem 0 1rem;
}

.site-footer .frame {
  margin: 0;
}

.site-footer .ce-bodytext,
.site-footer .ce-bodytext p,
.site-footer .ce-bodytext li,
.site-footer a {
  color: var(--footer-text);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0;
}

.site-footer a {
  text-decoration: underline;
  text-decoration-color: rgba(243, 245, 246, 0.35);
  text-underline-offset: 0.2em;
}

.mob_button {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(31, 41, 51, 0.08);
}

.mob_button span {
  position: relative;
  display: inline-block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
}

.mob_button span::before,
.mob_button span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
}

.mob_button span::before {
  top: -0.35rem;
}

.mob_button span::after {
  top: 0.35rem;
}

@media (max-width: 900px) {
  .site-topbar__inner {
    align-items: center;
    flex-wrap: nowrap;
  }

  .site-brand {
    flex: 1 1 auto;
  }

  .site-nav,
  .hauptnavibox,
  .hauptnavi {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    align-items: center;
    width: auto;
    max-width: none;
  }

  .hauptnavi__toggleLabel {
    display: inline-flex;
    margin-right: 10px;
    cursor: pointer;
  }

  .navbox {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 10px;
    z-index: 60;
    width: min(320px, calc(100vw - 20px));
    margin-top: 0;
    padding: 0.8rem;
    background: var(--surface);
    border: 1px solid rgba(31, 41, 51, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .hauptnavi__toggle:checked + .hauptnavi__toggleLabel + .navbox {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hauptnavi__list {
    display: grid;
    justify-content: stretch;
    gap: 0.25rem;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    border-radius: 6px;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    max-height: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
    transform: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid rgba(139, 94, 34, 0.18);
    border-radius: 0;
    background: transparent;
    padding: 0 0 0 0.75rem;
    transition: max-height 0.25s ease, margin 0.25s ease, opacity 0.18s ease, visibility 0.18s ease;
  }

  .dropdown.is-open > .dropdown-menu {
    max-height: 24rem;
    margin: 0.25rem 0 0.5rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-main .frame,
  .site-hero .frame {
    padding: 1.1rem;
  }
}

@media (max-width: 640px) {
  :root {
    --content-width: min(1120px, calc(100vw - 1rem));
  }

  .site-brand img {
    max-height: 52px;
  }

  .site-main {
    padding-bottom: 2.5rem;
  }

  .site-footer__inner {
    padding: 0.85rem 0 0.95rem;
  }
}
