/* user.css für wolfkonditorei.at / wolfbaeckerei.at (Joomla 6 / Cassiopeia) – Stand 17.11.2026
   Ablage: media/templates/site/cassiopeia/css/user.css
   Aufbau von oben nach unten:
     Menü (Position "menu", auf dem Hintergrundmuster, nicht fixiert)
     Banner (Position "banner": Bild images/headers/header.png, volle Breite, Logo ist im Bild)
     Kacheln (Position "top-a": Custom-HTML-Modul "wb-kacheln", 3 Bilder mit Links)
     Inhalt: Startseite = Menüpunkt "Beiträge in Hervorhebung" (Featured), je Abschnitt ein Beitrag
             roter Abschnitt = erster Beitrag (oder jeder Beitrag mit dem leeren Anker <a id="willkommen"></a>); alle anderen Beiträge liegen auf dem Muster
     Footer (Position "footer": Link-Modul, Social-Modul, Adress-Modul), roter Streifen darüber
   Template-Stil Cassiopeia: Logo/Seitentitel leer lassen (die Marke steckt im Banner), "Fixierter Header" aus.
   Nach dem Hochladen: Joomla-Cache leeren (System → Cache) + Strg+F5. */

:root {
  /* ---- Nur hier anpassen ---- */
  --site-red: #b8504f;               /* roter Abschnitt, Footer, Überschriften */
  --site-red-text: #9a3f3e;          /* Fließtext auf dem Muster (dunkler als das Rot: Kontrast) */
  --site-nav-active: #ba5953;        /* aktiver Menüpunkt */
  --site-menu-text: #493f33;
  --site-cream: #fff1e8;             /* Text auf Rot */
  --site-bg: #e8d9bd;
  --site-bg-image: url("/images/Hintergrund-01.jpg");
  --site-stripe-image: url("/images/banners/modul_hintergrund.png");   /* 2700 × 50 */
  --site-width: 1170px;
  /* ---- Ende Anpassung ---- */

  --stripe-h: calc(100vw * 50 / 2700);
  --cassiopeia-color-primary: var(--site-red);
  --cassiopeia-color-link: var(--site-red-text);
  --cassiopeia-color-hover: #7d2f2e;
  --cassiopeia-font-family-body: Arial, Helvetica, sans-serif;
  --cassiopeia-font-family-headings: Arial, Helvetica, sans-serif;
  --template-bg-light: transparent;
}

