/* =========================================================================
   Haus Elimar Weber – Gestaltung
   Ablage: media/templates/site/tp_wedding/css/custom.css
   Wird von Astroid automatisch geladen und bleibt bei Template-Updates erhalten.

   Aufbau
   1  Farben, Schrift, Grundwerte
   2  Vorlage entromantisieren (tp_wedding)
   3  Kopfleiste, Kopf, Navigation, Fusszeile
   4  Grundtypografie im Inhalt
   5  Bausteine (Hero, Karten, Tabellen, Formulare, Galerie, Zeitleiste)
   6  Lightbox
   7  Zugaenglichkeit und Druck
   8  Umbrueche
   ========================================================================= */

/* -------------------------------------------------- 1  Grundwerte */
:root {
  --hew-creme:      #faf7f2;
  --hew-creme-tief: #f2ece1;
  --hew-weiss:      #ffffff;
  --hew-blau:       #12293f;
  --hew-blau-hell:  #1f4e79;
  --hew-himmel:     #8fb6d0;
  --hew-himmel-hell:#c3d4e1;
  --hew-sand:       #d8d0be;
  --hew-linie:      #e6dfd2;
  --hew-text:       #223140;
  --hew-grau:       #5d6b78;
  --hew-fokus:      #b8862b;

  --hew-serif: Georgia, "Times New Roman", "Nimbus Roman No9 L", serif;
  --hew-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
              Arial, "Noto Sans", sans-serif;

  --hew-breite: 1220px;
  --hew-luft: clamp(2.75rem, 6vw, 5.5rem);
  --hew-radius: 2px;
  --hew-schatten: 0 1px 2px rgba(18, 41, 63, .05), 0 8px 28px rgba(18, 41, 63, .07);
}

html { overflow-x: hidden; }

