/* =========================================================
   WBT Sitepackage – Grundgestaltung
   ========================================================= */

:root {
  --wbt-blue: #193f85;
  --wbt-blue-dark: #12336f;
  --wbt-orange: #f28c00;
  --wbt-red: #e30613;
  --wbt-text: #17366f;
  --wbt-muted: #64748b;
  --wbt-light: #f3f4f6;
  --wbt-border: #dce2ec;
  --wbt-container: 1120px;
  --wbt-radius: 3px;
  --wbt-shadow: 0 5px 18px rgba(20, 49, 94, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--wbt-text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--wbt-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.wbt-container {
  width: min(var(--wbt-container), calc(100% - 40px));
  margin-inline: auto;
}

/* =========================================================
   Header
   ========================================================= */

.wbt-header {
  position: relative;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid #e8edf4;
}

.wbt-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  gap: 28px;
}

.wbt-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.wbt-brand img {
  display: block;
  width: 105px;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.wbt-header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  margin-left: auto;
  font-size: 14px;
  line-height: 1.4;
}

.wbt-header__contact a {
  color: var(--wbt-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wbt-header__contact a:first-child {
  color: var(--wbt-orange);
  font-weight: 600;
}

.wbt-header__contact a:hover {
  color: var(--wbt-red);
}

.wbt-header__contact span {
  color: var(--wbt-muted);
  font-size: 0.78rem;
}

/* =========================================================
   Navigation
   ========================================================= */

.wbt-menu-toggle {
  display: none;
  padding: 10px 13px;
  border: 0;
  border-radius: var(--wbt-radius);
  background: var(--wbt-blue);
  color: #fff;
  cursor: pointer;
}

.wbt-menu-toggle__icon {
  display: inline-grid;
  gap: 4px;
  margin-left: 8px;
  vertical-align: middle;
}

.wbt-menu-toggle__icon i {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
}

.wbt-nav-wrap {
  border-top: 1px solid #f0f2f5;
}

.wbt-main-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}

.wbt-main-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wbt-main-navigation > ul {
  display: flex;
  align-items: stretch;
  gap: 4px;
}

.wbt-main-navigation > ul > li {
  position: relative;
}

.wbt-main-navigation > ul > li > a {
  display: block;
  padding: 13px 12px;
  color: var(--wbt-blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.wbt-main-navigation li.is-active > a,
.wbt-main-navigation > ul > li:hover > a {
  color: var(--wbt-orange);
}

.wbt-subnavigation {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 230px;
  background: #fff;
  border-top: 3px solid var(--wbt-orange);
  box-shadow: var(--wbt-shadow);
}

.wbt-main-navigation li:hover > .wbt-subnavigation,
.wbt-main-navigation li:focus-within > .wbt-subnavigation {
  display: block;
}

.wbt-subnavigation a {
  display: block;
  padding: 9px 14px;
  border-bottom: 1px solid #edf0f5;
  font-size: 0.88rem;
}

.wbt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.wbt-button--red {
  background: var(--wbt-red);
  color: #fff;
}

.wbt-button--red:hover {
  background: #bd0010;
  color: #fff;
  text-decoration: none;
}

/* =========================================================
   Seiteninhalt
   ========================================================= */

.wbt-intro {
  padding: 34px 0 18px;
}

.wbt-main {
  min-height: 260px;
  padding: 22px 0 48px;
}

.wbt-main .wbt-container {
  min-width: 0;
}

.wbt-main h1,
.wbt-intro h1 {
  margin: 0 0 18px;
  color: var(--wbt-blue);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.18;
}

.wbt-main h2,
.wbt-intro h2 {
  margin: 1.8em 0 0.7em;
  color: var(--wbt-blue);
  font-size: 1.45rem;
  line-height: 1.25;
}

.wbt-main h3 {
  color: var(--wbt-blue);
  font-size: 1.12rem;
}

.wbt-main p {
  margin: 0 0 1.1em;
}

.wbt-main .frame {
  margin-bottom: 28px;
}

.wbt-main .frame-type-header {
  margin-bottom: 14px;
}

.wbt-main .frame-type-textmedia img {
  border-radius: var(--wbt-radius);
}

.wbt-main .ce-gallery {
  margin-bottom: 1em;
}

.wbt-main .frame-background-light {
  padding: 24px;
  background: var(--wbt-light);
}

/* =========================================================
   Footer
   ========================================================= */

.wbt-footer {
  padding: 48px 0 20px;
  background: var(--wbt-blue-dark);
  color: #fff;
}

.wbt-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wbt-footer a:hover,
.wbt-footer a:focus-visible {
  color: var(--wbt-orange);
  text-decoration: none;
}

/* Vier Footer-Spalten */

.wbt-footer__columns {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  padding-bottom: 38px;
}

/* Logo und Beschreibung */

.wbt-footer__brand img {
  display: block;
  width: 50px;
  max-width: 100%;
  height: auto;
  margin-bottom: 18px;
}

.wbt-footer__brand p {
  max-width: 260px;
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Navigation und Kontakt */

.wbt-footer__nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.wbt-footer__nav strong,
.wbt-footer__contact strong {
  display: block;
  margin-bottom: 17px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.wbt-footer__nav li {
  margin-bottom: 10px;
  line-height: 1.4;
}

.wbt-footer__nav a,
.wbt-footer__contact a {
  font-size: 0.83rem;
}

.wbt-footer__contact p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Social Media */

.wbt-footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  margin-bottom: 20px;
}

.wbt-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.85);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.wbt-footer__social svg {
  display: block;
  width: 25px;
  height: 25px;
}

.wbt-footer__social a:hover {
  color: var(--wbt-orange);
  transform: translateY(-2px);
}

/* Unterer Footer-Bereich */

.wbt-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.78rem;
}

.wbt-footer__bottom div {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.wbt-footer__bottom a {
  font-size: 0.78rem;
}

/* =========================================================
   Produkt-Kacheln
   ========================================================= */

.wbt-product-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px;
  width: 100%;
  margin: 32px 0;
}

.wbt-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

/* Logo-Bereich */

.wbt-product-card__logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  padding: 20px;
}

.wbt-product-card__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.wbt-product-card__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.wbt-product-card__logo-image {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}
/* Produktkacheln – dezenter Hover-Effekt */
.wbt-product-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.wbt-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

/* Link innerhalb der Kachel */
.wbt-product-card__link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.wbt-product-card__link:hover {
  color: inherit;
  text-decoration: none;
}

/* Tastaturbedienung */
.wbt-product-card__link:focus-visible {
  outline: 3px solid var(--wbt-orange);
  outline-offset: 4px;
  border-radius: 8px;
}

/* Auf Touch-Geräten keinen Hover-Effekt erzwingen */
@media (hover: none) {
  .wbt-product-card:hover {
    transform: none;
    box-shadow: none;
  }
}

/* Text und Teaserbild */

.wbt-product-card__content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex: 1;
  min-height: 230px;
}

.wbt-product-card__text {
  padding: 24px;
}

.wbt-product-card__headline {
  margin: 0 0 14px;
  color: var(--wbt-blue);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
}

.wbt-product-card__description {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

.wbt-product-card__image {
  min-height: 230px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* =========================================================
   Responsive Anpassungen
   ========================================================= */

/* Tablet und kleinere Bildschirme */

@media (max-width: 1000px) {
  .wbt-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .wbt-footer__brand {
    grid-column: span 3;
  }
}

@media (max-width: 900px) {
  .wbt-header__inner {
    min-height: 100px;
  }

  .wbt-menu-toggle {
    display: inline-flex;
    align-items: center;
  }

  .wbt-nav-wrap {
    border-top: 0;
  }

  .wbt-main-navigation {
    display: none;
    align-items: stretch;
    padding: 0 0 16px;
  }

  .wbt-main-navigation.is-open {
    display: flex;
    flex-direction: column;
  }

  .wbt-main-navigation > ul {
    display: block;
  }

  .wbt-main-navigation > ul > li > a {
    padding: 11px 4px;
    border-top: 1px solid #edf0f5;
  }

  .wbt-subnavigation {
    display: none;
    position: static;
    padding-left: 15px;
    border-top: 0;
    box-shadow: none;
  }

  .wbt-subnavigation.is-open {
    display: block;
  }

  .wbt-main-navigation li:hover > .wbt-subnavigation {
    display: none;
  }

  .wbt-main-navigation li:focus-within > .wbt-subnavigation {
    display: block;
  }

  .wbt-nav-cta {
    align-self: flex-start;
  }
}

/* Smartphone */

@media (max-width: 640px) {
  .wbt-container {
    width: min(100% - 28px, var(--wbt-container));
  }

  .wbt-brand img {
    width: 85px;
  }

  .wbt-header__contact {
    display: none;
  }

  .wbt-intro {
    padding-top: 24px;
  }

  .wbt-main {
    padding: 16px 0 34px;
  }
}

@media (max-width: 600px) {
  .wbt-footer {
    padding-top: 34px;
  }

  .wbt-footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .wbt-footer__brand {
    grid-column: span 2;
  }

  .wbt-footer__social {
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  .wbt-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .wbt-product-cards {
    grid-template-columns: 1fr;
    gap: 18px;
    border: 2px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }

  .wbt-product-card__content-wrapper {
    grid-template-columns: 1fr;
  }

  .wbt-product-card__image {
    min-height: 190px;
  }

  .wbt-product-card__text {
    padding: 20px;
  }
}
