:root {
  --bg:        #EDE4D9;
  --primary:   #016DAF;
  --highlight: #FC411F;
  --col1:      200px;
  --gap-col:   1fr;
  --gutter:    2rem;
  --pad-lg:    2rem;
  --pad-sm:    .75rem;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  background: var(--bg);
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
  padding: 0 var(--pad-lg);
}
@media (max-width: 768px) {
  body {
    padding: 0 var(--pad-sm);
  }
}

/* Container */
.container {
  max-width: 60rem;
  margin: 0 auto;
}

/* HEADER */
#site-header {
  position: relative;
  background: var(--bg);
  border-bottom: 2px solid var(--primary);
}
.header-inner {
  display: grid;
  grid-template-columns: var(--col1) repeat(5, var(--gap-col));
  column-gap: var(--gutter);
  align-items: flex-end;
  padding: 1rem 0;
}

/* Logo */
.logo img {
  width: var(--col1);
  display: block;
  object-fit: contain;
}

/* NAVIGATION */
.site-nav {
  grid-column: 2 / -1;
}
.site-nav ul {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav ul.open {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  margin-top: .5rem;
  background: var(--bg);
  align-items: center;
}
.site-nav ul.open li + li {
  border-top: none;
}
.site-nav a {
  display: block;
  text-align: center;
  white-space: nowrap;
  text-decoration: none;
  color: var(--primary);
  font-weight: 700;
  padding: .75rem 0;
  position: relative;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--highlight);
  transition: width .25s ease;
}
.site-nav a:hover::after {
  width: 100%;
}

/* Hamburger-/Close-Icon */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: calc(1rem + 5px);
  right: var(--pad-sm);
  z-index: 1000;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background: var(--primary);
  transition: transform .3s, opacity .3s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* PAGE SECTION */
.page-inner {
  display: grid;
  grid-template-columns: var(--col1) repeat(5, var(--gap-col));
  column-gap: var(--gutter);
  align-items: start;
  padding: 6rem 0;
}
.page-img img {
  width: var(--col1);
  height: var(--col1);
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Textbereich */
.page-text {
  grid-column: 2 / -1;
}
.page-text h1 {
  font-size: clamp(2rem,5vw,2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.page-text h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}
.page-text h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 1.5rem 0 .75rem;
}
.page-text .divider {
  width: 3rem;
  height: 1px;
  background: var(--highlight);
  margin: 0 auto 2rem;
  border: none;
}
.page-text p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.75;
  text-align: justify;
}
.page-text img {
  width: 100%;
  height: auto;
  display: block;
}
.page-text ul {
  margin-left: 1.5rem;
  padding-left: .5rem;
  list-style-position: outside;
}
.page-text a {
  color: var(--primary);
  text-decoration: underline;
}
.page-text a:hover {
  color: var(--highlight);
}
.page-text .btn-primary {
  display: inline-block;
  margin-top: 2rem;
  background: var(--highlight);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease;
}
.page-text .btn-primary:hover {
  transform: translateY(-2px);
}

/* Index-Galerie */
.index-gallery {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  padding: 6rem 0;
}
.index-gallery__wide {
  width: 100%;
  aspect-ratio: 3 / 1;
  overflow: hidden;
}
.index-gallery__wide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.index-gallery__quads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}
.index-gallery__quad {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.index-gallery__quad-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* FOOTER */
#site-footer {
  background: var(--bg);
  border-top: 2px solid var(--primary);
}
.footer-inner {
  padding: 2rem 0;
  text-align: center;
  font-size: .9rem;
}
#site-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  margin: 0 .5rem;
}
#site-footer a:hover {
  text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .site-nav {
    grid-column: auto;
    margin-top: .5rem;
  }
  .site-nav ul {
    display: none;
  }
  .site-nav ul.open {
    display: flex;
    flex-direction: column;
  }
  .menu-toggle {
    display: block;
  }
  .logo,
  .page-img {
    padding: 0 var(--pad-sm);
  }
  .page-inner {
    display: flex !important;
    flex-direction: column;
    gap: var(--gutter);
    align-items: center;
  }
  .page-img {
    margin-bottom: var(--gutter);
  }
  .page-text h1,
  .page-text h2,
  .page-text h3 {
    text-align: center;
  }
}

/* — QR-Code-Override — */
.page-text img.qr-code {
  width: 150px;
  height: auto;
  display: block;
  margin: 1.5rem 0;
  object-fit: contain;
}
@media (max-width: 768px) {
  .page-text img.qr-code {
    width: 120px;
    height: auto;
  }
}
