/* Webhosting-spezifische Styles */

/* Hero Section */
.pricing-hero {
    background: var(--gradient-subtle);
    padding: 140px 0 60px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-hero .subtitle {
    font-size: 1.3rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

/* Logo Image */
.logo-image {
    width: 100%;
    height: auto;
    max-width: 40px;
}

/* Pricing Section */
.pricing-section {
    padding: 60px 0;
    background: white;
}

.pricing-table {
    overflow-x: auto;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--gray-200);
    max-width: 900px; /* Noch schmaler */
    position: relative;
    z-index: 0; /* Basis z-index für Tabelle */
}

.pricing-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.8rem; /* Kleinere Schrift */
    table-layout: fixed; /* Gleichmäßige Spaltenverteilung */
}

/* Gleichmäßige Spaltenbreiten */
.pricing-table th:first-child,
.pricing-table td:first-child {
    width: 20%; /* Feature-Spalte */
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
    width: 11.43%; /* 7 Spalten à ~11.43% = 80% */
}

/* Header-Zeile - einheitliche Farbe */
.header-row {
    background: var(--primary-color) !important;
}

.pricing-table th {
    padding: 0.8rem 0.4rem; /* Kompaktere Padding */
    font-weight: 600;
    text-align: center;
    border: none;
    position: sticky;
    top: 0;
    vertical-align: middle;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--primary-color) !important;
    color: white;
    z-index: 10;
}

.pricing-table th:last-child {
    border-right: none;
}

.feature-header {
    text-align: left !important;
    padding-left: 1rem !important;
    font-size: 0.9rem;
}

.plan-header {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Tabellen-Zellen */
.pricing-table td {
    padding: 0.6rem 0.4rem; /* Kompaktere Padding */
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
    vertical-align: middle;
    border-right: 1px solid var(--gray-200);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pricing-table td:last-child {
    border-right: none;
}

/* Feature-Zellen (erste Spalte) */
.feature-cell {
    text-align: left !important;
    font-weight: 500;
    background: var(--gray-100);
    padding-left: 1rem !important;
    color: var(--primary-color);
    position: relative;
    overflow: visible; /* Wichtig für Tooltips */
}

/* Info-Icon Styles - am Zeilenanfang */
.info-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 10px;
    line-height: 14px;
    cursor: help;
    font-weight: bold;
    position: relative;
    vertical-align: middle;
    font-style: normal;
    transition: all 0.3s ease;
    margin-right: 6px;
    flex-shrink: 0;
    z-index: 2000; /* Hoher z-index für Icon */
}

.feature-name {
    display: inline-block;
    font-size: 0.8rem;
}

//.info-icon:hover {
//    background: var(--primary-color);
//    transform: scale(1.1);
//    z-index: 1001; /* Noch höher beim Hover */
//}

 .info-icon:hover {
     background: var(--primary-color);
     position: relative; /* <- NEU: macht z-index wirksam, Tooltip über Header */
     transform: scale(1.1);
     z-index: 2000; /* Noch höher beim Hover */
}


/* Tooltip für Info-Icons - hoher z-index */
.info-icon:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 20px;
    left: 18px;
    background: var(--dark-color);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: normal;
    white-space: normal;
    z-index: 9999; /* Sehr hoher z-index */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 180px;
    max-width: 250px;
    text-align: left;
    line-height: 1.3;
   // pointer-events: none; /* Verhindert Interferenz */
}

.info-icon:hover::before {
    content: '';
    position: absolute;
    bottom: 14px;
    left: 22px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--dark-color);
    z-index: 10000; /* Höchster z-index */
   // pointer-events: none;
}

/* Hover-Effekte für Zeilen */
.pricing-table tr:hover {
    background: var(--gray-50) !important;
    z-index: 5;
}

.pricing-table tr:hover .feature-cell {
    background: var(--gray-200) !important;
}

/* Kategorie-Zeilen */
.category-row {
    background: var(--gray-50) !important;
}

.category-row td {
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    background: var(--gray-50) !important;
    font-size: 0.85rem;
    padding: 0.8rem 0.4rem;
}

/* Feature-Status - normale Textfarbe */
.feature-check {
    color: var(--primary-color); /* Normale Textfarbe statt grün */
    font-weight: 500;
}

