/*############################# Grid Table #############################*/
/*################################################################################################################*/
.responsive-grid-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  border-collapse: collapse;
  width: 100%;
}

/* Entfernt die Tabellenstruktur, damit die TDs im Grid funktionieren */
.responsive-grid-table tr,
.responsive-grid-table tbody,
.responsive-grid-table td {
  display: contents;
}

/* Optional: etwas Styling innerhalb der Zellen */
.responsive-grid-table td > div {
  width: 100%;
  box-sizing: border-box;
}


.grid-table-link {
  display: inline-block;
  width: 100%;
}/* =========================================================
   Heimerzheimwetter.de – sauberes Cassiopeia Custom Design
   Diese Datei ersetzt die bisherige user.css vollständig.
   ========================================================= */

:root {
  --hw-dark: #112b40;
  --hw-dark-2: #1b4663;
  --hw-blue: #2f94c8;
  --hw-blue-dark: #2277a5;
  --hw-light: #edf4f7;
  --hw-card: #ffffff;
  --hw-text: #243746;
  --hw-muted: #657684;
  --hw-border: #d8e2e8;
  --hw-orange: #f39a32;
  --hw-orange-dark: #dc8122;
  --hw-radius: 12px;
  --hw-shadow: 0 8px 24px rgba(17, 43, 64, .08);
}

/* Grundlayout */
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--hw-light);
  color: var(--hw-text);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

/* Cassiopeia-Inhalte zuverlässig zentrieren */
.grid-child {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 20px;
}

.site-grid {
  gap: 24px;
}

/* Header */
.container-header {
  position: relative;
  z-index: 20;
  background: linear-gradient(100deg, var(--hw-dark), var(--hw-dark-2));
  box-shadow: 0 5px 20px rgba(0, 0, 0, .16);
}

.container-header .navbar-brand {
  padding-block: 18px 10px;
}

.container-header .navbar-brand a,
.container-header .site-description {
  color: #fff;
  text-decoration: none;
}

.container-header .navbar-brand img {
  width: auto;
  max-height: 66px;
}

/* Navigation */
.container-header .container-nav {
  padding-block: 0;
}

.container-header .mod-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.container-header .mod-menu > li > a,
.container-header .mod-menu > li > span {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 10px 16px;
  border-radius: 8px 8px 0 0;
  color: rgba(255,255,255,.92);
  font-weight: 650;
  text-decoration: none;
}

.container-header .mod-menu > li > a:hover,
.container-header .mod-menu > li > a:focus,
.container-header .mod-menu > li.active > a,
.container-header .mod-menu > li.current > a {
  background: rgba(255,255,255,.09);
  color: #fff;
}

.container-header .mod-menu > li.active > a::after,
.container-header .mod-menu > li.current > a::after {
  position: absolute;
  right: 16px;
  bottom: 0;
  left: 16px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--hw-orange);
  content: "";
}

/* Hero auf Modulposition banner */
.container-banner {
  margin: 0;
  padding: 0;
}

.container-banner .hw-hero {
  position: relative;
  display: flex;
  min-height: 320px;
  align-items: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10,31,47,.92), rgba(20,64,90,.67)),
    url("../images/heimerzheim-hero.jpg") center / cover no-repeat;
  color: #fff;
}

.hw-hero__content {
    position: relative;
    z-index: 2;

    width: min(1320px, calc(100% - 4rem));

    margin: 0 auto;
    padding: 5rem 0;
}

.hw-hero__content > * {
    max-width: 650px;
}

.hw-hero__label {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #fff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hw-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2.25rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-shadow: 0 3px 18px rgba(0,0,0,.25);
}

.hw-hero p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255,255,255,.9);
  font-size: 1.08rem;
}

.hw-hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hw-btn-orange,
.hw-btn-light {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.hw-btn-orange {
  border: 1px solid var(--hw-orange);
  background: var(--hw-orange);
  color: #fff;
}

.hw-btn-orange:hover { background: var(--hw-orange-dark); color: #fff; }

.hw-btn-light {
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.10);
  color: #fff;
}

.hw-btn-light:hover { background: #fff; color: var(--hw-dark); }

/* Bereich unter dem Hero */
.container-breadcrumbs {
  margin-top: 24px;
}

.breadcrumb {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--hw-border);
  border-radius: 9px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 3px 12px rgba(17,43,64,.05);
  font-size: .88rem;
}

/* Hauptinhalt */
main {
  min-width: 0;
}

.com-content-article,
.blog,
.blog-featured,
.category-list,
.contact,
.login,
.registration {
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  background: var(--hw-card);
  box-shadow: var(--hw-shadow);
}

.page-header {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hw-border);
}

.page-header h1 {
  margin: 0;
  color: var(--hw-dark);
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}

/* Überschriften nur im Inhaltsbereich gestalten */
.com-content-article h2,
.blog h2,
.blog-featured h2 {
  margin-top: 30px;
  margin-bottom: 14px;
  color: var(--hw-dark);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.25;
}

