/*
 * GEWO – zentrales Komponenten-Stylesheet
 * Version: 1.0 | Stand: 21.07.2026
 * Für Joomla-Beiträge der GEWO GmbH / Kegelsberg
 */

:root {
  --gewo-green: #95c11f;
  --gewo-green-dark: #6f9617;
  --gewo-orange: #e94e1b;
  --gewo-ink: #2d2d2d;
  --gewo-text: #333333;
  --gewo-muted: #666666;
  --gewo-line: #e5e5e5;
  --gewo-soft: #f7f7f7;
  --gewo-softer: #fafafa;
  --gewo-white: #ffffff;
  --gewo-info-bg: #eef7fb;
  --gewo-info-line: #4a9bbb;
  --gewo-warning-bg: #fff7e8;
  --gewo-warning-line: #e6a23c;
  --gewo-radius: 12px;
  --gewo-radius-small: 8px;
  --gewo-shadow: 0 8px 24px rgba(45, 45, 45, 0.08);
  --gewo-space: 28px;
}

.gewo-page,
.gewo-teaser,
.gewo-teaser-wrap {
  box-sizing: border-box;
  color: var(--gewo-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

.gewo-page *,
.gewo-page *::before,
.gewo-page *::after,
.gewo-teaser *,
.gewo-teaser *::before,
.gewo-teaser *::after {
  box-sizing: border-box;
}

.gewo-page {
  max-width: 1100px;
  margin: 0 auto;
}

.gewo-teaser-wrap {
  max-width: 1100px;
  margin: 0 auto 25px;
}

.gewo-page img,
.gewo-teaser img {
  display: block;
  max-width: 100%;
  height: auto;
}

.gewo-page h1,
.gewo-page h2,
.gewo-page h3,
.gewo-page h4,
.gewo-teaser h2 {
  color: var(--gewo-ink);
  line-height: 1.25;
}

.gewo-page h1,
.gewo-page .gewo-hero__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.55rem);
}

.gewo-page h2 {
  margin: 0 0 16px;
  font-size: clamp(1.65rem, 3vw, 2rem);
}

.gewo-page h3 {
  margin: 0 0 14px;
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
}

.gewo-page h4 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.gewo-page p {
  margin: 0 0 14px;
}

.gewo-page p:last-child,
.gewo-card > :last-child,
.gewo-section > :last-child {
  margin-bottom: 0;
}

.gewo-page a {
  color: var(--gewo-green-dark);
  text-underline-offset: 3px;
}

.gewo-page a:hover {
  color: #52720f;
}

.gewo-page a:focus-visible,
.gewo-btn:focus-visible {
  outline: 3px solid rgba(149, 193, 31, 0.42);
  outline-offset: 3px;
}

/* Teaser vor dem Joomla-Weiterlesen-Trenner */
.gewo-teaser {
  display: flex;
  min-height: 264px;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--gewo-line);
  border-left: 5px solid var(--gewo-green);
  border-radius: 10px;
  background: var(--gewo-white);
}

.gewo-teaser--rental {
  min-height: 354px;
}

.gewo-teaser--intro {
  min-height: 0;
  margin-bottom: 24px;
  border-left: 0;
  background: var(--gewo-soft);
}

.gewo-teaser__icon {
  width: 80px;
  height: 80px;
  margin: 0 0 12px auto;
  object-fit: contain;
}

.gewo-teaser__title {
  margin: 0 0 10px;
  color: var(--gewo-orange) !important;
  font-size: clamp(1.45rem, 3vw, 1.7rem);
}

.gewo-teaser__summary {
  margin: 0 0 12px;
}

.gewo-teaser__tags {
  margin-top: auto;
}

/* Grundbausteine */
.gewo-badge,
.gewo-eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-weight: 700;
}

.gewo-badge {
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gewo-green);
  color: var(--gewo-white);
  font-size: 0.82rem;
}

.gewo-eyebrow {
  margin: 0 0 8px;
  color: #4f6612;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.gewo-lead {
  margin: 12px 0 0 !important;
  color: var(--gewo-muted);
  font-size: 1.125rem;
}