html { scroll-behavior: smooth; }
body.site {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: var(--site-red-text);
  background: var(--site-bg) var(--site-bg-image) center top / cover no-repeat fixed;
  overflow-x: clip;
}
a { color: var(--site-red-text); }
a:hover, a:focus { color: #7d2f2e; }

/* Raster: 4 gleiche Spalten auf Inhaltsbreite, kein Spaltenabstand */
.site-grid {
  grid-template-columns: [full-start] minmax(0, 1fr) [main-start] repeat(4, minmax(0, calc(var(--site-width) / 4))) [main-end] minmax(0, 1fr) [full-end];
  column-gap: 0;
}
@media (max-width: 1200px) { .container-component { padding-inline: .9rem; } }

/* ---------- Kopf: nur das Menü, auf dem Muster ---------- */
header.container-header {
  display: block;
  position: sticky;                  /* Menü bleibt oben stehen */
  top: 0;
  z-index: 1000;
  padding: 0;
  border: 0;
  /* gleiches fixiertes Muster wie der body -> am Seitenanfang nahtlos, beim Scrollen deckt es den Inhalt ab */
  background: var(--site-bg) var(--site-bg-image) center top / cover no-repeat fixed !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
}
header.container-header .navbar-brand { display: none; }        /* Standard-Logo von Cassiopeia ausblenden */
header.container-header .container-nav {
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 19px 15px 16px;
  background: none;
}
header.container-header .container-nav .mod-menu {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1rem !important;
  margin: 0;
  padding: 0;
  list-style: none;
}
header.container-header .container-nav .mod-menu > li { display: block; margin: 0 !important; padding: 0 !important; background: none; }
header.container-header .container-nav .mod-menu > li::before,
header.container-header .container-nav .mod-menu > li::after,
header.container-header .container-nav .mod-menu > li > a::before,
header.container-header .container-nav .mod-menu > li > a::after { display: none !important; content: none !important; }
header.container-header .container-nav .mod-menu > li > a,
header.container-header .container-nav .mod-menu > li > span {
  display: block;
  margin: 0;
  padding: .55rem .95rem;
  border-radius: 4px;
  color: var(--site-menu-text);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
  text-decoration: none;
  transition: background .2s, color .2s;
}
header.container-header .container-nav .mod-menu > li > a:hover,
header.container-header .container-nav .mod-menu > li > a:focus { background: rgba(184, 80, 79, .15); color: var(--site-menu-text); }
/* Aktiv: nur die aktuelle Seite. "Home" ist Standardseite (.default) und trägt auf allen Seiten .active -> ausnehmen */
header.container-header .container-nav .mod-menu > li.current > a,
header.container-header .container-nav .mod-menu > li.active:not(.default) > a { background: var(--site-nav-active); color: #fff; }
header.container-header .container-nav .mod-menu__toggle-sub { display: none; }

/* ---------- Banner (volle Breite, Logo ist im Bild) ---------- */
.container-banner { margin: 0; padding: 0; background: none; }
.container-banner .mod-banners__item, .container-banner .mod-custom, .container-banner p { margin: 0; padding: 0; max-width: none; }
.container-banner img { display: block; width: 100%; height: auto; }

/* ---------- Kacheln (Custom-HTML-Modul, Position top-a) ---------- */
.container-top-a { grid-column: full-start / full-end; padding: 2.5rem 0 3rem; background: none; }
.wb-kacheln {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
.wb-kacheln a { display: block; text-decoration: none; }
.wb-kacheln img { display: block; width: 100%; max-width: 361px; height: auto; margin: 0 auto; transition: transform .2s; }
.wb-kacheln a:hover img, .wb-kacheln a:focus img { transform: scale(1.03); }

/* ---------- Inhalt: Startseite als Featured-Blog ---------- */
.blog-featured, .blog-featured .blog-items,
.com-content-category-blog, .com-content-category-blog .blog-items { display: block; gap: 0; margin: 0; padding: 0; }
.blog-featured > .page-header { display: none; }                /* "Home"-Seitenüberschrift */
.container-component { padding-top: 0; padding-bottom: 0; }
.container-component, .container-sidebar-right { font-size: 1rem; line-height: 1.55; }

/* Abschnitte: oben der Streifen, darunter Inhalt */
.blog-items > .blog-item {
  --band-bg: transparent;
  --band-text: var(--site-red-text);
  --band-head: var(--site-red);
  --band-link: var(--site-red-text);
  position: relative;
  display: block;
  margin: 0;
  padding: calc(var(--stripe-h) + 2.2rem) 0 3rem;
  border: 0;
  color: var(--band-text);
  overflow: visible;                 /* Cassiopeia setzt .blog-item auf overflow:hidden, das würde Streifen und Farbfläche auf 1170 px beschneiden */
  isolation: isolate;
}
/* Farbfläche über die volle Fensterbreite, beginnt UNTER dem Streifen (Muster bleibt neben dem Streifen sichtbar) */
.blog-items > .blog-item::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: var(--stripe-h);
  bottom: 0;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  background: var(--band-bg);
}
.blog-items > .blog-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: var(--stripe-h);
  margin-left: -50vw;
  background: var(--site-stripe-image) center / 100% 100% no-repeat;
}
/* roter Abschnitt: der ERSTE Beitrag der Startseite (Joomla: "führender" Beitrag) oder jeder Beitrag mit dem Anker "willkommen" */
.blog-featured .items-leading > .blog-item,
.blog-item:has(#willkommen) {
  --band-bg: var(--site-red);
  --band-text: var(--site-cream);
  --band-head: var(--site-cream);
  --band-link: var(--site-cream);
  text-align: center;
}
.blog-item a { color: var(--band-link); }
.blog-item strong, .blog-item b { font-weight: 700; }

/* Überschriften der Abschnitte */
.blog-item .item-title, .blog-item .item-content h2, .blog-item .page-header h2 {
  margin: 0 0 1.2rem;
  padding: 0;
  border: 0;
  color: var(--band-head);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}
.blog-featured .items-leading > .blog-item .item-title, .blog-featured .items-leading > .blog-item .item-content h2,
.blog-item:has(#willkommen) .item-title, .blog-item:has(#willkommen) .item-content h2 { font-size: 2rem; font-weight: 400; text-align: center; margin-bottom: 1.5rem; }
.blog-item .item-title a { color: inherit; text-decoration: none; pointer-events: none; cursor: default; }   /* Titel nicht klickbar */
.blog-item .item-content p { margin: 0 0 1rem; color: inherit; }
.blog-item .item-content img { max-width: 100%; height: auto; }
.blog-item .item-content a:not([id]) { text-decoration: underline; }
/* unsichtbare Anker (<a id="…"></a>) */
.blog-item a[id]:not([href]):empty { position: absolute; top: 0; left: 0; width: 0; height: 0; scroll-margin-top: 1rem; }

/* ---------- Unterseiten (Artikel, Kontakt, …) ---------- */
.com-content-article, .com-contact, .com-content-category-blog, .com-content-category { padding: 2.2rem 0 3rem; }
h1, h2, .page-header h1, .page-header h2 { margin: 0 0 1.2rem; padding: 0; border: 0; color: var(--site-red); font-family: Arial, Helvetica, sans-serif; font-weight: 700; line-height: 1.2; }
h1, .page-header h1 { font-size: 1.9rem; }
h2 { font-size: 1.6rem; }
h3, h4 { color: var(--site-red); font-weight: 700; }
.com-content-article__body p, .item-page p { margin: 0 0 1rem; }

/* ---------- Filialen und Öffnungszeiten (Artikel "Filialen", Boxen .wb-filiale) ---------- */
.wb-titel { margin: 0 0 2rem; text-align: center; font-size: 2rem; font-weight: 400; }
.wb-filialen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 460px));
  justify-content: center;          /* Boxen als Block waagrecht zentriert */
  gap: 2.5rem;
  margin: 0 auto;
}
.wb-filiale { display: flex; flex-direction: column; border: 1px solid var(--site-red); }
.com-content-article .wb-filiale h3, .wb-filiale h3 {
  margin: 0;
  padding: .6rem .9rem;
  background: var(--site-red);
  color: #fff;
  font-size: 1.45rem;
  font-weight: 400;
  line-height: 1.25;
}
.wb-filiale .wb-adresse { flex: 1 1 auto; margin: 0; padding: .8rem .9rem 1rem; border-bottom: 1px solid var(--site-red); line-height: 1.55; }
.wb-filiale table { width: 100%; margin: 0; border-collapse: collapse; background: none; }
.wb-filiale td { padding: .4rem .9rem; border-top: 1px solid var(--site-red); vertical-align: top; }
.wb-filiale tr:first-child td { border-top: 0; }
.wb-filiale td:first-child { width: 36%; }
.wb-filiale td:last-child { white-space: nowrap; }

