/* ==================================================================
   Landgasthaus "Zur Linde", Windeck-Altwindeck
   Erscheinungsbild - behutsam modernisiert, Charakter der bisherigen
   Seite erhalten: heller Himmelblau-Verlauf, Schreibschrift-Kopf,
   warme, ruhige Typografie.
   Diese Datei ueberlebt Joomla-Aktualisierungen.
   ================================================================== */

:root,
:root[data-bs-theme="dark"],
html[data-bs-theme="dark"] {
  color-scheme: light only;

  --linde-blau:        #3d82b8;
  --linde-blau-dunkel: #2b6d9b;
  --linde-blau-tief:   #1f4d6e;
  --linde-blau-hell:   #7fb4d8;
  --linde-blau-zart:   #cfe3f1;
  --linde-blau-hauch:  #eef5fb;
  --linde-sand:        #f7f4ec;
  --linde-akzent:      #b5432f;
  --linde-text:        #2f3338;
  --linde-text-leise:  #6a737c;
  --linde-schrift: "Segoe UI", -apple-system, "Trebuchet MS", Roboto, Arial, sans-serif;

  /* Cassiopeia-Variablen mitziehen, damit nichts dunkel bleibt */
  --cassiopeia-color-primary: #3d82b8;
  --cassiopeia-color-link: #2f6f9f;
  --cassiopeia-color-hover: #b5432f;
  --body-bg: #e9f2f9;
  --body-color: #2f3338;
  --bs-body-bg: #ffffff;
  --bs-body-color: #2f3338;
  --bs-emphasis-color: #1f4d6e;
  --bs-secondary-color: #6a737c;
  --bs-border-color: #cfe3f1;
  --bs-link-color: #2f6f9f;
  --bs-link-hover-color: #b5432f;
}

