/* ==========================================================================
   Tischlerei Hofwimmer — Design System
   Werte aus source-snapshot/ abgeleitet, siehe MIGRATION.md Abschnitt 1.
   ========================================================================== */

@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src:
    url("../fonts/nunito-sans-v5-latin-300.woff2") format("woff2"),
    url("../fonts/nunito-sans-v5-latin-300.woff") format("woff"),
    url("../fonts/nunito-sans-v5-latin-300.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src:
    url("../fonts/nunito-sans-v5-latin-300italic.woff2") format("woff2"),
    url("../fonts/nunito-sans-v5-latin-300italic.woff") format("woff"),
    url("../fonts/nunito-sans-v5-latin-300italic.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/nunito-sans-v5-latin-regular.woff2") format("woff2"),
    url("../fonts/nunito-sans-v5-latin-regular.woff") format("woff"),
    url("../fonts/nunito-sans-v5-latin-regular.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src:
    url("../fonts/nunito-sans-v5-latin-italic.woff2") format("woff2"),
    url("../fonts/nunito-sans-v5-latin-italic.woff") format("woff"),
    url("../fonts/nunito-sans-v5-latin-italic.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    url("../fonts/nunito-sans-v5-latin-600.woff2") format("woff2"),
    url("../fonts/nunito-sans-v5-latin-600.woff") format("woff"),
    url("../fonts/nunito-sans-v5-latin-600.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src:
    url("../fonts/nunito-sans-v5-latin-600italic.woff2") format("woff2"),
    url("../fonts/nunito-sans-v5-latin-600italic.woff") format("woff"),
    url("../fonts/nunito-sans-v5-latin-600italic.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    url("../fonts/nunito-sans-v5-latin-700.woff2") format("woff2"),
    url("../fonts/nunito-sans-v5-latin-700.woff") format("woff"),
    url("../fonts/nunito-sans-v5-latin-700.ttf") format("truetype");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src:
    url("../fonts/nunito-sans-v5-latin-700italic.woff2") format("woff2"),
    url("../fonts/nunito-sans-v5-latin-700italic.woff") format("woff"),
    url("../fonts/nunito-sans-v5-latin-700italic.ttf") format("truetype");
}

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Colors */
  --color-text: #676461;
  --color-link: #767473; /* WCAG AA: ~4.65:1 on #ffffff (was #7a7877, ~4.39:1) */
  --color-accent: #ffe900;
  --color-background: #ffffff;
  --color-footer-background: #676461;
  --color-footer-text: #ffffff;
  --color-bottom-background: #2e2d2c;
  --color-menu-border: #8e8a86;
  --color-menu-hover: #575350;
  --color-overlay: rgba(135, 133, 131, 0.3);

  /* Typography */
  --font-family-base: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-base: 16px;
  --line-height-base: 24px;
  --font-size-base-mobile: 15px;
  --line-height-base-mobile: 22px;

  /* Layout */
  --content-width: 1100px;
  --content-padding: 15px;
  --spacing-section: 120px;
  --spacing-section-bottom: 100px;

  /* Header */
  --header-logo-width: 360px;
  --header-logo-height: 80px;
  --header-logo-padding: 20px;
  --nav-toggle-bar-left: 20px;
  --nav-toggle-bar-top: 20px;
  --nav-toggle-label-bottom: 9px;
  --nav-toggle-label-font-size: 14px;

  /* Off-canvas navigation */
  --nav-panel-width: 210px;

  /* Motion */
  --transition-base: 0.3s ease;
}

@media screen and (max-width: 1380px) {
  :root {
    --header-logo-width: 300px;
    --header-logo-height: 70px;
    --header-logo-padding: 15px;
    --nav-toggle-bar-left: 15px;
    --nav-toggle-bar-top: 15px;
    --nav-toggle-label-bottom: 7px;
    --nav-toggle-label-font-size: 12px;
    --spacing-section: 100px;
    --spacing-section-bottom: 80px;
  }
}

@media screen and (max-width: 767px) {
  :root {
    --spacing-section: 60px;
    --spacing-section-bottom: 60px;
  }
}

@media screen and (max-width: 599px) {
  :root {
    --header-logo-width: 250px;
    --header-logo-height: 60px;
    --nav-toggle-bar-left: 10px;
    --nav-toggle-bar-top: 18px;
  }
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

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

html {
  height: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

#main,
#footer,
#site-nav {
  scroll-margin-top: 20px;
}

body {
  height: 100%;
  margin: 0;
  font-family: var(--font-family-base);
  font-weight: 400;
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Off-canvas navigation is pushed onto the body → body needs the transition. */
  position: relative;
  left: 0;
  overflow-x: hidden;
  transition: left var(--transition-base);
}

@media screen and (max-width: 767px) {
  body {
    font-size: var(--font-size-base-mobile);
    line-height: var(--line-height-base-mobile);
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: normal;
}

h3 {
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
}

h4 {
  font-size: 24px;
  font-weight: 400;
  line-height: normal;
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 32px;
  }
  h3 {
    font-size: 22px;
  }
  h4 {
    font-size: 22px;
  }
}

@media screen and (max-width: 599px) {
  h1 {
    font-size: 28px;
  }
}

b,
strong {
  font-weight: 700;
}

a {
  color: var(--color-link);
  transition: color var(--transition-base);
}

a[href^="tel:"] {
  text-decoration: none;
}

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

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

button {
  font-family: inherit;
}

/* --------------------------------------------------------------------------
   Accessibility helpers
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-links {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1000;
}

.skip-links a {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 12px 20px;
  background: var(--color-background);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 700;
}

.skip-links a:focus {
  left: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Layout helpers
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--content-padding);
  position: relative;
}

.section {
  width: 100%;
}

.section--padded {
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section-bottom);
}

/*
 * On the home page, the 100vh hero pushes all content below the absolutely
 * positioned header. Pages without a hero (e.g. the error template) need
 * their own clearance so the header bar doesn't overlap the heading — the
 * header's static box is exactly two header-logo-heights tall (its own
 * top offset plus its bar height).
 */
.section--clear-header {
  padding-top: calc(var(--spacing-section) + var(--header-logo-height) * 2);
}

body.nav-open {
  left: var(--nav-panel-width);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding-top: var(--header-logo-height);
}

.site-header__bar {
  float: left;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 120;
}

.site-header--sticky {
  position: fixed;
  top: calc(var(--header-logo-height) * -1);
  left: 0;
  z-index: 110;
  padding-top: 0;
  background: var(--color-background);
  transition: top var(--transition-base);
}

.site-header--sticky.is-stuck {
  top: 0;
}

.site-header--sticky .site-header__bar {
  box-shadow: none;
}

.site-header--sticky.nav-open {
  transform: translateX(var(--nav-panel-width));
}

.site-logo {
  float: left;
  width: var(--header-logo-width);
  height: var(--header-logo-height);
  padding: 0 var(--header-logo-padding);
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo img {
  width: 100%;
  height: auto;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--color-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-base);
}

.nav-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* --------------------------------------------------------------------------
   Mobile navigation / hamburger button
   -------------------------------------------------------------------------- */

.nav-toggle {
  float: left;
  width: var(--header-logo-height);
  height: var(--header-logo-height);
  background: var(--color-accent);
  border: 0;
  cursor: pointer;
  position: relative;
  color: var(--color-text);
  transition: background var(--transition-base);
}

.nav-toggle__bars {
  display: block;
  position: absolute;
  left: var(--nav-toggle-bar-left);
  top: var(--nav-toggle-bar-top);
  width: 40px;
  height: 24px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-text);
  transition: transform 0.25s ease-in-out, opacity 0.25s ease-in-out, top 0.25s ease-in-out;
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}
.nav-toggle__bars span:nth-child(2) {
  top: 10px;
}
.nav-toggle__bars span:nth-child(3) {
  top: 20px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

.nav-toggle__label {
  position: absolute;
  bottom: var(--nav-toggle-label-bottom);
  left: 0;
  width: 100%;
  text-align: center;
  font-size: var(--nav-toggle-label-font-size);
  font-weight: 600;
  padding-right: 3px;
}

@media screen and (max-width: 599px) {
  .nav-toggle__label {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Off-canvas menu
   -------------------------------------------------------------------------- */

.site-nav {
  background: var(--color-bottom-background);
  position: fixed;
  top: 0;
  left: calc(var(--nav-panel-width) * -1);
  width: var(--nav-panel-width);
  height: 100%;
  z-index: 1000;
  transition: left var(--transition-base);
  overflow-y: auto;
}

.site-nav.is-open {
  left: 0;
}

.site-nav__close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  z-index: 1;
}

.site-nav__close svg {
  width: 20px;
  height: 20px;
}

.site-nav__close:hover {
  color: var(--color-accent);
}

.site-nav__title {
  color: #fff;
  margin: 0;
  border-bottom: 1px solid var(--color-menu-border);
  padding: 40px 15px 15px;
  text-transform: uppercase;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 1px;
}

.site-nav ul {
  margin: 0;
  padding: 0;
}

.site-nav li {
  border-bottom: 1px solid var(--color-menu-border);
}

.site-nav a {
  display: block;
  color: #fff;
  font-size: 1.1em;
  font-weight: 300;
  text-decoration: none;
  padding: 7px 30px;
}

.site-nav__item--flat > a {
  padding-left: 15px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--color-menu-hover);
}

/* --------------------------------------------------------------------------
   Hero slider
   -------------------------------------------------------------------------- */

.hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
  position: relative;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}

.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slider__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-slider__nav {
  border: 0;
  background: transparent;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 112px;
  height: 130px;
  z-index: 20;
  opacity: 0.5;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  transition: opacity var(--transition-base);
}

.hero-slider__nav:hover,
.hero-slider__nav:focus-visible {
  opacity: 1;
}

.hero-slider__nav svg {
  width: 48px;
  height: auto;
  stroke-width: 1.5;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

.hero-slider__nav--prev {
  left: 0;
}

.hero-slider__nav--next {
  right: 0;
}

@media screen and (max-width: 1380px) {
  .hero-slider__nav svg {
    width: 40px;
    height: auto;
  }
}

@media screen and (max-width: 599px) {
  .hero-slider__nav {
    width: 60px;
    height: 60px;
    opacity: 1;
  }

  .hero-slider__nav svg {
    width: 30px;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Hero slider lightbox (leistungsseite galleries only)
   -------------------------------------------------------------------------- */

.hero-slider__zoom {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  z-index: 5;
}

body.lightbox-open {
  overflow: hidden;
}

.hero-lightbox {
  border: 0;
  padding: 0;
  margin: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  /* Rapid clicks on the prev/next buttons register as a double-click,
     which makes the browser select the nearest text/image (the blue
     selection highlight) instead of just navigating. The lightbox has no
     selectable content, so turning selection off entirely is safe. */
  user-select: none;
  -webkit-user-select: none;
}

.hero-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.92);
}

.hero-lightbox[open] {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.hero-lightbox__main {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-lightbox__figure {
  margin: 0;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-lightbox__image {
  display: block;
  max-width: 90vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero-lightbox__counter {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 10px;
}

.hero-lightbox__close svg {
  width: 28px;
  height: 28px;
}

.hero-lightbox__thumbs-toggle {
  position: absolute;
  top: 20px;
  right: 68px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
}

.hero-lightbox__thumbs-toggle svg {
  width: 24px;
  height: 24px;
}

.hero-lightbox__thumbs-toggle:hover,
.hero-lightbox__thumbs-toggle:focus-visible,
.hero-lightbox__thumbs-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.15);
}

.hero-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.hero-lightbox__nav:hover,
.hero-lightbox__nav:focus-visible {
  opacity: 1;
}

.hero-lightbox__nav svg {
  width: 40px;
  height: auto;
}

.hero-lightbox__nav--prev {
  left: 12px;
}

.hero-lightbox__nav--next {
  right: 12px;
}

@media screen and (max-width: 599px) {
  .hero-lightbox__nav svg {
    width: 28px;
  }

  .hero-lightbox__nav--prev {
    left: 0;
  }

  .hero-lightbox__nav--next {
    right: 0;
  }
}

.hero-lightbox__thumbs {
  display: none;
  flex-shrink: 0;
  width: 212px;
  background: #ddd;
  padding: 2px 2px 4px;
  overflow-y: auto;
  overflow-x: hidden;
}

.hero-lightbox--thumbs-open .hero-lightbox__thumbs {
  display: block;
}

.hero-lightbox__thumbs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.hero-lightbox__thumbs-item {
  margin: 2px;
}

.hero-lightbox__thumb {
  display: block;
  width: 100px;
  height: 75px;
  padding: 0;
  border: 0;
  outline-offset: -2px;
  cursor: pointer;
  position: relative;
  background: rgba(0, 0, 0, 0.1);
}

.hero-lightbox__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--color-accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.hero-lightbox__thumb[aria-current="true"]::before {
  opacity: 1;
}

.hero-lightbox__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 599px) {
  .hero-lightbox__thumbs {
    width: 110px;
  }

  .hero-lightbox__thumbs-item {
    width: calc(100% - 4px);
  }

  .hero-lightbox__thumb {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Welcome infobox
   -------------------------------------------------------------------------- */

.infobox {
  position: absolute;
  right: 0;
  bottom: 50px;
  background: rgba(255, 255, 255, 0.85);
  z-index: 10;
  width: 450px;
  max-width: calc(100% - 20px);
  border-left: 8px solid var(--color-accent);
  padding: 25px;
  font-size: 15px;
  line-height: 23px;
  transition: right var(--transition-base);
}

.infobox.is-hidden {
  right: -442px;
}

.infobox h3 {
  font-size: 22px;
  padding-bottom: 5px;
}

.infobox__close {
  position: absolute;
  right: 5px;
  top: 5px;
  background: transparent;
  border: 0;
  color: var(--color-text);
  cursor: pointer;
  padding: 10px;
}

.infobox__open {
  position: absolute;
  left: -45px;
  top: 0;
  background: transparent;
  border: 0;
  color: var(--color-accent);
  cursor: pointer;
  padding: 10px;
}

.infobox__more {
  text-decoration: none;
  font-weight: 700;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}

@media screen and (max-width: 1380px) {
  .infobox {
    bottom: 40px;
    padding: 20px;
    font-size: 14px;
    line-height: 20px;
  }
}

@media screen and (max-width: 599px) {
  .infobox {
    bottom: 25px;
    padding: 15px;
    font-size: 13px;
    line-height: 18px;
    width: 330px;
  }
  .infobox.is-hidden {
    right: -322px;
  }
}

/* --------------------------------------------------------------------------
   Intro section
   -------------------------------------------------------------------------- */

.intro {
  display: flex;
  flex-wrap: wrap;
  gap: 0 30px;
}

.intro__headline {
  flex: 1 1 300px;
  min-width: 300px;
}

.intro__text {
  flex: 2 1 500px;
  min-width: 280px;
}

.intro__text p + p {
  margin-top: 1em;
}

@media screen and (max-width: 992px) {
  .intro__headline,
  .intro__text {
    flex-basis: 100%;
  }
  .intro__headline {
    margin-bottom: 20px;
  }
}

/* --------------------------------------------------------------------------
   Category grid ("Leistungsübersicht")
   -------------------------------------------------------------------------- */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

@media screen and (max-width: 992px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 599px) {
  .category-grid {
    grid-template-columns: 1fr;
  }
}

.category-tile {
  position: relative;
  overflow: hidden;
  display: block;
  color: #fff;
  text-decoration: none;
  aspect-ratio: 640 / 370;
}

.category-tile__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.category-tile:hover .category-tile__image,
.category-tile:focus-visible .category-tile__image {
  transform: scale(1.03);
}

.category-tile__overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -50px;
  height: 150px;
  overflow: hidden;
  padding: 30px 25px 0;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 1);
  transition: padding-top var(--transition-base);
}

.category-tile:hover .category-tile__overlay,
.category-tile:focus-visible .category-tile__overlay {
  padding-top: 10px;
}

.category-tile__overlay h3 {
  color: #fff;
  font-size: 30px;
  padding-bottom: 100px;
  transition: padding-bottom var(--transition-base);
}

.category-tile:hover .category-tile__overlay h3,
.category-tile:focus-visible .category-tile__overlay h3 {
  padding-bottom: 0;
}

.category-tile__overlay p {
  margin-top: 8px;
}

/*
 * No touch-specific override here on purpose: the original never had one
 * either. It relied on `:hover` simply never firing on touch, so the base
 * `.category-tile__overlay`/`h3` rules above (padding-top: 30px, h3
 * padding-bottom: 100px inside a fixed-height, overflow: hidden box) are
 * what's shown on any touch device — title sits low, subtitle stays
 * clipped out of view. An earlier touch-accessibility fallback used to
 * force the caption fully visible here; removed since it made "Inspirationen
 * und Infos" show up on phones and tablets, which the original never did.
 */

@media screen and (max-width: 1380px) {
  .category-tile__overlay h3 {
    font-size: 26px;
  }
}

/* --------------------------------------------------------------------------
   Contact section
   -------------------------------------------------------------------------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact__info,
.contact__form {
  flex: 1 1 400px;
  min-width: 280px;
}

@media screen and (max-width: 767px) {
  .contact {
    gap: 30px;
  }
}

.contact-info {
  list-style: none;
  margin: 0;
  padding-top: 20px;
}

.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 32px;
}

.contact-info svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.contact-info a {
  color: var(--color-link);
}

/* Form */

.form-field {
  margin-bottom: 15px;
}

.form-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--color-link);
  line-height: 32px;
  padding: 0 10px;
  border: 1px solid #d5d3d1;
  background: #fff;
}

.form-field textarea {
  height: 150px;
  line-height: 24px;
  padding-top: 8px;
  resize: vertical;
}

.form-field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-field--checkbox input {
  margin-top: 6px;
}

.form-note {
  font-size: 13px;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  color: #fff;
  font-size: 16px;
  line-height: 23px;
  padding: 12px 26px;
  background: var(--color-text);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.btn:hover,
.btn:focus-visible {
  background: var(--color-bottom-background);
  color: #fff;
}

.btn:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.form-message {
  font-size: 14px;
  padding: 10px 14px;
  margin-bottom: 15px;
  border: 1px solid transparent;
}

.form-message--error {
  color: #7a1f1a;
  background: #fbe9e7;
  border-color: #e3b3ac;
}

.form-field--error input[type="text"],
.form-field--error input[type="email"],
.form-field--error textarea {
  border-color: #b3261e;
}

.form-field__error {
  color: #b3261e;
  font-size: 13px;
  margin-top: 4px;
}

/* Honeypot field: hidden from sighted users, not display:none/visibility:
   hidden (some bots skip those), never keyboard-focusable (tabindex="-1"
   in markup) or announced to assistive tech (aria-hidden in markup). */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Map section
   -------------------------------------------------------------------------- */

.map-section {
  width: 100%;
  height: 520px;
  position: relative;
  background-image: url("../images/weltkarte.jpg");
  background-position: center center;
  background-size: cover;
}

@media (max-width: 1380px) {
  .map-section {
    height: 400px;
  }
}

@media (max-width: 992px) {
  .map-section {
    height: 350px;
  }
}

@media (max-width: 767px) {
  .map-section {
    height: 300px;
  }
}

.map-section__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  font-weight: 700;
  padding: 0 15px;
}

.map-section__note {
  margin-top: 10px;
  font-size: 13px;
}

.map-section__frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  width: 100%;
  background: var(--color-footer-background);
  color: var(--color-footer-text);
  padding: 50px 0;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.site-footer h3 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 10px;
}

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

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

.footer-nav {
  columns: 3;
  column-gap: 40px;
  flex: 1 1 500px;
}

.footer-nav li {
  line-height: 25px;
  break-inside: avoid;
}

.footer-address {
  flex: 0 1 320px;
}

@media screen and (max-width: 767px) {
  .footer-nav {
    display: none;
  }
  .footer-address {
    width: 100%;
    text-align: center;
    flex-basis: 100%;
  }
  .contact-info li {
    justify-content: center;
  }
}

.site-footer-bottom {
  width: 100%;
  background: var(--color-bottom-background);
  color: #fff;
  padding: 20px 0 75px;
  text-align: center;
}

.site-footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.site-footer-bottom a:hover {
  text-decoration: underline;
}

.legal-nav {
  display: flex;
  gap: 8px;
}

.legal-nav__separator {
  opacity: 0.6;
}

@media screen and (max-width: 599px) {
  .site-footer-bottom__inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   Confirmation page ("Danke")
   -------------------------------------------------------------------------- */

.confirmation {
  text-align: center;
}

.confirmation__subtitle {
  margin-top: 15px;
  font-size: 18px;
  color: var(--color-link);
}

/* --------------------------------------------------------------------------
   Page banner (static header image — "Über uns" and similar simple pages)
   -------------------------------------------------------------------------- */

.page-banner {
  width: 100%;
  aspect-ratio: 1920 / 350;
  min-height: 200px;
  overflow: hidden;
}

.page-banner__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   About blocks ("Über uns" — image + headline + text, TYPO3 ce-textpic
   equivalent: floated image, text wraps to its right)
   -------------------------------------------------------------------------- */

.about-block {
  overflow: hidden;
  margin-bottom: 25px;
}

.about-block:last-child {
  margin-bottom: 0;
}

.about-block__image {
  float: left;
  margin-right: 25px;
  width: 300px;
  height: 200px;
  object-fit: cover;
}

.about-block__title {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: normal;
  margin: 0 0 15px;
}

.about-block__text p + p {
  margin-top: 1em;
}

@media screen and (max-width: 767px) {
  .about-block__title {
    font-size: 32px;
  }
}

@media screen and (max-width: 599px) {
  .about-block__title {
    font-size: 28px;
  }

  /* Deviation from the original: on mobile the floated/wrapped layout reads
     poorly (heading squeezed next to the image), so the image gets its own
     full-width row instead, followed by the text — no wrap. */
  .about-block__image {
    float: none;
    width: 100%;
    height: auto;
    margin: 0 0 15px;
  }
}

/* --------------------------------------------------------------------------
   Simple text pages (Impressum, AGB, Datenschutz, Haftungsausschluss,
   Betriebserweiterung — header banner + free-form rich text)
   -------------------------------------------------------------------------- */

/*
 * Plain h2: matches the original's own (unstyled-by-theme, pure browser-default)
 * h2 — bold, not uppercase, ~24px. Used e.g. by AGB's "Thomas Hofwimmer e.U., …" subtitle.
 */
.text-page__body h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  margin: 1.5em 0 0.5em;
}

/*
 * .heading-xl: for the rare case where the original itself (mis-)used multiple
 * same-sized <h1>-style headings inside the body text (e.g. Impressum's
 * "Urheberrecht"/"Haftungsausschluss") — semantically corrected to <h2
 * class="heading-xl"> here, but kept visually identical to the page's own h1.
 */
.text-page__body .heading-xl {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: normal;
  margin: 1.5em 0 0.5em;
}

.text-page__body h3 {
  margin-top: 1.5em;
}

.text-page__body p + p {
  margin-top: 1em;
}

.text-page__body ul {
  list-style: disc;
  margin: 1em 0;
  padding: 0;
}

.text-page__body li {
  margin-left: 15px;
}

.text-page__closing-image {
  display: block;
  float: left;
  max-width: 100%;
  height: auto;
  margin-top: 25px;
}

/* The closing image is floated (matches the original's `ce-left` layout,
   which floated its own closing image the same way), but it's always the
   last element in `.text-page` — nothing follows it to clear against. The
   original relied on a `<div class="clr">` right after its equivalent
   section for this; we clear the container itself instead so the float's
   height is never dropped, which would otherwise let the image bleed into
   whatever comes after the section (e.g. the footer). */
.text-page::after {
  content: "";
  display: block;
  clear: both;
}

@media screen and (max-width: 767px) {
  .text-page__body .heading-xl {
    font-size: 32px;
  }
}

@media screen and (max-width: 599px) {
  .text-page__body .heading-xl {
    font-size: 28px;
  }
}

/* Cookie consent banner ---------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(247, 247, 247, 0.92);
  box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.1);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 20px;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 320px;
  font-size: 14px;
  color: var(--color-text);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 0 0 auto;
}

.cookie-banner__link {
  display: inline-block;
  border: 2px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  font: inherit;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  padding: 4px 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  background: var(--color-text);
  color: #fff;
}

@media screen and (max-width: 599px) {
  .cookie-banner__inner {
    justify-content: flex-start;
    padding: 12px 15px;
  }

  .cookie-banner__text {
    font-size: 12px;
    flex-basis: 100%;
  }
}
