/* ==========================================================
   AllHosting Theme Core Styles
   ========================================================== */

/* === Farbvariablen & Grundlayout === */
:root {
  --ah-bg: #0b1120;
  --ah-text: #e5e7eb;
  --ah-accent: #ff7b00;
  --ah-accent-hover: #ffaa33;
  --ah-box: #111a2e;
  --ah-radius: 10px;
  --ah-shadow: 0 0 20px rgba(255, 123, 0, 0.15);
}

.ah-body {
  background: var(--ah-bg);
  color: var(--ah-text);
  font-family: 'Inter', 'Segoe UI', sans-serif;
  min-height: 100vh;
}

/* ==========================================================
   Header
   ========================================================== */

.ah-header {
  background: var(--ah-box);
  box-shadow: var(--ah-shadow);
  position: sticky;
  top: 0;
  z-index: 1030;       /* wichtig für Dropdowns */
  overflow: visible;   /* Dropdowns nicht abschneiden */
  padding: 12px 0;
}

.ah-container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.ah-logo img {
  height: 38px;
  filter: brightness(1.2);
}

.ah-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ah-accent);
  text-decoration: none;
}

/* Navigation */
.ah-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  position: relative;
}

.ah-nav ul li {
  position: relative;
}

.ah-nav ul li a {
  color: var(--ah-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.ah-nav ul li a:hover {
  color: var(--ah-accent);
}

/* Header-Actions (Login, Register, Cart, etc.) */
.ah-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================
   Buttons
   ========================================================== */

.ah-btn {
  background: var(--ah-accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--ah-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s;
  box-shadow: 0 0 8px rgba(255, 123, 0, 0.3);
}

.ah-btn:hover {
  background: var(--ah-accent-hover);
  box-shadow: 0 0 14px rgba(255, 155, 0, 0.5);
}

.ah-btn.small {
  padding: 6px 12px;
  font-size: 0.9rem;
}

.ah-btn.outline {
  background: transparent;
  border: 1px solid var(--ah-accent);
  color: var(--ah-accent);
}

.ah-btn.outline:hover {
  background: var(--ah-accent);
  color: #fff;
}

/* Cart Icon */
.ah-cart-btn {
  font-size: 1.3rem;
  color: var(--ah-accent);
  text-decoration: none;
  transition: transform 0.2s, color 0.2s;
}

.ah-cart-btn:hover {
  transform: scale(1.1);
  color: var(--ah-accent-hover);
}

/* ==========================================================
   Language Select
   ========================================================== */

.ah-lang-select select {
  background: var(--ah-box);
  color: var(--ah-text);
  border: 1px solid #1e293b;
  border-radius: var(--ah-radius);
  padding: 6px 10px;
}

/* ==========================================================
   Page Layout
   ========================================================== */

.ah-main {
  padding-top: 30px;
}

.ah-page-header {
  margin-bottom: 20px;
  color: var(--ah-accent);
}

/* ==========================================================
   Navbar Dropdowns (WHMCS-kompatibel)
   ========================================================== */

/* Dropdown-Basis */
.ah-nav .dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: var(--ah-box);
  color: var(--ah-text);
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.35), 0 0 18px rgba(255,123,0,.15);
  z-index: 2000;
  display: none;
  margin-top: -1px; /* verhindert Lücke unter Menüpunkt */
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.18s ease;
  visibility: hidden;
}

/* Sichtbar bei Hover oder wenn Bootstrap .open setzt */
.ah-nav li:hover > .dropdown-menu,
.ah-nav li.open > .dropdown-menu,
.ah-nav .dropdown-menu:hover {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* Links im Dropdown */
.ah-nav .dropdown-menu a {
  color: var(--ah-text);
  text-decoration: none;
  padding: 8px 12px;
  display: block;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.ah-nav .dropdown-menu a:hover {
  background: rgba(255,123,0,.08);
  color: var(--ah-accent);
}

/* Header / Divider innerhalb der Dropdowns */
.ah-nav .dropdown-header {
  color: #94a3b8;
  font-weight: 600;
  padding: 8px 12px;
  margin-top: 4px;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.ah-nav .divider {
  height: 1px;
  background: #1e293b;
  margin: 8px 0;
}

/* Mega-Menü (mehrspaltig) */
.ah-nav .dropdown-menu .row,
.ah-nav .dropdown-menu .mega-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px 14px;
}

/* Caret */
.ah-nav .dropdown > a .caret {
  border-top-color: var(--ah-text);
  border-bottom-color: var(--ah-text);
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 992px) {
  .ah-nav {
    width: 100%;
  }

  .ah-nav ul {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ah-nav .dropdown-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
    display: none;
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .ah-nav li:hover > .dropdown-menu {
    display: block;
  }
}

/* === Dropdown Hover Stabilisierung === */

/* Hover-Zone zwischen Menüpunkt und Dropdown */
.ah-nav li::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 15px; /* unsichtbare Brücke */
  background: transparent;
}

/* Dropdown selbst über Hover-Zone sichtbar halten */
.ah-nav li:hover > .dropdown-menu,
.ah-nav .dropdown-menu:hover {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

/* === ✨ Premium Dropdown-Optik (AllHosting Style) === */

.ah-nav .dropdown-menu {
  /* Bestehendes Grunddesign beibehalten */
  background: rgba(17, 26, 46, 0.85); /* halbtransparentes Dunkelblau */
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45),
              0 0 18px rgba(255, 123, 0, 0.25);
  border-radius: 12px;
  transition: all 0.25s ease;
  padding: 12px 10px;
}

/* Sanfte Aufklapp-Animation */
.ah-nav li:hover > .dropdown-menu,
.ah-nav .dropdown-menu:hover {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Items im Menü */
.ah-nav .dropdown-menu a {
  color: #e5e7eb;
  font-weight: 500;
  letter-spacing: 0.2px;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

/* Hover-Effekt für Links */
.ah-nav .dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(255,123,0,0.15) 0%, rgba(255,180,0,0.1) 100%);
  color: var(--ah-accent);
  transform: translateX(4px);
  box-shadow: inset 2px 0 0 var(--ah-accent);
}

/* Optionaler "Glow" für aktive Elemente */
.ah-nav .dropdown-menu a.active {
  background: rgba(255,123,0,0.12);
  color: #fff;
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--ah-accent);
}

/* Divider eleganter */
.ah-nav .divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 10px 0;
}

/* Überschriften innerhalb Dropdowns */
.ah-nav .dropdown-header {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 6px 0 4px 6px;
}


-----------------------------FOOTER---------------------------------------

/* === AllHosting Footer === */
.ah-footer {
  background: var(--ah-box);
  color: var(--ah-text);
  padding: 60px 0 30px;
  position: relative;
  box-shadow: 0 -10px 30px rgba(255,123,0,0.05) inset;
}

.ah-footer-inner {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

.ah-footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.ah-footer-col h4 {
  color: var(--ah-accent);
  margin-bottom: 12px;
  font-weight: 700;
}

.ah-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ah-footer-col ul li {
  margin: 6px 0;
}

.ah-footer-col ul li a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s;
}

.ah-footer-col ul li a:hover {
  color: var(--ah-accent);
}

/* Social Icons */
.ah-footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 25px;
}