/* ---------- Footer: Streifen oben, roter Block ---------- */
.footer {
  position: relative;
  margin-top: var(--stripe-h);
  padding: 0;
  border: 0;
  background: var(--site-red);
  color: var(--site-cream);
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--stripe-h) * -1);
  height: var(--stripe-h);
  background: var(--site-stripe-image) center / 100% 100% no-repeat;
}
.footer .grid-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  box-sizing: border-box;
  max-width: var(--site-width);
  margin-inline: auto;
  padding: 1.6rem 15px 2rem;
}
.footer .grid-child > * { margin: 0; }
.footer [class*="favth-col"] { float: none; width: auto; padding: 0; }   /* Bootstrap-Reste aus dem alten Footer */
.footer .moduletable, .footer .custom { margin: 0; padding: 0; }
.footer p { margin: 0; color: var(--site-cream); font-size: .9rem; line-height: 1.55; }
.footer a, .footer a:hover, .footer a:focus, .footer a:active { color: var(--site-cream); text-decoration: none; }
.footer a:hover, .footer a:focus { color: #fff; text-decoration: underline; }
.footer strong { font-size: 1.15rem; color: var(--site-cream); }
.footer .wb-social { display: flex; gap: .4rem; }
.footer .wb-social a { display: block; }
.footer .wb-social img { display: block; width: 52px; height: 52px; max-width: none; }

/* ---------- Nach-oben-Button ---------- */
.back-to-top-link {
  background: var(--site-red);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 3px;
  width: 50px;
  height: 50px;
  right: 30px;
  bottom: 24px;
  box-sizing: border-box;
  padding: 0;
  text-align: center;
  line-height: 50px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.back-to-top-link [class^="icon-"], .back-to-top-link [class*=" icon-"] { display: inline-block; margin: 0; width: auto; line-height: 1; vertical-align: middle; font-size: 1.2rem; }
.back-to-top-link:hover { background: #7d2f2e; }

/* ---------- Mobil ---------- */
@media (max-width: 991px) {
  body.site { background-attachment: scroll; }
  header.container-header { position: static; background: none !important; box-shadow: none; }   /* Handy: Menü mehrzeilig, nicht fixieren */
  header.container-header .container-nav { padding: 12px .9rem 10px; }
  header.container-header .container-nav .mod-menu { gap: .25rem .5rem !important; }
  header.container-header .container-nav .mod-menu > li > a { padding: .45rem .7rem; font-size: 1.05rem; }
  .blog-item .item-title, .blog-item .item-content h2, .blog-featured .items-leading > .blog-item .item-content h2, .blog-item:has(#willkommen) .item-content h2 { font-size: 1.45rem; }
  .blog-items > .blog-item { padding-inline: 0; }
  .footer .grid-child { flex-direction: column; padding-inline: .9rem; }
  .footer .grid-child > :last-child:not(:first-child) p { text-align: left !important; }
}
@media (max-width: 700px) {
  .container-banner img { min-height: 190px; object-fit: cover; object-position: 75% center; }   /* Logo (rechts im Bild) bleibt sichtbar */
  .wb-kacheln { grid-template-columns: 1fr; max-width: 300px; }
}
@media (max-width: 1000px) {
  .wb-filialen { grid-template-columns: minmax(0, 460px); }
}
@media (max-width: 420px) { .wb-filiale td:last-child { white-space: normal; } }

/* ---------- Reservierungsformular (Plugin wolfreservierung) ---------- */
.wolf-form { --wolf-text: var(--site-red-text); max-width: var(--site-width); margin: 0 auto; color: var(--wolf-text); font-size: .95rem; text-align: left; }
.wolf-form .wolf-h { margin: 2.2rem 0 1.3rem; padding: 0 0 .7rem; border-bottom: 1px solid rgba(255, 255, 255, .55); color: var(--wolf-text); font-size: 1.6rem; font-weight: 400; }
.wolf-form .wolf-h:first-child { margin-top: 0; }
.wolf-note { margin: -.4rem 0 1rem; color: var(--wolf-text); font-size: .9rem; }
.wolf-row { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: .4rem 1rem; align-items: start; margin: 0 0 .65rem; }
.wolf-label { margin: 0; padding-top: .45rem; font-weight: 700; line-height: 1.35; }
.wolf-field { min-width: 0; }
.wolf-radios { padding-top: .35rem; }
.wolf-radio { display: block; margin: 0 0 .15rem; font-weight: 700; cursor: pointer; }
.wolf-radio input { margin-right: .35rem; accent-color: var(--site-red); }
.wolf-input, .wolf-select, .wolf-textarea { box-sizing: border-box; width: 100%; max-width: 300px; padding: .45rem .6rem; border: 1px solid #ddd; border-radius: 3px; background: #fff; color: #2b2b2b; font: inherit; }
.wolf-select { max-width: 150px; }
.wolf-textarea { max-width: 350px; min-height: 100px; resize: vertical; }
.wolf-input--short { width: 90px; vertical-align: middle; }
.wolf-input:focus, .wolf-select:focus, .wolf-textarea:focus { outline: 2px solid var(--site-red); outline-offset: 0; }
.wolf-captcha-question { display: inline-block; min-width: 3.5rem; padding: .45rem .2rem; font-size: 1.15rem; font-weight: 700; vertical-align: middle; }
.wolf-btn { padding: .5rem 1rem; border: 0; border-bottom: 3px solid #8e3b3a; border-radius: 3px; background: var(--site-red); color: #fff; font: inherit; cursor: pointer; }
.wolf-btn:hover, .wolf-btn:focus { background: #9a3f3e; }
.wolf-btn[disabled] { opacity: .6; cursor: wait; }
.wolf-captcha-refresh { margin-left: .4rem; padding: .35rem .7rem; font-size: 1.1rem; vertical-align: middle; }
.wolf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .8rem 1.5rem; margin: 1.8rem 0 0; padding: 1.4rem 1.5rem; background: #f4f4f4; }
.wolf-submit { padding: .75rem 1.4rem; font-size: 1.2rem; }
.wolf-form-message { flex: 1 1 260px; margin: 0; font-weight: 700; }
.wolf-form-message:empty { display: none; }
.wolf-form-message--error, .wolf-field-error { color: #a31616; }
.wolf-form-message--success { color: #1f6b2c; }
.wolf-form-message--final { margin: 2rem auto; padding: 1.5rem; background: #f4f4f4; font-size: 1.15rem; text-align: center; }
.wolf-field-error { margin: .25rem 0 0; font-size: .85rem; font-weight: 700; }
.wolf-field-error:empty { display: none; }
.wolf-field-error--wide { margin: 1rem 0 0; font-size: .95rem; }
@media (max-width: 700px) {
  .wolf-row { grid-template-columns: minmax(0, 1fr); gap: .3rem; margin-bottom: 1rem; }
  .wolf-label { padding-top: 0; }
  .wolf-input, .wolf-textarea { max-width: none; }
  .wolf-input--short { width: 90px; }
  .wolf-bar { justify-content: stretch; padding: 1rem; }
  .wolf-submit { width: 100%; }
}