.gewo-tagline {
  margin: 18px 0 0 !important;
  color: var(--gewo-orange);
  font-size: clamp(1.3rem, 2.7vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
}

.gewo-price {
  margin: 18px 0 0 !important;
  color: var(--gewo-green-dark);
  font-size: clamp(1.55rem, 3vw, 1.85rem);
  font-weight: 700;
}

.gewo-meta,
.gewo-muted {
  color: var(--gewo-muted);
}

.gewo-meta {
  margin-top: 10px !important;
  font-size: 0.95rem;
}

.gewo-copy {
  font-size: 1.06rem;
  line-height: 1.8;
}

.gewo-copy--spaced,
.gewo-section-intro {
  margin-bottom: 18px !important;
}

.gewo-link {
  color: var(--gewo-green-dark) !important;
  font-weight: 700;
  text-decoration: none;
}

.gewo-text-accent {
  color: var(--gewo-green-dark);
  font-size: 1.1rem;
}

.gewo-section,
.gewo-card,
.gewo-hero,
.gewo-cta {
  box-sizing: border-box;
}

.gewo-section {
  margin-bottom: var(--gewo-space);
}

.gewo-card,
.gewo-section--card {
  padding: 24px;
  border: 1px solid var(--gewo-line);
  border-radius: 10px;
  background: var(--gewo-white);
}

.gewo-card--shadow,
.gewo-hero--shadow {
  box-shadow: var(--gewo-shadow);
}

.gewo-card--accent,
.gewo-fact-card,
.gewo-highlight-card {
  border-top: 4px solid var(--gewo-green);
}

.gewo-card--soft,
.gewo-section--soft {
  background: var(--gewo-softer);
}

.gewo-section--soft {
  padding: 24px;
  border-radius: 10px;
}

.gewo-section--accent {
  padding: 24px;
  border-left: 5px solid var(--gewo-green);
  border-radius: 10px;
  background: var(--gewo-soft);
}

.gewo-card--fill {
  height: 100%;
}

/* Hero */
.gewo-hero {
  margin-bottom: var(--gewo-space);
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--gewo-line);
  border-top: 4px solid var(--gewo-green);
  border-radius: var(--gewo-radius);
  background: linear-gradient(135deg, var(--gewo-soft) 0%, var(--gewo-white) 100%);
}

.gewo-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
}

.gewo-hero__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

.gewo-hero__media {
  min-width: 0;
  background: #e9e9e9;
}

.gewo-hero__media img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.gewo-hero--media-right .gewo-hero__media {
  order: 2;
}

.gewo-hero--media-right .gewo-hero__content {
  order: 1;
}

/* Raster */
.gewo-grid,
.gewo-split,
.gewo-media-row,
.gewo-actions,
.gewo-tags,
.gewo-mini-facts {
  display: grid;
}

.gewo-grid {
  gap: 16px;
}

.gewo-grid--2,
.gewo-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.gewo-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gewo-grid--auto,
.gewo-facts,
.gewo-data-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.gewo-facts,
.gewo-data-grid {
  margin-bottom: var(--gewo-space);
  gap: 14px;
}

.gewo-data-grid {
  margin-bottom: 0;
}

.gewo-data-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  background: var(--gewo-softer);
}

.gewo-data-label {
  color: #777777;
  font-size: 0.82rem;
}

.gewo-data-value {
  font-size: 1.1rem;
}

.gewo-icon {
  margin-bottom: 8px;
  font-size: 1.75rem;
  line-height: 1;
}

.gewo-highlight-icon {
  margin-bottom: 8px;
  font-size: 1.75rem;
  line-height: 1;
}

.gewo-card-title {
  display: block;
  font-size: 1.1rem;
}

.gewo-tags {
  grid-template-columns: repeat(auto-fit, minmax(max-content, 1fr));
  gap: 8px;
}

.gewo-tag {
  padding: 6px 12px;
  border: 1px solid var(--gewo-line);
  border-radius: 999px;
  background: var(--gewo-soft);
  font-size: 0.88rem;
  text-align: center;
}

.gewo-mini-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.gewo-mini-fact {
  padding: 10px 7px;
  border-radius: var(--gewo-radius-small);
  background: var(--gewo-soft);
  text-align: center;
}

.gewo-mini-fact strong {
  display: block;
}

.gewo-media-row {
  grid-template-columns: minmax(0, 7fr) minmax(250px, 5fr);
  align-items: center;
  gap: 24px;
}

.gewo-media-row__image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--gewo-shadow);
}

/* Listen und Detailzeilen */
.gewo-feature-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.9;
}

.gewo-feature-list li + li {
  margin-top: 3px;
}

.gewo-detail-list {
  margin: 0;
}

.gewo-detail-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--gewo-line);
}

.gewo-detail-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

/* Schaltflächen */
.gewo-actions {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.gewo-stack {
  display: flex;
  flex-direction: column;
}

.gewo-actions--bottom {
  margin-top: auto;
  padding-top: 18px;
}

.gewo-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border: 2px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.gewo-btn--primary {
  border-color: var(--gewo-green);
  background: var(--gewo-green);
  color: var(--gewo-white) !important;
}

.gewo-btn--primary:hover {
  border-color: var(--gewo-green-dark);
  background: var(--gewo-green-dark);
}

.gewo-btn--secondary {
  border-color: #3d3d3d;
  background: #3d3d3d;
  color: var(--gewo-white) !important;
}

.gewo-btn--secondary:hover {
  border-color: #242424;
  background: #242424;
}

.gewo-btn--outline {
  border-color: var(--gewo-green);
  background: var(--gewo-white);
  color: var(--gewo-green-dark) !important;
}

.gewo-btn--outline:hover {
  background: #f3f8e8;
}

/* Hinweise */
.gewo-notice {
  margin: 18px 0;
  padding: 16px 18px;
  border-left: 5px solid var(--gewo-info-line);
  border-radius: var(--gewo-radius-small);
  background: var(--gewo-info-bg);
}

.gewo-notice--warning {
  border-left-color: var(--gewo-warning-line);
  background: var(--gewo-warning-bg);
}

.gewo-notice--tip {
  border-left-color: var(--gewo-green);
  background: #f4f8e9;
}

.gewo-notice:last-child {
  margin-bottom: 0;
}

/* Galerien und Bilder */
.gewo-gallery {
  padding: 0;
  overflow: hidden;
}

.gewo-gallery__intro {
  padding: 24px;
}

.gewo-gallery__module,
.gewo-module-gallery {
  padding: 16px;
  overflow: hidden;
  border-radius: 0 0 10px 10px;
  background: var(--gewo-softer);
}

.gewo-gallery__module img,
.gewo-module-gallery img {
  max-width: 100%;
  height: auto;
}

.gewo-awards {
  padding: 14px;
  border-radius: 10px;
  background: var(--gewo-soft);
  text-align: center;
}

.gewo-awards__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gewo-awards__logos img,
.gewo-award-image {
  width: auto;
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
}

/* Tabellen */
.gewo-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.gewo-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--gewo-white);
}