html { color-scheme: light only; background: #e9f2f9; }

/* ---------------------------------------------------------- Grundlage */
body {
  font-family: var(--linde-schrift);
  color: var(--linde-text);
  background: linear-gradient(to bottom, #d8e9f6 0, #eef5fb 420px, #f6f9fc 100%) no-repeat;
  background-color: #f6f9fc;
  background-attachment: fixed;
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrapper, .site-grid { max-width: 1180px; margin-inline: auto; }
.grid-child { max-width: 1180px; }

/* ------------------------------------------------------- Kopfbereich */
.container-header,
.container-below-top {
  background: transparent !important;
  box-shadow: none;
  padding: 0;
  border: 0;
}
.container-below-top .grid-child { padding: 0; }

.linde-kopf {
  display: block;
  line-height: 0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  margin-top: 1.4rem;
}
.linde-kopf img { width: 100%; height: auto; display: block; }

/* ------------------------------------------------------- Navigation */
.container-nav {
  background: var(--linde-blau-tief);
  border-radius: 0;
  box-shadow: 0 4px 14px rgba(31, 77, 110, .16);
  position: relative;
  z-index: 30;
}
.container-nav .grid-child { padding: 0; }

ul.mod-menu {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
ul.mod-menu > li { position: relative; }
ul.mod-menu > li > a,
ul.mod-menu > li > span {
  display: block;
  padding: .9rem 1.4rem;
  color: #fff;
  font-weight: 500;
  font-size: 1.04rem;
  letter-spacing: .02em;
  text-decoration: none;
  position: relative;
  transition: background .18s ease;
}
ul.mod-menu > li > a::after {
  content: "";
  position: absolute;
  left: 1.4rem; right: 1.4rem; bottom: .55rem;
  height: 2px;
  background: var(--linde-blau-hell);
  transform: scaleX(0);
  transition: transform .18s ease;
}
ul.mod-menu > li > a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
ul.mod-menu > li > a:hover::after,
ul.mod-menu > li.current > a::after,
ul.mod-menu > li.active > a::after { transform: scaleX(1); }
ul.mod-menu > li.current > a,
ul.mod-menu > li.active > a { background: rgba(255, 255, 255, .12); }

ul.mod-menu ul {
  position: absolute;
  z-index: 40;
  min-width: 260px;
  margin: 0; padding: .35rem 0;
  list-style: none;
  background: var(--linde-blau-tief);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
  border-radius: 0 0 6px 6px;
  display: none;
}
ul.mod-menu li:hover > ul,
ul.mod-menu li:focus-within > ul { display: block; }
ul.mod-menu ul a {
  display: block; padding: .6rem 1.25rem;
  color: rgba(255, 255, 255, .92); text-decoration: none; font-size: .99rem;
}
ul.mod-menu ul a:hover { background: var(--linde-blau); color: #fff; }

/* ---------------------------------------------------------- Inhalt */
.container-component {
  background: #fff;
  padding: 2.2rem 2.4rem 2.6rem;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 6px 24px rgba(31, 77, 110, .1);
  margin-bottom: 2.5rem;
}
.container-component > * { max-width: 100%; }

/* Brotkrumen dezent */
.container-breadcrumbs { padding: 0; }
.breadcrumb {
  background: transparent;
  padding: 0 0 .8rem;
  margin: 0;
  font-size: .86rem;
  color: var(--linde-text-leise);
}
.breadcrumb a { color: var(--linde-text-leise); text-decoration: none; }
.breadcrumb a:hover { color: var(--linde-blau); }

h1, h2, h3, h4, .page-header h1, .page-header h2, .item-title {
  font-family: var(--linde-schrift);
  color: var(--linde-blau-tief);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
}
.page-header h1, h1 {
  font-size: 2.05rem;
  margin: 0 0 1.4rem;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--linde-blau-zart);
}
h2, .page-header h2, .item-title { font-size: 1.42rem; margin: 0 0 .8rem; }
h3 { font-size: 1.16rem; color: var(--linde-blau); }
.item-title a, h2 a { color: var(--linde-blau-tief); text-decoration: none; }
.item-title a:hover, h2 a:hover { color: var(--linde-akzent); }

a { color: #2f6f9f; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--linde-akzent); }

p { margin: 0 0 .9rem; }

/* ----------------------------------------- Altbestand zaehmen
   Die uebernommenen Beitraege tragen eigene Schriftarten, Groessen
   und Farben aus der alten Seite. Ohne das hier sieht jede Seite
   anders aus.                                                      */
.com-content-article__body,
.com-content-category-blog__item {
  font-size: 1.02rem;
}
.com-content-article__body [style],
.com-content-category-blog__item [style],
.com-content-article__body font,
.com-content-category-blog__item font {
  font-family: var(--linde-schrift) !important;
  line-height: 1.7 !important;
}
.com-content-article__body span[style],
.com-content-category-blog__item span[style],
.com-content-article__body p[style],
.com-content-category-blog__item p[style] {
  font-size: inherit !important;
}
.com-content-article__body h1[style],
.com-content-article__body h2[style],
.com-content-article__body h3[style] { font-size: inherit !important; }
/* leere Absaetze aus dem Altbestand einsammeln */
.com-content-article__body p:empty,
.com-content-category-blog__item p:empty { display: none; }

.com-content-article__body img,
.com-content-category-blog__item img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(31, 77, 110, .12);
  margin: .4rem 0 1rem;
}

/* ------------------------------------------------- Blog-Uebersichten */
.blog .com-content-category-blog__item,
.com-content-category-blog__item {
  padding-bottom: 1.8rem;
  margin-bottom: 1.8rem;
  border-bottom: 1px solid var(--linde-blau-zart);
}
.com-content-category-blog__item:last-child { border-bottom: 0; margin-bottom: 0; }
.com-content-category-blog__children { margin-top: 1rem; }

.readmore .btn, .btn-secondary, .btn-primary, a.btn {
  background: var(--linde-blau);
  border: 1px solid var(--linde-blau);
  color: #fff !important;
  border-radius: 999px;
  padding: .42rem 1.3rem;
  font-size: .93rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}
.readmore .btn:hover, .btn-secondary:hover, .btn-primary:hover, a.btn:hover {
  background: var(--linde-blau-tief);
  border-color: var(--linde-blau-tief);
}

/* ------------------------------------------------------ Seitenleiste */
.container-sidebar-right { padding-left: 1.8rem; }
.container-sidebar-right .card,
.container-sidebar-right .moduletable {
  background: #fff;
  border: 1px solid var(--linde-blau-zart);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(31, 77, 110, .07);
}
.container-sidebar-right h3,
.container-sidebar-right .card-header {
  background: var(--linde-blau-hauch);
  color: var(--linde-blau-tief);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  padding: .75rem 1.15rem;
  border: 0;
  border-bottom: 1px solid var(--linde-blau-zart);
}
.container-sidebar-right .card-body,
.container-sidebar-right .mod-custom { padding: 1rem 1.15rem; }
.container-sidebar-right p { margin-bottom: .45rem; font-size: .97rem; }

/* Oeffnungszeiten */
.linde-oeffnung .zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .3rem 0;
  margin: 0;
  border-bottom: 1px solid var(--linde-blau-hauch);
}
.linde-oeffnung .zeile .tag { font-weight: 600; color: var(--linde-blau-tief); }
.linde-oeffnung .zeile .zeit { white-space: nowrap; font-variant-numeric: tabular-nums; }
.linde-oeffnung .ruhetag { color: var(--linde-text-leise); border-bottom: 0; }
.linde-oeffnung .ruhetag .tag { color: var(--linde-text-leise); font-weight: 500; }
.linde-oeffnung .ruhetag .zeit { font-style: italic; }
.linde-oeffnung .hinweis {
  margin-top: .85rem;
  font-size: .9rem;
  color: #5a636b;
  line-height: 1.5;
}
.linde-oeffnung .stand { font-size: .8rem; color: var(--linde-text-leise); margin-top: .7rem; }

/* Kontakt */
.linde-kontakt .haus { font-size: 1.02rem; color: var(--linde-blau-tief); }
.linde-kontakt .tel a { font-weight: 600; text-decoration: none; font-size: 1.05rem; }
.linde-kontakt .klein { font-size: .84rem; color: var(--linde-text-leise); }
.linde-kontakt .hinweis {
  font-size: .9rem;
  color: #5a636b;
  margin-top: .8rem;
  padding-top: .7rem;
  border-top: 1px solid var(--linde-blau-hauch);
}

/* Aktuelles */
.linde-aktuelles ul, .linde-aktuelles .mod-articlesnews { list-style: none; margin: 0; padding: 0; }
.linde-aktuelles li { padding: .5rem 0; border-bottom: 1px solid var(--linde-blau-hauch); }
.linde-aktuelles li:last-child { border-bottom: 0; }
.linde-aktuelles a { text-decoration: none; font-weight: 500; font-size: .97rem; line-height: 1.45; display: block; }

/* ------------------------------------------------------- Eindruecke */
.linde-eindruecke { margin: 0; }
.linde-eindruecke .bilder {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.linde-eindruecke figure { margin: 0; }
.linde-eindruecke img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  box-shadow: 0 4px 16px rgba(31, 77, 110, .14);
  transition: transform .25s ease;
}
.linde-eindruecke img:hover { transform: translateY(-3px); }
.linde-eindruecke figcaption {
  margin-top: .45rem;
  font-size: .9rem;
  color: var(--linde-text-leise);
  text-align: center;
}

/* ---------------------------------------------------------- Fusszeile */
.container-footer {
  background: var(--linde-blau-tief);
  color: rgba(255, 255, 255, .9);
  margin-top: 0;
  border-radius: 14px 14px 0 0;
}
.container-footer .grid-child { padding: 1.6rem 2rem 1.8rem; }
.container-footer a { color: #fff; text-decoration: none; }
.container-footer a:hover { color: var(--linde-blau-hell); text-decoration: underline; }
.container-footer p { margin-bottom: .35rem; font-size: .94rem; }
.linde-fussmenu ul {
  display: flex; gap: 1.6rem; list-style: none;
  margin: 0 0 .7rem; padding: 0; flex-wrap: wrap;
}
.linde-fussmenu a { font-weight: 500; }
.linde-fussanschrift p { color: rgba(255, 255, 255, .72); font-size: .9rem; }
.back-to-top-link { background: var(--linde-blau); border-color: var(--linde-blau); }

/* ------------------------------------------------- kleine Bildschirme */
@media (max-width: 991px) {
  .container-component { padding: 1.4rem 1.2rem 1.8rem; border-radius: 0; }
  .container-sidebar-right { padding-left: 0; }
  .linde-kopf { border-radius: 0; margin-top: 0; }
  ul.mod-menu { flex-direction: column; }
  ul.mod-menu > li > a { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  ul.mod-menu > li > a::after { display: none; }
  ul.mod-menu ul { position: static; display: block; background: rgba(0, 0, 0, .18); box-shadow: none; }
  .page-header h1, h1 { font-size: 1.6rem; }
  .linde-eindruecke .bilder { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .linde-eindruecke .bilder { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ Hero */
.linde-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 0 1.8rem;
  box-shadow: 0 6px 22px rgba(31, 77, 110, .18);
}
.linde-hero img {
  width: 100%;
  height: clamp(220px, 34vw, 380px);
  object-fit: cover;
  display: block;
}
.linde-hero__text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.8rem 1.4rem;
  background: linear-gradient(to top, rgba(18, 48, 70, .82), rgba(18, 48, 70, 0));
  color: #fff;
}
.linde-hero__text .gruss {
  margin: 0 0 .25rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -.01em;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.linde-hero__text .unter {
  margin: 0;
  font-size: clamp(.92rem, 1.5vw, 1.05rem);
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

/* Kopfbild exakt so breit wie Navigation und Inhalt */
.container-below-top,
.container-nav,
.container-component,
.container-sidebar-right { box-sizing: border-box; }
.linde-kopf {
  background: linear-gradient(to right, #dbedf9 0%, #eaf4fb 60%, #f2f8fc 100%);
  border-radius: 14px 14px 0 0;
}
.linde-kopf img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
  height: clamp(112px, 12.5vw, 158px);
}

/* Abstand unter dem Inhalt vor der Fusszeile */
.container-main { padding-bottom: 0; }

/* Kopf, Navigation, Inhalt und Fuss auf identische Rasterbreite */
.site-grid > .container-below-top,
.site-grid > .container-nav,
.site-grid > .container-banner,
.site-grid > .container-footer { grid-column: 1 / -1; width: 100%; max-width: 100%; }
.container-below-top > *, .container-nav > * { max-width: 100%; }

/* Der Kopfbereich ist bei Cassiopeia ein Flex-Container - dadurch
   schrumpft das Kopfbild auf seine Eigenbreite statt den Platz zu fuellen. */
.container-below-top { display: block !important; padding-left: 0; padding-right: 0; }
.container-below-top > *, .container-below-top .mod-custom { width: 100%; display: block; }
.container-nav { padding-left: 0; padding-right: 0; }

/* Kopf, Navigation und Fusszeile exakt buendig mit dem Inhalt */
.container-below-top.grid-child,
.container-nav.grid-child { padding-left: 0 !important; padding-right: 0 !important; }
.container-footer.full-width { background: transparent; }
.container-footer .grid-child {
  max-width: 1180px;
  margin-inline: auto;
  background: var(--linde-blau-tief);
  border-radius: 14px 14px 0 0;
}

/* Fusszeile: Menue und Anschrift sauber setzen (die Modulklasse greift
   bei mod_menu nicht, deshalb ueber den Container) */
.container-footer ul {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0 0 .8rem;
  padding: 0;
  flex-wrap: wrap;
}
.container-footer ul li { margin: 0; }
.container-footer ul a { font-weight: 500; }
.container-footer .mod-custom p { color: rgba(255, 255, 255, .75); font-size: .9rem; margin: 0; }
.container-footer > .grid-child > div + div { margin-top: .2rem; }

/* Aktuelles-Liste */
.linde-aktuelles ul, .container-sidebar-right .mod-articleslatest {
  list-style: none; margin: 0; padding: 0;
}
.container-sidebar-right .mod-articleslatest li,
.linde-aktuelles li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--linde-blau-hauch);
  display: block;
}
.container-sidebar-right .mod-articleslatest li:last-child { border-bottom: 0; }
.container-sidebar-right .mod-articleslatest a {
  text-decoration: none; font-weight: 500; font-size: .96rem; line-height: 1.45; display: block;
}