.ah-footer-social a {
  color: var(--ah-text);
  font-size: 1.3rem;
  transition: all 0.3s;
}

.ah-footer-social a:hover {
  color: var(--ah-accent);
  transform: translateY(-3px);
}

/* Copyright */
.ah-footer-bottom {
  font-size: 0.9rem;
  opacity: 0.8;
}

.ah-footer-bottom .small {
  font-size: 0.8rem;
  color: #a3a3a3;
  margin-top: 4px;
}

/* Back to top */
.ah-backtotop {
  position: absolute;
  right: 30px;
  bottom: 30px;
  color: var(--ah-accent);
  background: rgba(255,255,255,0.06);
  padding: 10px 12px;
  border-radius: 50%;
  font-size: 1rem;
  transition: all 0.3s;
}

.ah-backtotop:hover {
  background: var(--ah-accent);
  color: #fff;
  box-shadow: 0 0 12px rgba(255,123,0,0.5);
}



--------------------Homepage------------------------------

/* === HOMEPAGE === */
.ah-hero {
  background: linear-gradient(120deg, #0b1120 0%, #111a2e 100%);
  padding: 100px 20px;
  color: var(--ah-text);
}
.ah-hero .ah-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1300px;
  margin: 0 auto;
}
.ah-hero h1 {
  font-size: 2.8rem;
  color: var(--ah-accent);
  margin-bottom: 10px;
}
.ah-hero p {
  font-size: 1.1rem;
  color: #cbd5e1;
  margin-bottom: 18px;
}
.ah-hero-content {
  max-width: 600px;
}
.ah-hero-action {
  text-align: center;
}
.ah-hero .ah-btn {
  font-size: 1.1rem;
  padding: 12px 24px;
}


/* === Hosting-Pläne === */
.ah-plans {
  padding: 80px 20px;
  background: var(--ah-bg);
  text-align: center;
}
.ah-container {
  width: 95%;
  max-width: 1300px;
  margin: 0 auto;
}
.ah-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Immer 3 Spalten */
  gap: 28px;
  margin-top: 40px;
  justify-items: center;
}
.ah-plan {
  background: var(--ah-box);
  border-radius: var(--ah-radius);
  padding: 28px 22px;
  box-shadow: var(--ah-shadow);
  width: 100%;
  max-width: 340px; /* Breite pro Karte */
  transition: all 0.25s ease;
}
.ah-plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(255, 123, 0, 0.3);
}
.ah-plan.featured {
  border: 2px solid var(--ah-accent);
  transform: scale(1.05);
}
.ah-plan h3 {
  color: var(--ah-accent);
  margin-bottom: 10px;
}
.ah-plan .price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.ah-plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}
.ah-plan ul li {
  margin: 6px 0;
}

/* === Vorteile === */
.ah-benefits {
  background: #0b1120;
  padding: 80px 20px;
  text-align: center;
}
.ah-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 Spalten auf Desktop */
  gap: 24px;
  margin-top: 30px;
  justify-items: center;
}
.ah-benefit-grid .benefit {
  background: var(--ah-box);
  padding: 22px;
  border-radius: var(--ah-radius);
  width: 100%;
  max-width: 260px;
  box-shadow: 0 0 10px rgba(255,123,0,0.1);
  transition: all 0.25s ease;
}
.ah-benefit-grid .benefit:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(255, 123, 0, 0.2);
}
.ah-benefit-grid i {
  font-size: 1.6rem;
  color: var(--ah-accent);
  margin-bottom: 10px;
}


/* News */
.ah-news {
  background: #0f172a;
  padding: 70px 20px;
}
.ah-news h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--ah-accent);
}
.ah-news-item {
  max-width: 700px;
  margin: 0 auto 40px;
  background: var(--ah-box);
  padding: 20px;
  border-radius: var(--ah-radius);
}
.ah-news-item h3 {
  margin-bottom: 8px;
  color: #fff;
}
