/* ============================================================
   IGS GmbH – Internet Global Services
   Farbgestaltung wie im Original: Primärfarbe #aa0033
   ============================================================ */

:root {
  --brand: #aa0033;
  --brand-dark: #7d0026;
  --brand-light: #c9335f;
  --dark: #3a3a3a;
  --grey: #666;
  --light: #f5f5f5;
  --border: #e2e2e2;
  --white: #fff;
  --header-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--dark);
  line-height: 1.65;
  background: var(--white);
}

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

a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-dark); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--brand);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 20px;
}

.brand img {
  height: 56px;
  width: auto;
  display: block;
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
}

.main-nav a {
  display: block;
  padding: 10px 9px;
  color: var(--dark);
  font-weight: 600;
  font-size: .92rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Dropdown (VoIP) */
.nav-item { position: relative; }
.nav-dropdown-toggle::after {
  content: "▾";
  margin-left: 6px;
  font-size: .75rem;
}
.main-nav .nav-dropdown {
  list-style: none;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 260px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  border-top: 3px solid var(--brand);
  z-index: 100;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown a { border-bottom: 1px solid var(--border); font-weight: 400; }

/* Burger-Button (mobil) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===================== Hero-Carousel ===================== */

.hero {
  background: var(--brand);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 60px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
}
.hero-slide.active { opacity: 1; visibility: visible; }

.hero-slide a { color: var(--white); }
.hero-slide h2 {
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.3;
}
.hero-slide:hover h2 { text-decoration: underline; }

.hero-indicators {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 5;
}
.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dot.active { background: var(--white); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(0,0,0,.25);
  color: var(--white);
  border: 0;
  width: 44px;
  height: 64px;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background .2s;
}
.hero-arrow:hover { background: rgba(0,0,0,.5); }
.hero-arrow.prev { left: 0; border-radius: 0 4px 4px 0; }
.hero-arrow.next { right: 0; border-radius: 4px 0 0 4px; }

/* ===================== Seiten-Inhalt ===================== */

.page {
  padding: 56px 0 72px;
  min-height: 50vh;
}

.page h1 {
  color: var(--brand);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 18px;
  line-height: 1.25;
}

.page h2 {
  color: var(--brand);
  font-size: 1.5rem;
  margin: 36px 0 12px;
}

.page h3 {
  color: var(--dark);
  font-size: 1.15rem;
  margin: 24px 0 10px;
}

.page p { margin-bottom: 16px; }

.page ul, .page ol { margin: 0 0 16px 24px; }
.page li { margin-bottom: 6px; }

.page hr {
  border: 0;
  border-top: 2px solid var(--border);
  margin: 44px 0;
}

.lead { font-size: 1.15rem; color: var(--grey); margin-bottom: 24px; }

/* 2-Spalten-Baukästen (Bild + Text) */
.split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 36px;
  align-items: start;
  margin: 30px 0;
}
.split.reverse { grid-template-columns: 1fr 380px; }
.split.reverse .split-img { order: 2; }
.split img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,.1);
}

/* Feature-Karten (Startseite) */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--brand);
  border-radius: 8px;
  padding: 26px 22px;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.card h3 { margin: 0 0 10px; color: var(--brand); font-size: 1.1rem; }
.card p { margin: 0 0 14px; color: var(--grey); font-size: .95rem; }
.card a.more { font-weight: 600; font-size: .95rem; }

/* Checkliste */
.checklist { list-style: none; margin-left: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}
.checklist li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
}

/* Produkt-Kacheln (Telefone) */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.product {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
}
.product img { width: 100%; display: block; }
.product-body { padding: 18px; }
.product-body h3 { margin: 0 0 10px; color: var(--brand); font-size: 1.05rem; }
.product-body p { font-size: .92rem; margin-bottom: 10px; }
.product-body ul { font-size: .88rem; }

/* Referenzen-Galerie */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin: 26px 0 50px;
}
.ref-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 3px 10px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
}
.ref-item:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.14); }
.ref-thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--light); }
.ref-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ref-item figcaption { padding: 14px 16px; }
.ref-item figcaption b { display: block; color: var(--dark); }
.ref-item figcaption span { color: var(--grey); font-size: .9rem; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px; }
.contact-box {
  background: var(--light);
  border-left: 4px solid var(--brand);
  border-radius: 6px;
  padding: 26px;
}
.contact-box h3 { margin-top: 0; }
.contact-box p { margin-bottom: 8px; }
.contact-box a { font-weight: 600; }

/* Impressum / Datenschutz */
.legal { max-width: 860px; }

/* Karten / iframe */
.map-wrap { position: relative; padding-top: 56.25%; margin-top: 26px; }
.map-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

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

.partners {
  background: var(--light);
  padding: 48px 0;
}
.partners h3 {
  text-align: center;
  margin-bottom: 28px;
  color: var(--dark);
  font-size: 1.15rem;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.partner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.partner img { max-height: 56px; width: auto; max-width: 150px; }
.partner figcaption { font-size: .85rem; color: var(--grey); }

.site-footer {
  background: #333;
  color: #ccc;
  padding: 46px 0 30px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.site-footer h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 8px;
  display: inline-block;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid #4a4a4a;
  text-align: center;
  font-size: .85rem;
  color: #999;
}

/* Cookie-Hinweis */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #444;
  color: #fff;
  padding: 14px 20px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  z-index: 2000;
  font-size: .9rem;
}
#cookie-banner.show { display: flex; }
#cookie-banner a { color: #fff; text-decoration: underline; }
#cookie-banner button {
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 8px 22px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}
#cookie-banner button:hover { background: var(--brand-dark); }

/* ===================== Responsiv ===================== */

@media (max-width: 992px) {
  .cards, .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-img { order: 0; }
  .split img { max-width: 560px; }
  .products { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--brand);
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { border-bottom: 1px solid var(--border); border-left: 3px solid transparent; padding: 13px 20px; }
  .main-nav a:hover, .main-nav a.active { border-left-color: var(--brand); border-bottom-color: var(--border); }
  .nav-dropdown { position: static; box-shadow: none; border-top: 0; }
  .nav-dropdown a { padding-left: 36px; }

  .hero { min-height: 300px; }
  .hero-arrow { width: 36px; height: 52px; font-size: 1.2rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .brand img { height: 44px; }
  .cards, .ref-grid, .products { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide { padding: 50px 40px; }
}
