/* ============================================================
   ALBERTUSHEIM e.V. — Website Stylesheet
   Modern, warm, nature-inspired design
   ============================================================ */

/* === FONT FACES === */
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/merriweather-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/merriweather-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/source-sans-3-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/source-sans-3-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/source-sans-3-700.woff2') format('woff2');
}

/* === CUSTOM PROPERTIES === */
:root {
  --color-primary: #5D8F0A;
  --color-primary-dark: #4A7208;
  --color-primary-light: #E8F0D8;
  --color-primary-rgb: 93, 143, 10;

  --color-text: #3A3A3A;
  --color-text-light: #6B6B6B;
  --color-bg: #FAFAF7;
  --color-bg-alt: #F2F0EB;
  --color-white: #FFFFFF;
  --color-border: #E0DDD5;

  --color-accent-warm: #C8956C;

  --font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --container-max: 1140px;
  --container-narrow: 780px;

  --transition-base: 0.3s ease;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-primary);
}

a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

ul, ol {
  padding-left: 1.5em;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: var(--space-sm);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  margin-bottom: var(--space-xs);
}

h4 {
  font-size: 1.1rem;
  color: var(--color-text);
}

p {
  margin-bottom: 1.25em;
}

p:last-child {
  margin-bottom: 0;
}

blockquote {
  border-left: 4px solid var(--color-primary-light);
  padding: var(--space-sm) var(--space-md);
  margin: var(--space-md) 0;
  font-style: italic;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-lg) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--green {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section--green h2,
.section--green h3 {
  color: var(--color-white);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-top: var(--space-xs);
}

/* === SKIP LINK === */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

/* === HEADER & NAV === */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) var(--space-sm);
  max-width: var(--container-max);
  margin: 0 auto;
  gap: var(--space-sm);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__img {
  width: 50px;
  height: auto;
  border-radius: var(--radius-sm);
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.site-logo__name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.site-logo__location {
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
}

/* Main Navigation */
.main-nav {
  display: none;
}

.main-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: var(--space-xs) 0;
}

.main-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav__link {
  display: block;
  padding: 0.75rem var(--space-sm);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  border-left: 3px solid transparent;
}

.main-nav__link:hover,
.main-nav__link--active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-left-color: var(--color-primary);
}

/* Hamburger Button */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #2a3a1a;
}

.hero--large {
  min-height: 65vh;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(42, 58, 26, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
  padding: var(--space-lg) var(--space-sm);
  max-width: 700px;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--color-white);
  margin-bottom: var(--space-xs);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 400;
  opacity: 0.95;
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.hero__page-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* === FEATURE CARDS === */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.feature-card {
  text-align: center;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: 50%;
  color: var(--color-primary);
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.feature-card__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* === CONTENT CARDS === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card__body {
  padding: var(--space-md);
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.card__text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}

/* === ALTERNATING CONTENT (Angebot page) === */
.content-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
}

.content-block:last-child {
  border-bottom: none;
}

.content-block__image {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.content-block__text h3 {
  margin-bottom: var(--space-sm);
}

/* === TIMELINE (Chronik page) === */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary-light);
  border-radius: 3px;
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-lg);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 13px;
  height: 13px;
  background: var(--color-primary);
  border: 3px solid var(--color-primary-light);
  border-radius: 50%;
  transform: translateX(-5px);
}

.timeline__date {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

/* === GALLERY === */
.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  justify-content: center;
}

.gallery-tab {
  padding: 0.5rem 1.25rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-base);
}

.gallery-tab:hover,
.gallery-tab--active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xs);
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-base);
}

.gallery-item:hover::after {
  background: rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  padding: var(--space-sm);
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: var(--space-sm);
  right: var(--space-sm);
}

.lightbox__prev {
  left: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: var(--space-sm);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__caption {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.8;
}

/* === CONTACT FORM === */
.contact-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.form-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-success {
  background: var(--color-primary-light);
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* === TABLE (Hausordnung) === */
.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: var(--space-sm);
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.info-table th {
  font-weight: 700;
  color: var(--color-primary);
  width: 160px;
  white-space: nowrap;
  font-size: 0.95rem;
}

.info-table td {
  font-size: 0.95rem;
}

/* === NEWS / AKTUELLES === */
.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.news-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-lg);
}

.news-item:last-child {
  border-bottom: none;
}

.news-item__date {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: var(--space-xs);
}

.news-item__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

/* === INFO BOX === */
.info-box {
  background: var(--color-primary-light);
  border: 1px solid rgba(var(--color-primary-rgb), 0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin: var(--space-md) 0;
}

.info-box__title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

/* === MAP === */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  display: block;
}

/* === TWO COLUMN LAYOUT === */
.two-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

/* === TABLE OF CONTENTS (Satzung) === */
.toc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
}

.toc__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.toc__list {
  list-style: none;
  padding: 0;
}

.toc__list li {
  padding: 0.3rem 0;
}

.toc__list a {
  font-size: 0.95rem;
}

/* === FOOTER === */
.site-footer {
  background: #2C3E1F;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.footer-col__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  padding: 0.3rem 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* === UX IMPROVEMENTS (cursor, touch targets, transitions) === */
.card,
.feature-card,
.gallery-item,
.gallery-tab,
.btn,
.nav-toggle,
.main-nav__link,
.footer-links a,
.toc__list a {
  cursor: pointer;
}

.btn {
  min-height: 44px;
  min-width: 44px;
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
}

.main-nav__link {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* === UTILITIES === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-0 { margin-top: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* === MEDIA QUERIES === */

/* Small tablets (600px+) */
@media (min-width: 600px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item img {
    height: 220px;
  }

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

/* Tablets / small desktop (900px+) */
@media (min-width: 900px) {
  .container {
    padding: 0 var(--space-md);
  }

  /* Desktop navigation */
  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
  }

  .main-nav__list {
    display: flex;
    gap: 0;
  }

  .main-nav__link {
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    border-left: none;
    border-radius: var(--radius-sm);
  }

  .main-nav__link:hover,
  .main-nav__link--active {
    background: var(--color-primary-light);
    border-left: none;
  }

  .features {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .content-block {
    flex-direction: row;
    align-items: center;
  }

  .content-block:nth-child(even) {
    flex-direction: row-reverse;
  }

  .content-block__image {
    width: 45%;
    flex-shrink: 0;
    height: 320px;
  }

  .content-block__text {
    flex: 1;
  }

  .two-col {
    flex-direction: row;
  }

  .two-col > * {
    flex: 1;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-item img {
    height: 250px;
  }

  /* Timeline wider */
  .timeline {
    padding-left: 3rem;
  }

  .timeline__item::before {
    left: -3rem;
  }
}

/* Desktop (1200px+) */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .main-nav__link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
  }
}

/* Hausordnung: table on mobile becomes cards */
@media (max-width: 599px) {
  .info-table,
  .info-table thead,
  .info-table tbody,
  .info-table th,
  .info-table td,
  .info-table tr {
    display: block;
  }

  .info-table thead {
    display: none;
  }

  .info-table tr {
    margin-bottom: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .info-table th {
    background: var(--color-primary-light);
    width: 100%;
    white-space: normal;
    padding: 0.75rem var(--space-sm);
    border-bottom: none;
  }

  .info-table td {
    padding: 0.75rem var(--space-sm);
    border-bottom: none;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
