/* Berggasthaus Mesmer – Theme ohne Fremd-Framework */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roboto Slab";
  src: url("../fonts/roboto-slab-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-bg: #f7f4ee;
  --c-surface: #ffffff;
  --c-text: #1f2420;
  --c-muted: #5b635c;
  --c-line: #e4ddd1;
  --c-green: #2f3a30;
  --c-green-2: #44533f;
  --c-accent: #b5382e;
  --c-accent-dark: #93291f;
  --c-cream: #efe8db;

  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ff-head: "Roboto Slab", Georgia, "Times New Roman", serif;

  --container: 1200px;
  --narrow: 760px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 9vw, 7rem);
  --radius: 3px;
  --header-h: 92px;
  --logo-h: 50px;
  --shadow: 0 10px 30px rgba(31, 36, 32, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (max-width: 1023px) {
  :root { --header-h: 72px; --logo-h: 40px; }
}

/* Basis */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: clamp(1rem, .95rem + .25vw, 1.0625rem);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open { overflow: hidden; }

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

figure { margin: 0; }

a { color: var(--c-accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--c-accent-dark); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .6em;
  color: var(--c-green);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }

p, ul, ol { margin: 0 0 1.4em; }
.rte > :last-child { margin-bottom: 0; }
.rte [style*="line-height"] { line-height: inherit !important; }

strong, b { font-weight: 650; }

.invisible {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  min-height: 46px;
  padding: .7em 1.4em;
  border: 2px solid transparent;
  border-radius: 3px;
  font: 600 .95rem/1.2 var(--ff-body);
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}

.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--c-accent); color: #fff; }
.btn--primary:hover { background: var(--c-accent-dark); color: #fff; }

.btn--ghost { border-color: rgba(255, 255, 255, .8); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-green); }

.btn--outline { border-color: var(--c-green); color: var(--c-green); }
.btn--outline:hover { background: var(--c-green); color: #fff; }

/* Header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247, 244, 238, .97);
  box-shadow: 0 1px 0 var(--c-line);
  transition: background-color .3s, box-shadow .3s;
}

.site-header__bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  position: relative;
  z-index: 2;
  flex: none;
  display: block;
  height: var(--logo-h);
}

.brand__logo {
  width: auto;
  height: 100%;
  transition: opacity .3s;
}

.brand__logo--light {
  position: absolute;
  inset: 0;
  opacity: 0;
}

/* Startseite: transparent über dem Hero, bis gescrollt wird */
.home .site-header:not(.is-scrolled) {
  background: linear-gradient(to bottom, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
  box-shadow: none;
}

.home .site-header:not(.is-scrolled) .brand__logo--dark,
.nav-open .brand__logo--dark { opacity: 0; }

.home .site-header:not(.is-scrolled) .brand__logo--light,
.nav-open .brand__logo--light { opacity: 1; }

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(31, 36, 32, .08); }

/* Hauptnavigation */

.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  gap: .25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li a,
.site-nav li strong {
  position: relative;
  display: block;
  padding: .5rem .8rem;
  color: var(--c-text);
  font-weight: 550;
  font-size: .97rem;
  text-decoration: none;
}

.site-nav li a::after,
.site-nav li strong::after {
  content: "";
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .2rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}

.site-nav li a:hover::after,
.site-nav li strong::after,
.site-nav li.trail > a::after { transform: scaleX(1); }

.site-nav li strong { color: var(--c-accent); }

.home .site-header:not(.is-scrolled) .site-nav li a,
.home .site-header:not(.is-scrolled) .site-nav li strong { color: #fff; }

.site-nav__extra { display: none; }

.site-header__cta { flex: none; }

/* Burger */

.nav-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 46px;
  height: 46px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--c-green);
  cursor: pointer;
}