body.site {
  background: var(--hew-creme);
  color: var(--hew-text);
  font-family: var(--hew-sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------------- 2  Vorlage neutralisieren */
/* tp_wedding bringt Script-Schriften, Rosatoene und Zierelemente mit.
   Alles, was nach Hochzeit aussieht, wird hier zurueckgesetzt. */
body.site,
body.site .astroid-layout,
body.site .astroid-wrapper,
body.site .astroid-content,
body.site .astroid-component-section,
body.site .astroid-section:not(.astroid-header-section):not(.astroid-footer-section) {
  background-color: var(--hew-creme);
  background-image: none;
}

body.site h1, body.site h2, body.site h3,
body.site h4, body.site h5, body.site h6,
body.site .page-header h1, body.site .item-page h1, body.site .item-page h2 {
  font-family: var(--hew-serif);
  color: var(--hew-blau);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.22;
}

body.site .astroid-section::before,
body.site .astroid-section::after,
body.site .page-header::before,
body.site .page-header::after,
body.site h1::before, body.site h1::after,
body.site h2::before, body.site h2::after,
body.site .astroid-article-text h2::before,
body.site .astroid-article-text h2::after { content: none !important; }

body.site .astroid-component-area { padding-block: 0; }
body.site .item-page { margin: 0; }

/* -------------------------------------------------- 3  Kopf und Fuss */
.hew-topbar { background: var(--hew-blau); color: var(--hew-himmel-hell); font-size: 13px; }
.hew-topbar__innen {
  max-width: var(--hew-breite); margin-inline: auto; padding: .55rem 1.25rem;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}
.hew-topbar p { margin: 0; }
.hew-topbar__marke {
  font-family: var(--hew-serif); letter-spacing: .15em;
  text-transform: uppercase; color: var(--hew-himmel);
}
.hew-topbar__trenner { opacity: .4; margin-inline: .5rem; }
.hew-topbar__kontakt { display: flex; align-items: center; gap: 1.1rem; }
.hew-topbar a { color: var(--hew-himmel-hell); text-decoration: none; }
.hew-topbar a:hover { color: #fff; text-decoration: underline; }
.hew-topbar__tel { font-weight: 600; color: #fff !important; }
.hew-topbar__cta {
  border: 1px solid rgba(255,255,255,.45); padding: .25rem .8rem;
  border-radius: var(--hew-radius);
}
.hew-topbar__cta:hover { background: #fff; color: var(--hew-blau) !important; text-decoration: none !important; }
.astroid-section:has(> .container > .astroid-row .hew-topbar) > .container { max-width: 100%; padding: 0; }

.astroid-header-section {
  background: rgba(250, 247, 242, .96);
  border-bottom: 1px solid var(--hew-linie);
}
.astroid-header-section > .container,
.astroid-component-section > .container,
.astroid-footer-section > .container { max-width: var(--hew-breite); }

#astroid-header, #astroid-sticky-header .astroid-header { min-height: 84px; }
.astroid-logo-image img, .logo-wrapper img { max-height: 58px; width: auto; height: auto; }

#astroid-sticky-header {
  background: rgba(250, 247, 242, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hew-linie);
  box-shadow: 0 2px 14px rgba(18, 41, 63, .07);
}

.astroid-nav > li > a {
  font-family: var(--hew-sans);
  font-size: 15.5px; font-weight: 500; letter-spacing: .01em;
  text-transform: none; color: var(--hew-blau);
  padding: .55rem .95rem; position: relative;
}
.astroid-nav > li > a:hover, .astroid-nav > li > a:focus-visible { color: var(--hew-blau-hell); }
.astroid-nav > li.active > a::after, .astroid-nav > li.current > a::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .1rem;
  height: 2px; background: var(--hew-blau-hell);
}
.astroid-nav .nav-submenu, .astroid-nav .megamenu-container {
  background: var(--hew-weiss); border: 1px solid var(--hew-linie);
  border-radius: var(--hew-radius); box-shadow: var(--hew-schatten); padding: .4rem 0;
}
.astroid-nav .nav-submenu > li > a { color: var(--hew-text); font-size: 15px; padding: .5rem 1.15rem; }
.astroid-nav .nav-submenu > li > a:hover { background: var(--hew-creme-tief); color: var(--hew-blau); }

.astroid-nav > li > a.hew-menue-cta, .astroid-nav > li.hew-menue-cta > a {
  background: var(--hew-blau); color: var(--hew-weiss);
  border-radius: var(--hew-radius); margin-left: .6rem; padding-inline: 1.15rem;
}
.astroid-nav > li > a.hew-menue-cta:hover, .astroid-nav > li.hew-menue-cta > a:hover {
  background: var(--hew-blau-hell); color: #fff;
}

.astroid-mobilemenu { background: var(--hew-blau); }
.astroid-mobile-menu a { color: var(--hew-himmel-hell); font-family: var(--hew-sans); }
.astroid-mobile-menu a:hover { color: #fff; }

.astroid-footer-section {
  background: var(--hew-blau); color: var(--hew-himmel-hell);
  padding-block: clamp(2.5rem, 5vw, 4rem) 0; text-align: left;
}
.astroid-footer-section a { color: var(--hew-himmel-hell); text-decoration: none; }
.astroid-footer-section a:hover { color: #fff; text-decoration: underline; }
.astroid-footer-section h3,
.astroid-footer-section .moduletable > h3,
.astroid-footer-section .hew-fuss__titel {
  font-family: var(--hew-sans); font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hew-himmel);
  margin-bottom: .9rem; font-weight: 600;
}
.astroid-footer-section ul { list-style: none; margin: 0; padding: 0; }
.astroid-footer-section ul li { margin-bottom: .45rem; }
.astroid-footer-section .nav-item > .nav-link { padding: 0; }
#astroid-footer {
  border-top: 1px solid rgba(255, 255, 255, .13); margin-top: 2.5rem;
  padding: 1.25rem 0; font-size: 14px; color: rgba(255, 255, 255, .55); text-align: center;
}
#astroid-footer a { color: rgba(255, 255, 255, .75); }

.hew-fuss__marke { font-family: var(--hew-serif); font-size: 1.35rem; color: #fff; margin: 0 0 .2rem; }
.hew-fuss__zusatz { color: var(--hew-himmel); font-size: .95rem; margin: 0 0 .9rem; }
.hew-fuss__text { font-size: .95rem; line-height: 1.6; }
.hew-fuss__logo { max-width: 190px; height: auto; margin-bottom: 1rem; }
.hew-fuss__adresse { font-style: normal; line-height: 1.8; }

#astroid-backtotop { background: var(--hew-blau); border: none; color: #fff; }

/* -------------------------------------------------- 4  Typografie im Inhalt */
.astroid-article-text > *, .item-page > .page-header { max-width: var(--hew-breite); margin-inline: auto; }

.item-page > .page-header h1,
.astroid-component-area h1:not(.hew-hero__titel) {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  margin: clamp(1.5rem, 4vw, 2.75rem) 0 .6rem;
}
.astroid-article-text h2 { font-size: clamp(1.5rem, 2.7vw, 2.05rem); margin: 0 0 .8rem; }
.astroid-article-text h3 { font-size: clamp(1.2rem, 1.9vw, 1.4rem); margin: 0 0 .55rem; }
.astroid-article-text .hew-h3 { font-size: 1.15rem; margin-top: 1.9rem; }
.astroid-article-text p { margin: 0 0 1.05rem; }
.astroid-article-text a { color: var(--hew-blau-hell); text-underline-offset: .18em; }
.astroid-article-text a:hover { color: var(--hew-blau); }
.astroid-article-text img { max-width: 100%; height: auto; }

.hew-kicker {
  font-family: var(--hew-sans); font-size: 12.5px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--hew-blau-hell);
  margin: 0 0 .5rem; font-weight: 600;
}
.hew-kicker--hell { color: var(--hew-himmel); }
.hew-lead {
  font-size: clamp(1.08rem, 1.7vw, 1.24rem); line-height: 1.6;
  color: var(--hew-grau); max-width: 62ch; margin-bottom: 1.6rem !important;
}
.hew-fussnote { font-size: .92rem; color: var(--hew-grau); }
.hew-back { margin-top: 2rem; }

.hew-wrap { max-width: var(--hew-breite); margin-inline: auto; padding-inline: 1.25rem; }
.hew-sec { margin-block: var(--hew-luft); }
.hew-bleed {
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none;
}
.hew-sec--sand { background: var(--hew-creme-tief); padding-block: var(--hew-luft); }
.hew-sec--dunkel { background: var(--hew-blau); color: var(--hew-himmel-hell); padding-block: var(--hew-luft); }
.hew-sec--dunkel h2, .hew-sec--dunkel h3 { color: #fff; }

.hew-sec__kopf {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem;
  border-bottom: 1px solid var(--hew-linie); padding-bottom: 1.1rem;
}
.hew-sec__kopf h2 { margin: 0; }
.hew-mehr { font-weight: 600; white-space: nowrap; text-decoration: none; }
.hew-mehr::after { content: " \2192"; }

.hew-platzhalter {
  display: inline-block; background: #fdf3d8; border: 1px dashed #c9a227;
  color: #6b5312; font-family: var(--hew-sans); font-size: .84em; font-weight: 600;
  padding: .1em .5em; border-radius: var(--hew-radius);
}
.hew-platzhalter-block { margin-block: 1rem; }

/* -------------------------------------------------- 5  Bausteine */
.hew-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--hew-sans); font-size: 15.5px; font-weight: 600; line-height: 1.2;
  padding: .85rem 1.6rem; border-radius: var(--hew-radius);
  border: 1.5px solid transparent; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.hew-btn--primary { background: var(--hew-blau); color: #fff; }
.hew-btn--primary:hover, .hew-btn--primary:focus-visible { background: var(--hew-blau-hell); color: #fff; }
.hew-btn--ghost { background: transparent; color: var(--hew-blau); border-color: var(--hew-sand); }
.hew-btn--ghost:hover, .hew-btn--ghost:focus-visible { border-color: var(--hew-blau); color: var(--hew-blau); background: var(--hew-weiss); }
.hew-btn--hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.hew-btn--hell:hover, .hew-btn--hell:focus-visible { background: #fff; color: var(--hew-blau); border-color: #fff; }
.hew-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.4rem; }
.hew-actions--klein .hew-btn { padding: .6rem 1.1rem; font-size: 14.5px; }

.hew-hero {
  position: relative; display: grid; place-items: end start;
  min-height: clamp(420px, 68vh, 660px); overflow: hidden; margin-bottom: 0;
}
.hew-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
.hew-hero__schleier {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12,28,44,.30) 0%, rgba(12,28,44,.20) 40%, rgba(12,28,44,.82) 100%);
}
.hew-hero__inhalt {
  position: relative; z-index: 1; color: #fff; max-width: var(--hew-breite); width: 100%;
  margin-inline: auto; padding: 0 1.25rem clamp(2.5rem, 6vw, 4.5rem);
}
.hew-hero__titel {
  color: #fff !important; margin: 0 0 .8rem;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem); max-width: 18ch;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.hew-hero__text { max-width: 56ch; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.94); }

.hew-zahlen { background: var(--hew-blau); color: #fff; margin-block: 0; }
.hew-zahlen__gitter { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding-block: 1.9rem; }
.hew-zahl { padding-inline: .75rem; border-left: 1px solid rgba(255,255,255,.14); }
.hew-zahl:first-child { border-left: none; }
.hew-zahl__wert { display: block; font-family: var(--hew-serif); font-size: clamp(1.35rem, 2.6vw, 1.95rem); line-height: 1.15; color: #fff; }
.hew-zahl__text { display: block; margin-top: .3rem; font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--hew-himmel); }

.hew-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center; }
.hew-split--gedreht .hew-split__bild { order: -1; }
.hew-split__bild { margin: 0; }
.hew-split__bild img { width: 100%; height: auto; border-radius: var(--hew-radius); display: block; }
.hew-split__bild figcaption, .astroid-article-text figcaption { font-size: .88rem; color: var(--hew-grau); margin-top: .55rem; }
.hew-sec--dunkel figcaption { color: var(--hew-himmel); }
.hew-merkzeile { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.3rem 0 0; }
.hew-merkzeile li { border: 1px solid var(--hew-sand); border-radius: 100px; padding: .3rem .85rem; font-size: 13.5px; color: var(--hew-grau); }
.hew-historie__bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hew-historie__bilder figure { margin: 0; }
.hew-historie__bilder img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/4; }

.hew-cards { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.hew-cards--3 { grid-template-columns: repeat(3, 1fr); }
.hew-card {
  background: var(--hew-weiss); border: 1px solid var(--hew-linie);
  border-radius: var(--hew-radius); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .18s;
}
.hew-card:hover { box-shadow: var(--hew-schatten); }
.hew-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.hew-card__bild { overflow: hidden; }
.hew-card__bild img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .4s ease; }
.hew-card:hover .hew-card__bild img { transform: scale(1.035); }
.hew-card__text { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.hew-card__text h3 { margin-bottom: .5rem; }
.hew-card__text h3 a { text-decoration: none; color: var(--hew-blau); }
.hew-card__text h3 a:hover { color: var(--hew-blau-hell); }
.hew-card__text p { font-size: .96rem; color: var(--hew-grau); }
.hew-card__meta { list-style: none; padding: 0; margin: .2rem 0 .8rem; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .88rem; color: var(--hew-grau); }
.hew-card__meta li::before { content: "\2022"; margin-right: .4rem; color: var(--hew-sand); }
.hew-card__meta li:first-child::before { content: none; }
.hew-card__preis { font-family: var(--hew-serif); font-size: 1.08rem; color: var(--hew-blau); margin: 0 0 .4rem !important; }
.hew-card__mehr { margin-top: auto; font-weight: 600; color: var(--hew-blau-hell); font-size: .95rem; }
.hew-card__mehr::after { content: " \2192"; }
.hew-card--text .hew-card__text { padding-top: 1.6rem; }
.hew-card .hew-actions { margin-top: auto; }

.hew-themen { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.hew-themen--2 { grid-template-columns: repeat(2, 1fr); }
.hew-thema { display: block; text-decoration: none; color: inherit; background: var(--hew-weiss); border: 1px solid var(--hew-linie); overflow: hidden; }
.hew-thema__bild img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; transition: transform .4s ease; }
.hew-thema:hover .hew-thema__bild img { transform: scale(1.035); }
.hew-thema__text { padding: 1.3rem 1.4rem 1.5rem; }
.hew-thema__text h2, .hew-thema__text h3 { margin-bottom: .45rem; }
.hew-thema__text p { color: var(--hew-grau); font-size: .96rem; margin: 0; }
.hew-thema--statisch { cursor: default; }

.hew-room { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.hew-room__hero { margin: 0 0 .75rem; }
.hew-room__hero img { width: 100%; aspect-ratio: 3/2; object-fit: cover; display: block; }
.hew-thumbs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.hew-thumbs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.hew-room__text { font-size: 1.06rem; }
.hew-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 1.6rem 0; border-top: 1px solid var(--hew-linie); }
.hew-fact { border-bottom: 1px solid var(--hew-linie); padding: .7rem .2rem; }
.hew-fact:nth-child(odd) { padding-right: 1rem; }
.hew-fact dt { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--hew-grau); margin: 0 0 .1rem; }
.hew-fact dd { margin: 0; font-size: 1rem; color: var(--hew-blau); }
.hew-features { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.2rem; }
.hew-features--breit { grid-template-columns: repeat(3, 1fr); margin-top: 1.4rem; }
.hew-features li { position: relative; padding-left: 1.6rem; font-size: .97rem; }
.hew-features li::before {
  content: ""; position: absolute; left: .2rem; top: .58em;
  width: .5rem; height: .28rem; border-left: 2px solid var(--hew-blau-hell);
  border-bottom: 2px solid var(--hew-blau-hell); transform: rotate(-45deg);
}
.hew-liste { list-style: none; padding: 0; margin: 0 0 1rem; }
.hew-liste li { position: relative; padding-left: 1.2rem; margin-bottom: .45rem; }
.hew-liste li::before { content: "\2013"; position: absolute; left: 0; color: var(--hew-sand); }

.hew-preisbox { background: var(--hew-creme-tief); border: 1px solid var(--hew-linie); padding: 1.4rem 1.5rem 1.6rem; margin-top: 1.8rem; }
.hew-preisbox__titel { font-size: 1.02rem !important; font-family: var(--hew-sans) !important; font-weight: 600; margin-bottom: .9rem !important; }
.hew-preisbox__hinweis { font-size: .88rem; color: var(--hew-grau); margin: .8rem 0 0 !important; }

.hew-hinweis { background: var(--hew-weiss); border-left: 3px solid var(--hew-himmel); padding: 1rem 1.2rem; margin-top: 1.5rem; }
.hew-hinweis__titel { font-weight: 600; margin-bottom: .3rem !important; color: var(--hew-blau); }
.hew-hinweis p:last-child { margin-bottom: 0; }

.hew-kasten { background: var(--hew-weiss); border: 1px solid var(--hew-linie); padding: 1.6rem 1.7rem 1.8rem; }
.hew-kasten h2 { font-size: 1.3rem !important; margin-bottom: .9rem; }
.hew-kasten--akzent { background: var(--hew-blau); color: var(--hew-himmel-hell); border-color: var(--hew-blau); }
.hew-kasten--akzent h2 { color: #fff; }
.hew-kasten--akzent a { color: #fff; }
.hew-kasten--offen { border-style: dashed; border-color: var(--hew-sand); background: transparent; }
.hew-kasten__tel { margin-top: 1rem !important; font-size: .95rem; }
.hew-tel { font-family: var(--hew-serif); font-size: 1.25rem; }

.hew-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--hew-linie); padding-top: 1.2rem; }
.hew-pager__link { text-decoration: none; color: var(--hew-blau); }
.hew-pager__link--next { text-align: right; }
.hew-pager__label { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--hew-grau); }
.hew-pager__link--prev .hew-pager__label::before { content: "\2190\00a0"; }
.hew-pager__link--next .hew-pager__label::after { content: "\00a0\2192"; }
.hew-pager__name { font-family: var(--hew-serif); font-size: 1.15rem; }

.hew-tabelle-rahmen { overflow-x: auto; }
.hew-preise, .hew-quellen { width: 100%; border-collapse: collapse; background: var(--hew-weiss); }
.hew-preise th, .hew-preise td, .hew-quellen th, .hew-quellen td {
  padding: .85rem 1rem; border-bottom: 1px solid var(--hew-linie); text-align: left;
}
.hew-preise thead th, .hew-quellen thead th {
  background: var(--hew-blau); color: #fff; font-family: var(--hew-sans);
  font-size: 13px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600;
}
.hew-preise tbody th { font-weight: 600; color: var(--hew-blau); font-family: var(--hew-serif); font-size: 1.08rem; }
.hew-preise tbody th a { text-decoration: none; }
.hew-preise__art { display: block; font-family: var(--hew-sans); font-size: .84rem; font-weight: 400; color: var(--hew-grau); }
.hew-preise tbody tr:nth-child(even) { background: #fcfaf6; }
.hew-preise td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hew-preise--kompakt { background: transparent; }
.hew-preise--kompakt thead th { background: transparent; color: var(--hew-grau); border-bottom: 1px solid var(--hew-sand); }
.hew-preise--kompakt td { font-family: var(--hew-serif); font-size: 1.25rem; color: var(--hew-blau); }
.hew-quellen tbody th { font-weight: 600; color: var(--hew-blau); }

.hew-schritte { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.hew-schritte li { background: var(--hew-weiss); border: 1px solid var(--hew-linie); padding: 1.5rem 1.5rem 1.6rem; }
.hew-schritte__nr {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--hew-blau); color: #fff; font-family: var(--hew-serif);
  font-size: 1.15rem; margin-bottom: .9rem;
}
.hew-schritte h2 { font-size: 1.2rem !important; margin-bottom: .45rem; }
.hew-schritte p { color: var(--hew-grau); font-size: .96rem; margin: 0; }

.hew-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.hew-timeline::before { content: ""; position: absolute; left: 7.5rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--hew-sand); }
.hew-timeline__punkt { display: grid; grid-template-columns: 7.5rem 1fr; gap: 2.5rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); position: relative; }
.hew-timeline__jahr { font-family: var(--hew-serif); font-size: 1.3rem; color: var(--hew-blau); text-align: right; padding-right: 1.5rem; margin: 0 !important; }
.hew-timeline__punkt::before {
  content: ""; position: absolute; left: calc(7.5rem - 5px); top: .55rem;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--hew-blau); border: 2px solid var(--hew-creme);
}
.hew-timeline__inhalt figure { margin: 0 0 .9rem; }
.hew-timeline__inhalt img { width: 100%; height: auto; }

