
:root {
  color-scheme: light;
  --kibuh-main: lightcoral;
  --kibuh-main-dark: #b94f50;
  --kibuh-main-soft: #ff8f8f;
  --kibuh-border: #d6d5d5;
  --kibuh-main-text: #fff0f0;
  --kibuh-text: #292929;
  --kibuh-subtle: #353434;
  --kibuh-surface: #fff;
  --kibuh-content-width: 75rem;
  --kibuh-page-gutter: clamp(1rem, 4vw, 2rem);
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: var(--kibuh-text);
  background: var(--kibuh-surface);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 3px solid var(--kibuh-main-dark);
  outline-offset: 3px;
}

/* ========================================
   HEADER UND NAVIGATION
   ======================================== */

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  width: 100%;
  background: var(--kibuh-surface);
  border-bottom: 1px solid var(--kibuh-border);
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2.5rem);
  width: min(
    calc(100% - 2 * var(--kibuh-page-gutter)),
    var(--kibuh-content-width)
  );
  min-height: 6rem;
  margin-inline: auto;
  padding-block: 0.65rem;
}

.header-logo-container {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: fit-content;
}

.header-logo {
  display: block;
  width: auto;
  max-width: 7.5rem;
  max-height: 5rem;
  padding: 0.25rem;
  object-fit: contain;
}

.header-menu {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem 0.5rem;
}

.header-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 2px solid transparent;
  color: var(--kibuh-main-dark);
  font-size: clamp(0.95rem, 1.2vw, 1.125rem);
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 150ms ease,
    border-color 150ms ease;
}

.header-menu-btn:hover,
.header-menu-btn:focus-visible {
  border-bottom-color: var(--kibuh-main-dark);
  background: var(--kibuh-main-soft);
}

/* Checkbox steuert das Menü ohne JavaScript */
.nav-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--kibuh-border);
  border-radius: 0.4rem;
  background: var(--kibuh-surface);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--kibuh-main-dark);
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nav-checkbox:focus-visible + .nav-toggle {
  outline: 3px solid var(--kibuh-main-dark);
  outline-offset: 3px;
}

/* Hamburger wird zum X */
.nav-checkbox:checked + .nav-toggle span:first-child {
  transform: translateY(0.48rem) rotate(45deg);
}

.nav-checkbox:checked + .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-checkbox:checked + .nav-toggle span:last-child {
  transform: translateY(-0.48rem) rotate(-45deg);
}

/* ========================================
   HAUPTINHALT
   ======================================== */

body > main,
.content,
.page-body {
  flex: 1 0 auto;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--kibuh-border);
  background: var(--kibuh-main-soft);
  color: var(--kibuh-text);
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  width: min(
    calc(100% - 2 * var(--kibuh-page-gutter)),
    var(--kibuh-content-width)
  );
  margin-inline: auto;
  padding-block: 2rem 1.25rem;
}

.footer-column {
  min-width: 0;
  text-align: center;
}

.footer-column h2 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

.footer-column p {
  margin: 0.2rem 0;
  overflow-wrap: anywhere;
}

.footer-column a,
.text-by a {
  text-underline-offset: 0.15em;
}

.footer-column a:hover,
.text-by a:hover {
  text-decoration-thickness: 2px;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.img-logo-footer {
  display: block;
  width: auto;
  max-width: 8rem;
  max-height: 5.625rem;
  padding: 0.4rem;
  border: 0.35rem solid #fff;
  border-radius: 0.35rem;
  background: #fff;
  object-fit: contain;
}

.social-btn-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgb(41 41 41 / 55%);
  border-radius: 0.25rem;
  color: var(--kibuh-text);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.social-btn:hover,
.social-btn:focus-visible {
  background: rgb(255 255 255 / 35%);
}

.text-by {
  margin: 0;
  padding: 0.85rem var(--kibuh-page-gutter);
  border-top: 1px solid rgb(0 0 0 / 15%);
  text-align: center;
  font-size: 0.9rem;
}

/* ========================================
   COOKIE-BANNER
   ======================================== */

.cookie-banner {
  position: fixed;
  z-index: 20;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem var(--kibuh-page-gutter);
  border-top: 1px solid var(--kibuh-border);
  background: antiquewhite;
  text-align: center;
}

.cookie-text {
  margin: 0;
}

.cookie-btn {
  min-width: 3rem;
  min-height: 2.25rem;
  margin-left: 0.5rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid #8b6868;
  border-radius: 0.3rem;
  background: var(--kibuh-surface);
  color: var(--kibuh-text);
  cursor: pointer;
}

.cookie-btn:hover {
  background: var(--kibuh-main-soft);
}

/* ========================================
   TABLET: BIS 900 PX
   ======================================== */

@media (max-width: 900px) {
  .header-top-row {
    position: relative;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    padding-block: 0.75rem;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .header-menu {
    display: none;
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--kibuh-border);
  }

  .nav-checkbox:checked ~ .header-menu {
    display: flex;
  }

  .header-menu-btn {
    justify-content: flex-start;
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 0;
    border-radius: 0.3rem;
    text-align: left;
    white-space: normal;
  }

  .header-menu-btn:hover,
  .header-menu-btn:focus-visible {
    background: var(--kibuh-main-soft);
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-placeholder {
    display: none;
  }
}

/* ========================================
   SMARTPHONE: BIS 600 PX
   ======================================== */

@media (max-width: 600px) {
  .site-header {
    position: sticky;
  }

  .header-top-row {
    gap: 0.5rem;
    min-height: 4.5rem;
  }

  .header-logo {
    max-width: 6.5rem;
    max-height: 4rem;
  }

  .nav-toggle {
    width: 2.65rem;
    height: 2.65rem;
  }

  .header-menu {
    gap: 0.2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: 1.5rem 1rem;
  }

  .img-logo-footer {
    display: none;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.4rem;
  }

  .cookie-btn {
    margin: 0.25rem 0 0;
  }
}

/* ========================================
   REDUZIERTE ANIMATIONEN
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