.home .site-header:not(.is-scrolled) .nav-toggle,
.nav-open .nav-toggle { color: #fff; }

.nav-toggle__line {
  position: absolute;
  left: 11px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}

.nav-toggle__line:nth-child(1) { top: 15px; }
.nav-toggle__line:nth-child(2) { top: 22px; }
.nav-toggle__line:nth-child(3) { top: 29px; }

.nav-open .nav-toggle__line:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle__line:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .site-header__bar { gap: .75rem; }

  .nav-toggle { display: block; }

  .site-header__cta {
    min-height: 38px;
    margin-left: auto;
    padding: .45em 1em;
    font-size: .85rem;
  }

  .nav-open .site-header__cta { visibility: hidden; }

  .nav-open .site-header {
    background: transparent;
    box-shadow: none;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2.5rem;
    overflow-y: auto;
    background: var(--c-green);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s var(--ease), visibility 0s;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: center;
    gap: .2rem;
  }

  .site-nav li {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
  }

  .nav-open .site-nav li { opacity: 1; transform: none; }
  .nav-open .site-nav li:nth-child(2) { transition-delay: .04s; }
  .nav-open .site-nav li:nth-child(3) { transition-delay: .08s; }
  .nav-open .site-nav li:nth-child(4) { transition-delay: .12s; }
  .nav-open .site-nav li:nth-child(5) { transition-delay: .16s; }
  .nav-open .site-nav li:nth-child(6) { transition-delay: .2s; }

  .site-nav li a,
  .site-nav li strong,
  .home .site-header:not(.is-scrolled) .site-nav li a,
  .home .site-header:not(.is-scrolled) .site-nav li strong {
    padding: .35rem 1rem;
    color: #fff;
    font-family: var(--ff-head);
    font-size: clamp(1.6rem, 7vw, 2.1rem);
    font-weight: 500;
    text-align: center;
  }

  .site-nav li strong { color: #f1b4ac; }
  .site-nav li a::after, .site-nav li strong::after { display: none; }

  .site-nav__extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    color: var(--c-cream);
  }

  .site-nav__extra .btn { min-width: 220px; }

  .site-nav__contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    margin: 0;
  }

  .site-nav__contact a { color: var(--c-cream); text-decoration: none; }
}

@media (max-width: 380px) {
  .site-header__cta { display: none; }
  .nav-toggle { margin-left: auto; }
}

/* Seitenaufbau */

#wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

#container {
  flex: 1 0 auto;
  padding-top: var(--header-h);
}
.home #container { padding-top: 0; }

.mod_article {
  padding: var(--section) var(--gutter);
}

.mod_article > * {
  max-width: var(--container);
  margin-inline: auto;
}

.mod_article > * + * { margin-top: clamp(2rem, 5vw, 3.5rem); }

.mod_article.narrow > *,
.mod_article > .narrow { max-width: var(--narrow); }

.mod_article.alt { background: var(--c-cream); }

.mod_article.dark {
  background: var(--c-green);
  color: var(--c-cream);
}

.mod_article.dark h1, .mod_article.dark h2, .mod_article.dark h3 { color: #fff; }
.mod_article.dark a:not(.btn) { color: #fff; }

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

.mod_article.flush { padding: 0; }

.mod_article:has(> .page-hero:first-child) { padding-top: 0; }

/* Hero (Startseite) */

.mod_article:has(> .hero) { padding: 0; }
.mod_article > .hero { max-width: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 5rem;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero__media,
.hero__media figure,
.hero__media picture {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img,
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ab Tablet läuft das Video; das Posterbild ist dessen erstes Bild, darum kein Foto davor */
.hero__video { display: none; }

@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .hero__video { display: block; }
  .hero__media figure { display: none; }
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, .35), rgba(0, 0, 0, .15) 35%, rgba(0, 0, 0, .45)),
    rgba(20, 26, 21, .25);
}

.hero__content {
  width: 100%;
  max-width: 44rem;
}

.hero h1, .hero h2 {
  margin-bottom: .4em;
  color: #fff;
  font-size: clamp(2.4rem, 1.6rem + 4vw, 4.5rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}

.hero .rte {
  max-width: 32rem;
  margin-inline: auto;
  font-size: clamp(1rem, .96rem + .2vw, 1.125rem);
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .45);
  text-wrap: balance;
}

.hero .rte p { margin-bottom: .75em; }
.hero .rte a { color: #fff; }

.hero .rte .hero__status {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: .35em 1.1em;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 3px;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(6px);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: none;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 2rem 0 0;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  margin-left: -22px;
}

.hero__scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-right: 2px solid rgba(255, 255, 255, .85);
  border-bottom: 2px solid rgba(255, 255, 255, .85);
  transform: rotate(45deg);
  animation: scroll-hint 2s infinite;
}

@keyframes scroll-hint {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 6px; }
}

@media (max-width: 767px) {
  .hero { padding-bottom: 4.5rem; }
  .hero__actions .btn { flex: 1 1 100%; max-width: 20rem; }
  .hero__scroll { display: none; }
}

/* Intro */

@media (min-width: 860px) {
  .intro .content-text.media--right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto 1fr;
  }

  .intro .content-text.media--right > h1,
  .intro .content-text.media--right > h2 { grid-row: 1; padding-top: 0; }

  .intro .content-text.media--right > .rte { grid-row: 2; padding-bottom: 0; }

  .intro .content-text.media--right > figure {
    grid-row: 1 / -1;
    align-self: stretch;
    min-height: 460px;
  }

  .intro .content-text.media--right > figure picture,
  .intro .content-text.media--right > figure img {
    display: block;
    height: 100%;
    aspect-ratio: auto;
    object-position: 50% 35%;
  }
}