.com-content-article h3,
.blog h3,
.blog-featured h3 {
  margin-top: 24px;
  color: var(--hw-dark);
  font-size: 1.28rem;
}

/* Artikelinfos dezent */
.article-info {
  margin-bottom: 22px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f4f8fa;
  color: var(--hw-muted);
  font-size: .84rem;
}

.article-info dd { margin-bottom: 4px; }

/* Bilder */
.com-content-article img,
.blog-item img,
.item-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Sidebar und Module – ohne negative Abstände */
.sidebar-right,
.sidebar-left {
  min-width: 0;
}

.sidebar-right .card,
.sidebar-left .card,
.sidebar-right .moduletable,
.sidebar-left .moduletable {
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--hw-border);
  border-radius: var(--hw-radius);
  background: #fff;
  box-shadow: var(--hw-shadow);
}

/* Standard-Cassiopeia-Karten */
.sidebar-right .card-header,
.sidebar-left .card-header {
  margin: 0;
  padding: 11px 15px;
  border: 0;
  background: linear-gradient(100deg, var(--hw-dark), var(--hw-dark-2));
  color: #fff;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
}

.sidebar-right .card-body,
.sidebar-left .card-body {
  padding: 16px;
}

/* Module ohne Card-Chrome */
.sidebar-right .moduletable,
.sidebar-left .moduletable {
  padding: 16px;
}

.sidebar-right .moduletable > h3,
.sidebar-left .moduletable > h3 {
  margin: -16px -16px 16px;
  padding: 11px 15px;
  background: linear-gradient(100deg, var(--hw-dark), var(--hw-dark-2));
  color: #fff;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.35;
}

/* Edit-Buttons sollen den Inhalt nicht überdecken */
.btn.jmodedit {
  z-index: 5;
}

/* Tabellen */
.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--hw-border);
  border-radius: 10px;
}

table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  background: #fff;
}

table thead th {
  padding: 12px 14px;
  border: 0;
  background: var(--hw-dark);
  color: #fff;
}

table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--hw-border);
}

table tbody tr:nth-child(even) { background: #f7fafb; }

/* Formulare und Buttons */
.btn,
button,
input[type="submit"] {
  border-radius: 8px;
  font-weight: 650;
}

.btn-primary {
  border-color: var(--hw-blue);
  background: var(--hw-blue);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--hw-blue-dark);
  background: var(--hw-blue-dark);
}

.form-control,
.form-select,
input,
textarea,
select {
  border-color: var(--hw-border);
  border-radius: 8px;
}

/* Footer */
.container-footer {
  margin-top: 42px;
  padding-block: 34px;
  background: linear-gradient(120deg, #0c2639, var(--hw-dark), #1b4967);
  color: rgba(255,255,255,.78);
}

.container-footer a { color: #fff; }
.container-footer a:hover { color: var(--hw-orange); }

/* Eigene Wetterkarten */
.hw-weather-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.hw-weather-card {
  padding: 18px;
  border: 1px solid var(--hw-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17,43,64,.06);
}

.hw-weather-card__label {
  display: block;
  margin-bottom: 4px;
  color: var(--hw-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hw-weather-card__value {
  display: block;
  color: var(--hw-dark);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  font-weight: 750;
  line-height: 1.1;
}

.hw-weather-card__info {
  display: block;
  margin-top: 6px;
  color: var(--hw-muted);
  font-size: .88rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .grid-child { padding-inline: 14px; }

  .container-header .mod-menu {
    display: block;
    padding-bottom: 12px;
  }

  .container-header .mod-menu > li > a,
  .container-header .mod-menu > li > span {
    min-height: 44px;
    border-radius: 7px;
  }

  .container-banner .hw-hero { min-height: 290px; }
  .hw-hero__content { padding: 42px 20px 48px; }

  .hw-weather-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .grid-child { padding-inline: 10px; }

  .container-banner .hw-hero { min-height: 330px; }
  .hw-hero__content { padding: 38px 16px 44px; }
  .hw-hero h1 { font-size: 2.15rem; }

  .hw-hero__buttons { flex-direction: column; align-items: stretch; }
  .hw-btn-orange, .hw-btn-light { width: 100%; }

  .com-content-article,
  .blog,
  .blog-featured,
  .category-list,
  .contact,
  .login,
  .registration {
    padding: 18px;
    border-radius: 9px;
  }

  .hw-weather-grid { grid-template-columns: 1fr; }
}

:focus-visible {
  outline: 3px solid rgba(243,154,50,.7);
  outline-offset: 3px;
}

/* Hero-Inhalt auf dieselbe Flucht wie Hauptinhalt und Navigation setzen */
.container-banner .hw-hero .hw-hero__content {
    width: calc(100% - 3rem) !important;
    max-width: 1170px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 4.5rem 0 !important;
}

/* Falls Joomla die Klasse anders verschachtelt */
.container-banner .hw-hero > .mod-custom,
.container-banner .hw-hero > .custom {
    width: 100%;
}