.feature-cross {
    color: var(--gray-500); /* Etwas dunkler als vorher */
    font-weight: 500;
}

/* Preis-Zeile */
.price-row {
    background: var(--light-color) !important;
    font-weight: 700;
    font-size: 0.9rem;
}

.price-row td {
    padding: 1rem 0.4rem;
    background: var(--light-color) !important;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
}

.price-label {
    background: var(--primary-color) !important;
    color: white !important;
}

/* Bestell-Buttons */
.cta-buttons {
    padding: 0.6rem 0.3rem !important;
    background: white !important;
}

.cta-button {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.cta-button:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: var(--shadow-light);
}

.order-label {
    text-align: center !important;
    font-weight: 600;
    background: var(--gray-100) !important;
    color: var(--primary-color);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-tech);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Garantie-Section */
.guarantee-section {
    background: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    margin: 3rem 0;
    border-radius: 12px;
}

.guarantee-section h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Fußnoten */
.footnotes {
    background: var(--gray-100);
    padding: 2rem;
    border-radius: 8px;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.footnotes h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footnotes p {
    margin-bottom: 0.5rem;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .pricing-table {
        font-size: 0.75rem;
        max-width: 95%;
    }
    
    .info-icon:hover::after {
        min-width: 150px;
        max-width: 200px;
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .pricing-table {
        font-size: 0.7rem;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 0.4rem 0.2rem;
    }

    .pricing-hero h1 {
        font-size: 2.2rem;
    }
    
    .info-icon {
        width: 12px;
        height: 12px;
        font-size: 9px;
        line-height: 12px;
    }
    
    .info-icon:hover::after {
        min-width: 120px;
        max-width: 160px;
        font-size: 10px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .pricing-table {
        font-size: 0.65rem;
    }
    
    .info-icon:hover::after {
        min-width: 100px;
        max-width: 140px;
    }
}
/* 2) Zellen: nichts abschneiden (nur dort, wo Tooltip sitzt) */
.pricing-table td.feature-cell {
  overflow: visible;      /* sicherstellen; steht bereits, hier nochmal explizit */
  position: relative;     /* Referenz für Tooltip */
  z-index: 1;
}

/* 3) Sticky-Header moderat halten */
.pricing-table th {
  z-index: 2;             /* war hoch, reicht so */
}

/* 4) Tooltip garantiert ganz oben */
.info-icon,
.info-icon::after,
.info-icon::before {
  z-index: 10000;
}

/* optional: nur im Hover-Fall maximieren */
.info-icon:hover,
.info-icon:hover::after,
.info-icon:hover::before {
  z-index: 10001;
}

/* Preis-Label im Grundzustand klar lesbar machen */
.pricing-table td.feature-cell.price-label,
.pricing-table td.feature-cell.price-label .label {
  color: #fff;     /* kontrastreicher auf hellem Hintergrund */
  opacity: 1;      /* nicht ausgegraut */
  font-weight: 600;
}

/* Falls irgendwo Opazität über Zeilen-Hover reduziert wird – das Label ausnehmen */
.pricing-table tr:not(:hover) td.feature-cell.price-label,
.pricing-table tr td.feature-cell.price-label {
  opacity: 1; /* Sicherheitshalber doppelt festlegen */
}

/* Optional: Wenn beim Hover eine Farbe gesetzt wird, soll sie den Grundzustand nicht aufhellen */
.pricing-table td.feature-cell.price-label:hover,
.pricing-table td.feature-cell.price-label:hover .label {
  color: inherit;  /* bleibt gleich, kein Aufhell-Effekt nötig */
}
/* Linke Spalte schmaler + Icon-Layout */
.tld-col { 
  width: 200px;           /* etwas schmaler; bei Bedarf 180–220 anpassen */
  max-width: 220px;
}

.feature-cell.tld-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;    /* TLD + Icon in einer Zeile */
}

.tld-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
  filter: none;           /* sicherheitshalber: keine globalen Filter */
}

/* auf kleineren Screens etwas flexibler */
@media (max-width: 768px) {
  .tld-col { width: 160px; max-width: 180px; }
}

/* Tooltip-Stapelhöhe erzwingen */
.pricing-table, .pricing-table table { position: relative; z-index: 1; }
.info-icon { position: relative; z-index: 9999; }