@media (max-width: 859px) {
  .intro .content-text > figure { order: 1; }
  .intro .content-text.media--right > figure img { object-position: 50% 30%; }
}

.intro .rte { color: var(--c-muted); }

.rte .lead {
  margin-bottom: 1.25em;
  color: var(--c-green);
  font-family: var(--ff-head);
  font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem);
  font-weight: 500;
  line-height: 1.5;
}

.rte .signature {
  margin-top: 1.75em;
  padding-top: 1.25em;
  border-top: 1px solid var(--c-line);
  color: var(--c-text);
}

/* Seitenkopf mit Bild */

.mod_article:has(> .page-hero) { padding-inline: 0; }
.mod_article > .page-hero { max-width: none; }

.page-hero {
  position: relative;
  display: grid;
  height: clamp(220px, calc(55svh - var(--header-h)), 560px);
  overflow: hidden;
  color: #fff;
}

.page-hero > * { grid-area: 1 / 1; }

.page-hero figure {
  position: absolute;
  inset: 0;
  margin: 0;
}

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

.page-hero::after {
  content: "";
  grid-area: 1 / 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0) 60%);
}

.page-hero > h1,
.page-hero > h2 {
  z-index: 1;
  align-self: end;
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(1.5rem, 5vw, 3rem);
  color: #fff;
  font-size: clamp(2.2rem, 1.5rem + 3.5vw, 4rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
}

/* Text mit Bild links/rechts */

.content-text.media--left,
.content-text.media--right {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.content-text.media--left > figure,
.content-text.media--right > figure {
  border-radius: var(--radius);
  overflow: hidden;
}

.content-text.media--left > figure img,
.content-text.media--right > figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-text.media--left > figure { order: -1; }
.content-text.media--right > figure { order: -1; }

@media (min-width: 860px) {
  .content-text.media--left,
  .content-text.media--right {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    grid-template-rows: 1fr auto auto 1fr;
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: 0;
    align-items: start;
  }

  .content-text.media--right { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

  .content-text.media--left > h1, .content-text.media--left > h2, .content-text.media--left > h3,
  .content-text.media--right > h1, .content-text.media--right > h2, .content-text.media--right > h3 { padding-top: 60px; }

  .content-text.media--left > .rte,
  .content-text.media--right > .rte { padding-bottom: 60px; }

  .content-text.media--left > figure,
  .content-text.media--right > figure {
    grid-row: 1 / -1;
    align-self: stretch;
    display: flex;
    order: 0;
  }

  .content-text.media--left > figure picture,
  .content-text.media--right > figure picture { display: flex; flex: 1; }

  .content-text.media--left > figure img,
  .content-text.media--right > figure img {
    flex: 1;
    height: auto;
    min-height: 100%;
  }

  .content-text.media--left > figure { grid-column: 1; }
  .content-text.media--right > figure { grid-column: 2; }

  .content-text.media--left > :not(figure) { grid-column: 2; }
  .content-text.media--right > :not(figure) { grid-column: 1; }

  .content-text.media--left > h1, .content-text.media--left > h2, .content-text.media--left > h3,
  .content-text.media--right > h1, .content-text.media--right > h2, .content-text.media--right > h3 { grid-row: 2; }

  .content-text.media--left > .rte,
  .content-text.media--right > .rte { grid-row: 3; }
}

.mod_article > .content-text.media--left + .content-text.media--right,
.mod_article > .content-text.media--right + .content-text.media--left {
  margin-top: clamp(3.5rem, 9vw, 7rem);
}

a[href^="tel:"] { white-space: nowrap; }

/* Einleitung einer Sektion */

.section-intro {
  max-width: var(--narrow) !important;
  text-align: center;
}

.section-intro .rte {
  color: var(--c-muted);
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem);
}

/* Zimmer (Seite Übernachten) */

.mod_article > .room {
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.mod_article > .room + .room { margin-top: clamp(1.5rem, 4vw, 2.5rem); }

@media (min-width: 860px) {
  .content-text.room.media--left,
  .content-text.room.media--right { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .content-text.room > h2 { padding-top: 0; }
  .content-text.room > .rte { padding-bottom: 0; }

  .content-text.room > figure {
    align-self: stretch;
    min-height: 320px;
  }

  .content-text.room > figure picture,
  .content-text.room > figure img {
    display: block;
    height: 100%;
    aspect-ratio: auto;
  }
}

@media (max-width: 859px) {
  .content-text.room > figure { order: -1; }
}

.room .facts {
  margin: 0 0 1.4em;
  padding: 0;
  list-style: none;
}

.room .facts li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: .35em;
}

.room .facts li::before {
  content: "";
  position: absolute;
  left: .15em;
  top: .62em;
  width: .7em;
  height: .38em;
  border-left: 2px solid var(--c-accent);
  border-bottom: 2px solid var(--c-accent);
  transform: rotate(-45deg);
}

.room .price {
  margin-bottom: .4em;
  color: var(--c-muted);
}

.room .price strong {
  display: block;
  color: var(--c-green);
  font-family: var(--ff-head);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
}

.room .availability {
  display: inline-block;
  margin-bottom: 1.4em;
  padding: .2em .8em;
  border-radius: 3px;
  background: var(--c-cream);
  color: var(--c-green);
  font-size: .9rem;
  font-weight: 600;
}

.room .room__actions { margin: 0; }

@media (max-width: 859px) {
  .mod_article > .room > h2,
  .mod_article > .room > .rte { padding-inline: .25rem; }
}

/* Info-Karten nebeneinander */

.mod_article.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-inline: max(var(--gutter), calc((100% - 860px) / 2));
}

.mod_article.info-grid > * { max-width: none; margin: 0; }

.info-card {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-card h3 {
  margin: 1.6em 0 .4em;
  font-size: 1.1rem;
}

.info-card .rte > h3:first-child { margin-top: 0; }

.info-card ul { padding-left: 1.2em; }
.info-card li { margin-bottom: .5em; }

.mod_article.dark .rte .signature {
  border-top-color: rgba(239, 232, 219, .2);
  color: var(--c-cream);
}

/* Karten-Raster (Artikel mit Klasse "cards") */

.mod_article.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-inline: max(var(--gutter), calc((100% - var(--container)) / 2));
}

.mod_article.cards > * { max-width: none; margin: 0; }

.mod_article.cards > .content-headline,
.mod_article.cards > .content-text:not(.media) { grid-column: 1 / -1; }

.mod_article.cards > .content-headline { text-align: center; margin-bottom: .5rem; }

.mod_article.cards > .content-text.media {
  display: flex;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mod_article.cards > .content-text.media > figure { order: -1; }

.mod_article.cards > .content-text.media > figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mod_article.cards > .content-text.media > h2,
.mod_article.cards > .content-text.media > h3 {
  margin: 1.4rem 1.5rem .5rem;
  font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem);
}

.mod_article.cards > .content-text.media > .rte {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 1.5rem;
  color: var(--c-muted);
}

.mod_article.cards .rte p:has(> .link-more) { margin-top: auto; padding-top: .5rem; }

.mod_article.cards .rte strong { color: var(--c-text); }

.link-more {
  font-weight: 600;
  text-decoration: none;
}

.link-more::after {
  content: " →";
  transition: margin-left .2s var(--ease);
}

.link-more:hover::after { margin-left: .25em; }

/* Galerie */

.content-gallery ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(.5rem, 1.5vw, 1rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-gallery figure {
  border-radius: 3px;
  overflow: hidden;
}

.content-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .5s var(--ease);
}

.content-gallery a:hover img { transform: scale(1.04); }

/* Einzelbild zentriert */

.content-image.centered figure { display: flex; justify-content: center; }
.content-image.centered img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Tabellen und Listen im Fliesstext */

.rte table { width: 100%; border-collapse: collapse; }
.rte th, .rte td { padding: .6rem .75rem; border-bottom: 1px solid var(--c-line); text-align: left; }

/* Footer */

.site-footer {
  background: var(--c-green);
  color: var(--c-cream);
}

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

.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) var(--gutter);
  text-align: center;
}

.site-footer__brand img {
  width: 170px;
  margin: 0 auto;
}

.site-footer__content {
  display: grid;
  gap: 2rem;
}

.site-footer__content p { margin: 0 0 .75rem; }

.site-footer__content .footer-social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
}

.site-footer__content nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__content nav a,
.site-footer__content nav strong { color: var(--c-cream); font-weight: 500; text-decoration: none; }
.site-footer__content nav a:hover { color: #fff; text-decoration: underline; }

@media (min-width: 860px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: clamp(3rem, 8vw, 6rem);
    text-align: left;
  }

  .site-footer__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .site-footer__content .footer-social,
  .site-footer__content nav ul { justify-content: flex-start; }
}

.site-footer__bottom {
  border-top: 1px solid rgba(239, 232, 219, .15);
  padding: 1.25rem var(--gutter);
  font-size: .85rem;
  text-align: center;
  color: rgba(239, 232, 219, .75);
}

.site-footer__bottom p { margin: 0; }

/* Lightbox */

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 18, 15, .94);
}

.lightbox::backdrop { background: transparent; }

.lightbox img {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 6rem);
  margin: auto;
  border-radius: 3px;
}

.lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 1rem; top: 50%; translate: 0 -50%; }