.hew-gallery { display: grid; gap: .85rem; }
.hew-gallery--3 { grid-template-columns: repeat(3, 1fr); }
.hew-gallery--4 { grid-template-columns: repeat(4, 1fr); }
.hew-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.hew-kapitel__kopf { max-width: 62ch; margin-bottom: 1.6rem; }
.hew-kapitel__kopf p:last-child { color: var(--hew-grau); margin: 0; }
.hew-karte img { width: 100%; height: auto; background: var(--hew-weiss); border: 1px solid var(--hew-linie); }

.hew-lb { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; line-height: 0; }
.hew-lb img { transition: transform .4s ease; }
.hew-lb:hover img { transform: scale(1.04); }
.hew-lb__icon {
  position: absolute; right: .6rem; bottom: .6rem; width: 2rem; height: 2rem;
  border-radius: 50%; background: rgba(18, 41, 63, .78); opacity: 0; transition: opacity .2s;
}
.hew-lb__icon::before, .hew-lb__icon::after { content: ""; position: absolute; background: #fff; }
.hew-lb__icon::before { left: .55rem; right: .55rem; top: calc(50% - 1px); height: 2px; }
.hew-lb__icon::after { top: .55rem; bottom: .55rem; left: calc(50% - 1px); width: 2px; }
.hew-lb:hover .hew-lb__icon, .hew-lb:focus-visible .hew-lb__icon { opacity: 1; }

.hew-filter { display: flex; flex-wrap: wrap; gap: 1.75rem; align-items: flex-end; margin-bottom: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--hew-linie); }
.hew-filter__gruppe { border: 0; padding: 0; margin: 0; }
.hew-filter__gruppe legend { font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--hew-grau); padding: 0; margin-bottom: .5rem; float: left; width: 100%; }
.hew-chip {
  background: var(--hew-weiss); border: 1px solid var(--hew-sand); color: var(--hew-blau);
  padding: .5rem 1rem; font-size: 14.5px; font-family: var(--hew-sans);
  cursor: pointer; margin-right: .4rem; border-radius: var(--hew-radius);
}
.hew-chip:hover { border-color: var(--hew-blau-hell); }
.hew-chip.is-aktiv { background: var(--hew-blau); border-color: var(--hew-blau); color: #fff; }
.hew-filter__zaehler { margin: 0 0 .1rem !important; font-size: .92rem; color: var(--hew-grau); margin-left: auto !important; }

.hew-cta { background: var(--hew-blau); color: var(--hew-himmel-hell); padding-block: var(--hew-luft); text-align: center; }
.hew-cta h2 { color: #fff; max-width: 26ch; margin-inline: auto; }
.hew-cta p { max-width: 60ch; margin-inline: auto; }
.hew-cta .hew-actions { justify-content: center; }

.hew-anfrage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.75rem, 4vw, 3rem); align-items: start; }
.hew-anfrage__seite { display: grid; gap: 1.25rem; }
.hew-kontakt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.75rem, 4vw, 3.5rem); align-items: start; }
.hew-form { background: var(--hew-weiss); border: 1px solid var(--hew-linie); padding: clamp(1.4rem, 3vw, 2.2rem); }
.hew-form h2 { font-size: 1.4rem !important; margin-bottom: 1.3rem; }
.hew-form__reihe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hew-feld { margin-bottom: 1.1rem; }
.hew-feld label { display: block; font-size: 14px; font-weight: 600; color: var(--hew-blau); margin-bottom: .35rem; }
.hew-feld input[type=text], .hew-feld input[type=email], .hew-feld input[type=tel],
.hew-feld input[type=date], .hew-feld select, .hew-feld textarea {
  width: 100%; font-family: var(--hew-sans); font-size: 16px; color: var(--hew-text);
  background: var(--hew-creme); border: 1px solid var(--hew-sand);
  border-radius: var(--hew-radius); padding: .7rem .85rem;
}
.hew-feld input:focus, .hew-feld select:focus, .hew-feld textarea:focus {
  outline: 2px solid var(--hew-blau-hell); outline-offset: 1px;
  border-color: var(--hew-blau-hell); background: #fff;
}
.hew-feld--check { display: flex; gap: .65rem; align-items: flex-start; }
.hew-feld--check input { margin-top: .28rem; width: 1.05rem; height: 1.05rem; flex: none; }
.hew-feld--check label { font-weight: 400; font-size: .93rem; color: var(--hew-text); }
.hew-feld--honigtopf { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hew-pflicht { color: #a3341f; }
.hew-form__hinweis { font-size: .86rem; color: var(--hew-grau); }
.hew-form__status { margin: 1rem 0 0 !important; font-size: .95rem; }
.hew-form__status.is-fehler { color: #a3341f; }
.hew-form__status.is-ok { color: #1d6b3e; }
.hew-feld input[aria-invalid=true], .hew-feld textarea[aria-invalid=true] { border-color: #a3341f; }

.hew-kontaktliste { margin: 1.2rem 0; }
.hew-kontaktliste > div { display: flex; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--hew-linie); }
.hew-kontaktliste dt { min-width: 5.5rem; color: var(--hew-grau); font-size: .92rem; }
.hew-kontaktliste dd { margin: 0; font-weight: 600; }
.hew-adresse { font-style: normal; line-height: 1.8; }

.hew-rechtstext { max-width: 74ch; }
.hew-rechtstext h2 { font-size: 1.25rem !important; margin-top: 2rem; }
.hew-rechtstext h2:first-child { margin-top: 0; }

/* -------------------------------------------------- 6  Lightbox */
.hew-lightbox {
  position: fixed; inset: 0; z-index: 2000; background: rgba(8, 18, 28, .94);
  display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 4vw, 3rem);
}
.hew-lightbox[hidden] { display: none; }
.hew-lightbox__figur { margin: 0; max-width: min(1280px, 100%); max-height: 100%; display: flex; flex-direction: column; }
.hew-lightbox__bild { max-width: 100%; max-height: calc(100vh - 9rem); width: auto; height: auto; object-fit: contain; margin-inline: auto; display: block; }
.hew-lightbox__text { color: #e8eef3; font-size: .95rem; text-align: center; padding-top: .9rem; }
.hew-lightbox__zaehler { display: block; color: rgba(255,255,255,.5); font-size: .82rem; margin-top: .25rem; }
.hew-lightbox__knopf {
  position: absolute; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  color: #fff; width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; line-height: 1;
}
.hew-lightbox__knopf:hover { background: rgba(255,255,255,.25); }
.hew-lightbox__zu { top: 1.25rem; right: 1.25rem; }
.hew-lightbox__vor { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.hew-lightbox__zurueck { right: 1.25rem; top: 50%; transform: translateY(-50%); }
body.hew-lightbox-offen { overflow: hidden; }

/* -------------------------------------------------- 7  Zugaenglichkeit, Druck */
.hew-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, .hew-btn:focus-visible, .hew-lb:focus-visible,
.astroid-nav a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--hew-fokus); outline-offset: 2px; border-radius: 1px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .hew-card:hover .hew-card__bild img, .hew-thema:hover .hew-thema__bild img, .hew-lb:hover img { transform: none; }
}

@media print {
  .astroid-header-section, .astroid-footer-section, .hew-topbar, .hew-actions, .hew-filter,
  .hew-pager, #astroid-backtotop, .hew-lightbox { display: none !important; }
  body.site { background: #fff; font-size: 11pt; }
  .hew-bleed { width: auto; margin-inline: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}

/* -------------------------------------------------- 8  Umbrueche */
@media (max-width: 1100px) {
  .hew-features--breit { grid-template-columns: 1fr 1fr; }
  .hew-gallery--4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .hew-cards--3, .hew-themen, .hew-schritte { grid-template-columns: repeat(2, 1fr); }
  .hew-room { grid-template-columns: 1fr; }
  .hew-anfrage, .hew-kontakt { grid-template-columns: 1fr; }
  .hew-form__reihe { grid-template-columns: 1fr 1fr; }
  .hew-zahlen__gitter { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0; }
  .hew-zahl:nth-child(odd) { border-left: none; }
  .hew-split { grid-template-columns: 1fr; }
  .hew-split--gedreht .hew-split__bild { order: 0; }
}
@media (max-width: 780px) {
  body.site { font-size: 16.5px; }
  .hew-themen--2, .hew-gallery--3, .hew-gallery--4 { grid-template-columns: repeat(2, 1fr); }
  .hew-timeline::before { left: .5rem; }
  .hew-timeline__punkt { grid-template-columns: 1fr; gap: .5rem; padding-left: 2rem; }
  .hew-timeline__punkt::before { left: 0; }
  .hew-timeline__jahr { text-align: left; padding-right: 0; }
  .hew-filter { gap: 1.1rem; }
  .hew-filter__zaehler { margin-left: 0 !important; width: 100%; }
  .hew-sec__kopf { align-items: flex-start; }
  .hew-topbar__innen { justify-content: center; text-align: center; font-size: 12.5px; }
}
@media (max-width: 620px) {
  .hew-cards--3, .hew-themen, .hew-themen--2, .hew-schritte { grid-template-columns: 1fr; }
  .hew-gallery--3, .hew-gallery--4 { grid-template-columns: 1fr 1fr; }
  .hew-form__reihe { grid-template-columns: 1fr; }
  .hew-features, .hew-features--breit { grid-template-columns: 1fr; }
  .hew-facts { grid-template-columns: 1fr; }
  .hew-thumbs { grid-template-columns: repeat(3, 1fr); }
  .hew-lightbox__vor { left: .5rem; }
  .hew-lightbox__zurueck { right: .5rem; }
  .hew-pager__name { font-size: 1rem; }
  .hew-topbar__ort { display: none; }

  .hew-preise, .hew-preise thead, .hew-preise tbody, .hew-preise tr,
  .hew-preise th, .hew-preise td { display: block; width: 100%; }
  .hew-preise thead { display: none; }
  .hew-preise tbody tr { border: 1px solid var(--hew-linie); margin-bottom: .9rem; background: var(--hew-weiss); }
  .hew-preise tbody th { border-bottom: 1px solid var(--hew-linie); }
  .hew-preise td { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dotted var(--hew-linie); }
  .hew-preise td::before { content: attr(data-label); color: var(--hew-grau); font-size: .88rem; font-family: var(--hew-sans); }
  .hew-quellen, .hew-quellen thead, .hew-quellen tbody, .hew-quellen tr, .hew-quellen th, .hew-quellen td { display: block; width: 100%; }
  .hew-quellen thead { display: none; }
  .hew-quellen td::before { content: attr(data-label); display: block; color: var(--hew-grau); font-size: .82rem; }
  .hew-quellen tbody tr { border: 1px solid var(--hew-linie); margin-bottom: .8rem; background: var(--hew-weiss); }
}




/* ==== 9  Nachschaerfungen: Vorrang vor Bootstrap und den Astroid-Grundfarben ==== */
/* Helle Ueberschriften auf dunklem Grund brauchen mehr Gewicht als body.site h2 */
body.site .hew-cta h2, body.site .hew-sec--dunkel h2, body.site .hew-sec--dunkel h3,
body.site .hew-kasten--akzent h2, body.site .hew-hero__titel, body.site .hew-fuss h2,
body.site .hew-fuss h3, body.site .hew-fuss .hew-fuss__marke { color: #fff; }
body.site .hew-fuss h3, body.site .hew-fuss .hew-fuss__titel {
  font-family: var(--hew-sans); font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--hew-himmel); font-weight: 600; margin-bottom: .9rem; }

/* Knoepfe gewinnen gegen die Linkfarbe des Artikelbereichs */
.astroid-article-text a.hew-btn.hew-btn--primary, a.hew-btn.hew-btn--primary { background: var(--hew-blau); color: #fff; }
.astroid-article-text a.hew-btn.hew-btn--primary:hover, a.hew-btn.hew-btn--primary:hover { background: var(--hew-blau-hell); color: #fff; }
.astroid-article-text a.hew-btn.hew-btn--ghost, a.hew-btn.hew-btn--ghost { background: transparent; color: var(--hew-blau); border-color: var(--hew-sand); }
.astroid-article-text a.hew-btn.hew-btn--ghost:hover, a.hew-btn.hew-btn--ghost:hover { background: var(--hew-weiss); color: var(--hew-blau); border-color: var(--hew-blau); }
.astroid-article-text a.hew-btn.hew-btn--hell, a.hew-btn.hew-btn--hell { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.astroid-article-text a.hew-btn.hew-btn--hell:hover, a.hew-btn.hew-btn--hell:hover { background: #fff; color: var(--hew-blau); border-color: #fff; }
.astroid-article-text a.hew-mehr { color: var(--hew-blau-hell); }
.astroid-article-text a.hew-card__link, .astroid-article-text a.hew-thema { color: inherit; text-decoration: none; }
.astroid-article-text .hew-sec--dunkel a:not(.hew-btn), .astroid-article-text .hew-cta a:not(.hew-btn),
.astroid-article-text .hew-kasten--akzent a:not(.hew-btn), .astroid-article-text .hew-hero a:not(.hew-btn) { color: #fff; }

/* Fusszeile: Astroid vergibt hier keine eigene Klasse mehr, daher hew-fuss */
.hew-fuss { background: var(--hew-blau); color: var(--hew-himmel-hell); text-align: left; }
.hew-fuss a { color: var(--hew-himmel-hell); text-decoration: none; }
.hew-fuss a:hover { color: #fff; text-decoration: underline; }
.hew-fuss p, .hew-fuss address, .hew-fuss li { color: var(--hew-himmel-hell); }
.hew-fuss ul { list-style: none; margin: 0; padding: 0; }
.hew-fuss ul li { margin-bottom: .45rem; }
.hew-fuss .nav-item > .nav-link { padding: 0; }
.hew-fuss > .container { max-width: var(--hew-breite); }
.hew-fuss .astroid-module-position { text-align: left; }
.hew-fuss #astroid-footer { border-top: 1px solid rgba(255,255,255,.13); margin-top: 2.2rem;
  padding: 1.2rem 0 .2rem; font-size: 14px; color: rgba(255,255,255,.55); text-align: center; }
.hew-fuss #astroid-footer a { color: rgba(255,255,255,.75); }

/* Kleinigkeiten */
#astroid-sticky-header .astroid-nav > li > a.hew-menue-cta { color: #fff; }
.astroid-logo-image img, .logo-wrapper img { max-height: 76px; }
.hew-hero__bg { object-position: center 62%; }
.hew-topbar a.hew-topbar__link { color: var(--hew-himmel-hell); }
.hew-topbar a.hew-topbar__link:hover { color: #fff; }
@media (max-width: 780px) { .hew-fuss { text-align: left; } }


/* ==== 10  Kontakt und Anfrageformular (com_contact) ==== */
.com-contact { max-width: var(--hew-breite); margin-inline: auto; }
.com-contact .row { --bs-gutter-x: clamp(1.5rem, 4vw, 3.5rem); }
.com-contact .page-header h1 { margin-top: 0; }
.com-contact .contact-position { color: var(--hew-grau); margin: -.2rem 0 1.2rem; }
.com-contact hr { border: 0; border-top: 1px solid var(--hew-linie); opacity: 1; margin: 1.3rem 0; }
.com-contact .contact-title-second { font-family: var(--hew-sans) !important; font-size: 12.5px !important;
  letter-spacing: .14em; text-transform: uppercase; color: var(--hew-grau); font-weight: 600; margin-bottom: .9rem; }
.com-contact__address.dl-horizontal { display: grid; grid-template-columns: 1.5rem 1fr;
  gap: .55rem .8rem; align-items: start; background: var(--hew-weiss);
  border: 1px solid var(--hew-linie); padding: 1.2rem 1.3rem; margin: 0; }
.com-contact__address dt { color: var(--hew-blau-hell); margin: 0; }
.com-contact__address dd { margin: 0; color: var(--hew-blau); line-height: 1.6; }
.com-contact__miscinfo { margin-bottom: 2rem; }
.com-contact__form { background: var(--hew-weiss); border: 1px solid var(--hew-linie); padding: clamp(1.4rem,3vw,2.2rem); }
.com-contact__form form.well { background: none; border: 0; padding: 0; margin: 0; box-shadow: none; }
.com-contact__form fieldset { border: 0; padding: 0; margin: 0 0 .5rem; }
.com-contact__form legend { font-family: var(--hew-serif); font-size: 1.35rem; color: var(--hew-blau);
  margin-bottom: 1.1rem; padding: 0; border: 0; width: auto; float: none; }
.com-contact__form .control-group { margin-bottom: 1.1rem; }
.com-contact__form .control-label label { display: block; font-size: 14px; font-weight: 600; color: var(--hew-blau); margin-bottom: .35rem; }
.com-contact__form .star, .com-contact__form strong.red { color: #a3341f; }
.com-contact__form input[type=text], .com-contact__form input[type=email],
.com-contact__form textarea, .com-contact__form select {
  width: 100%; font-family: var(--hew-sans); font-size: 16px; color: var(--hew-text);
  background: var(--hew-creme); border: 1px solid var(--hew-sand);
  border-radius: var(--hew-radius); padding: .7rem .85rem; }
.com-contact__form input:focus, .com-contact__form textarea:focus, .com-contact__form select:focus {
  outline: 2px solid var(--hew-blau-hell); outline-offset: 1px; border-color: var(--hew-blau-hell); background: #fff; }
.com-contact__form input[type=checkbox] { width: 1.05rem; height: 1.05rem; margin-right: .55rem; }
.com-contact__form .form-check, .com-contact__form .controls label { display: inline-flex; gap: .5rem; align-items: flex-start; font-size: .93rem; font-weight: 400; }
.com-contact__form .btn, .com-contact__form button[type=submit] {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--hew-blau); color: #fff; border: 1.5px solid var(--hew-blau);
  font-family: var(--hew-sans); font-size: 15.5px; font-weight: 600;
  padding: .85rem 1.6rem; border-radius: var(--hew-radius); cursor: pointer; }
.com-contact__form .btn:hover, .com-contact__form button[type=submit]:hover { background: var(--hew-blau-hell); border-color: var(--hew-blau-hell); color: #fff; }
.com-contact__form .field-spacer label { font-weight: 400; color: var(--hew-grau); font-size: .86rem; }
.hew-kontakt__zusatz { margin-bottom: 1.5rem; }
.hew-kaesten { display: grid; gap: 1.25rem; }
.hew-details { margin-top: 1.5rem; border-top: 1px solid var(--hew-linie); padding-top: 1rem; }
.hew-details summary { cursor: pointer; font-weight: 600; color: var(--hew-blau); }
.hew-details ul { margin-top: .8rem; }
joomla-hidden-mail { word-break: break-word; }

/* ==== 11  Feinschliff aus der Selbstpruefung ==== */
/* Astroid gibt am Logo keine Masse aus: Layoutsprung ueber aspect-ratio vermeiden */
.astroid-logo-image img, .logo-wrapper img { max-height: 76px; width: auto; aspect-ratio: 1397 / 783; }

/* Hero: Verlauf oben kraeftiger, damit die helle Vorzeile lesbar bleibt */
.hew-hero__schleier { background: linear-gradient(180deg, rgba(12,28,44,.52) 0%, rgba(12,28,44,.28) 38%, rgba(12,28,44,.86) 100%); }

/* Kennzahlenleiste: Silbentrennung statt Ueberlauf */
.hew-zahl__wert { hyphens: auto; overflow-wrap: anywhere; }

/* Kopfleiste auf kleinen Geraeten */
@media (max-width: 780px) {
  .hew-topbar { font-size: 12px; }
  .hew-topbar__innen { padding: .45rem 1rem; gap: .3rem; }
  .hew-hero { min-height: clamp(360px, 62vh, 520px); }
  .hew-hero__titel { font-size: clamp(1.9rem, 8.5vw, 2.5rem); max-width: 100%; }
  .hew-hero__text { font-size: 1rem; }
  .hew-hero__inhalt { padding-bottom: 2rem; }
  .hew-actions .hew-btn { flex: 1 1 auto; }
}
@media (max-width: 620px) {
  .hew-zahlen__gitter { padding-block: 1.4rem; }
  .hew-zahl { padding-inline: .5rem; }
  .hew-zahl__wert { font-size: 1.2rem; }
  .hew-zahl__text { font-size: 11.5px; letter-spacing: .06em; }
  .hew-sec__kopf { margin-bottom: 1.4rem; }
  .hew-preisbox { padding: 1.1rem 1.1rem 1.3rem; }
  .hew-preise--kompakt tbody tr { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; border: 0; background: transparent; margin: 0; }
  .hew-preise--kompakt td { width: auto; border: 0; display: block; }
  .hew-preise--kompakt td::before { display: block; }
}

/* Tastaturbedienung: Sprungmarke zum Inhalt */
.hew-skiplink { position: absolute; left: -9999px; top: 0; z-index: 3000;
  background: var(--hew-blau); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--hew-radius) 0; }
.hew-skiplink:focus { left: 0; color: #fff; }

/* Fusszeilenmenue: aktives Element ohne Pfeilsymbol */
.hew-fuss .mod-menu .nav-link::after, .hew-fuss .mod-menu .icon-chevron-right { content: none; display: none; }


/* ==== 12  Hero als Raster statt absoluter Ueberlagerung ==== */
/* min-height allein liefert Prozenthoehen keinen Bezug; als Rasterzelle
   bekommt das Bild eine definierte Hoehe und object-fit greift zuverlaessig. */
.hew-hero { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.hew-hero > * { grid-area: 1 / 1; }
.hew-hero__bg { position: static; width: 100%; height: 100%; object-fit: cover; }
.hew-hero__schleier { position: static; width: 100%; height: 100%; }
.hew-hero__inhalt { align-self: end; }

/* Leere Astroid-Bildhuellen erzeugen sonst eine Luecke unter dem Kopf */
.astroid-article-full-image:empty, .astroid-article-intro-image:empty,
.astroid-message:empty, .astroid-article-tags:empty { display: none; }
#system-message-container:empty { display: none; }


/* ==== 13  Innere Astroid-Abstaende im Beitragslayout ==== */
/* Die Abstaende steuern die hew-Sektionen selbst; die Polsterung des
   Astroid-Artikellayouts erzeugt sonst eine Naht unter dem Kopfbereich. */
.item-page > .astroid-section, .item-page > .astroid-section > .astroid-row { padding-block: 0; }
.item-page .astroid-article-text { padding: 0; }


/* ==== 14  Letzte Korrekturen ==== */
/* Grundrisse sind Zeichnungen: vollstaendig zeigen statt beschneiden */
.hew-thumbs img[src$=".png"], .hew-gallery__item img[src$=".png"] {
  object-fit: contain; background: var(--hew-weiss); }
.hew-thumbs li { background: var(--hew-weiss); border: 1px solid var(--hew-linie); }
.hew-thumbs .hew-lb { height: 100%; }