.gewo-table th,
.gewo-table td {
  padding: 13px 14px;
  border: 1px solid var(--gewo-line);
  text-align: left;
  vertical-align: top;
}

.gewo-table th {
  background: #eef4df;
  color: var(--gewo-ink);
}

.gewo-table tbody tr:nth-child(even) {
  background: var(--gewo-softer);
}

/* Kontakt und Abschluss */
.gewo-cta {
  margin-bottom: var(--gewo-space);
  padding: 26px;
  border: 2px solid var(--gewo-green);
  border-radius: var(--gewo-radius);
  background: linear-gradient(135deg, var(--gewo-soft) 0%, var(--gewo-white) 100%);
}

.gewo-contact-name {
  font-size: 1.32rem;
}

.gewo-contact-details {
  margin-bottom: 18px !important;
  font-size: 1.06rem;
  line-height: 2;
}

.gewo-note {
  margin-top: 35px;
  padding: 18px 20px;
  border-top: 2px solid var(--gewo-green-dark);
  border-radius: var(--gewo-radius-small);
  background: var(--gewo-softer);
  color: #777777;
  font-size: 0.88rem;
  text-align: center;
}

.gewo-brand {
  display: grid;
  grid-template-columns: minmax(130px, 190px) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.gewo-brand img {
  margin: 0 auto;
}

.gewo-anchor {
  scroll-margin-top: 100px;
}

.gewo-sleep-grid,
.gewo-feature-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 18px 0;
}

.gewo-sleep-item,
.gewo-feature-category {
  padding: 18px;
  border: 1px solid var(--gewo-line);
  border-radius: 10px;
  background: var(--gewo-softer);
}

.gewo-feature-category ul {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
}

/* Joomla-Modul- und Fremdinhalt-Schutz */
.gewo-page iframe {
  max-width: 100%;
  border: 0;
}

.gewo-page .gewo-embed {
  max-width: 100%;
  overflow: hidden;
  border-radius: 10px;
}

@media (max-width: 767.98px) {
  :root {
    --gewo-space: 20px;
  }

  .gewo-page,
  .gewo-teaser-wrap {
    width: 100%;
  }

  .gewo-teaser,
  .gewo-teaser--rental {
    min-height: 0;
  }

  .gewo-page h1,
  .gewo-page .gewo-hero__title {
    font-size: 2rem;
  }

  .gewo-page h2 {
    font-size: 1.6rem;
  }

  .gewo-hero,
  .gewo-card,
  .gewo-section--soft,
  .gewo-section--accent,
  .gewo-cta {
    padding: 20px;
  }

  .gewo-hero--split {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .gewo-hero__content {
    order: 2 !important;
    padding: 22px 20px;
  }

  .gewo-hero__media {
    order: 1 !important;
  }

  .gewo-hero__media img {
    min-height: 0;
    max-height: 310px;
    aspect-ratio: 4 / 3;
  }

  .gewo-grid--2,
  .gewo-grid--3,
  .gewo-split,
  .gewo-media-row,
  .gewo-brand {
    grid-template-columns: 1fr;
  }

  .gewo-mini-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 0.82rem;
  }

  .gewo-facts,
  .gewo-data-grid,
  .gewo-grid--auto {
    grid-template-columns: 1fr;
  }

  .gewo-actions {
    grid-template-columns: 1fr;
  }

  .gewo-btn {
    width: 100%;
  }

  .gewo-gallery__intro,
  .gewo-gallery__module,
  .gewo-module-gallery {
    padding: 18px;
  }

  .gewo-table {
    min-width: 560px;
  }
}

@media (max-width: 420px) {
  .gewo-mini-facts {
    grid-template-columns: 1fr;
  }

  .gewo-tags {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gewo-btn {
    transition: none;
  }
}

@media print {
  .gewo-page {
    max-width: none;
  }

  .gewo-card,
  .gewo-hero,
  .gewo-cta {
    box-shadow: none;
    break-inside: avoid;
  }

  .gewo-actions {
    display: none;
  }
}
