/* General Layout Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.w-container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.calculator-section {
    padding: 40px 25px;
    background-color: #ffffff;
    max-width: 1200px;
    margin: 50px auto;
    border-radius: 20px;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.1);
}

/* Header-Bereich */
.header-container {
    text-align: center;
    background: linear-gradient(to bottom, #c4c4c4, #ffffff);
    /* Passender Farbverlauf */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

/* Dekoratives Element (aktive Bewegung im Hintergrund) */
.header-container::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #4dafff, transparent);
    opacity: 0.5;
    animation: moveOrb 6s infinite ease-in-out;
}

.header-container::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, #ffe600, transparent);
    opacity: 0.5;
    animation: moveOrbReverse 6s infinite ease-in-out;
}

@keyframes moveOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }
}

@keyframes moveOrbReverse {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

/* Haupttitel */
.calculator-title {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: clamp(1.6rem, 6vw, 2.8rem);
    font-weight: bold;
    color: #002b6a;
    /* Dunkleres Blau passend zum Logo */
    margin: 0;
}

.akis-logo {
    height: 50px;
    width: auto;
    animation: logoBounce 2s infinite ease-in-out;
    /* Dynamischer Bounce-Effekt */
}

/* Titel-Text */
.title-text {
    font-size: clamp(1.4rem, 6vw, 2.8rem);
    font-weight: bold;
    color: #003d99;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #0061c2, #8fb3cd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    word-break: break-word;
}

/* Untertitel */
.calculator-subtitle {
    font-size: 1.2rem;
    color: #4d648d;
    margin-top: 10px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Logo unten */
.logo-container {
    display: flex;
    justify-content: flex-end;
    /* Logo am rechten unteren Rand ausrichten */
    align-items: center;
    padding: 15px;
    margin-top: 20px;
    position: relative;
    /* Damit das Logo nicht scrollt */
}

.logo-small {
    height: 40px;
    /* Kleinere Logo-Größe */
    width: auto;
    opacity: 0.8;
    /* Etwas dezenter */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-small:hover {
    opacity: 1;
    transform: scale(1.1);
    /* Kleiner Hover-Effekt */
}

/* Trennlinie (optional für weiteren visuellen Akzent) */
.header-divider {
    height: 3px;
    background: linear-gradient(to right, #0056b3, #00aaff);
    /* Farbverlauf */
    border-radius: 3px;
    margin-top: 15px;
}

/* Input Fields */
.w-input,
.calculator-wrapper textarea,
.calculator-wrapper input,
.calculator-wrapper select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #fafafa;
}

.w-input:focus,
.calculator-wrapper textarea:focus,
.calculator-wrapper input:focus,
.calculator-wrapper select:focus {
    border-color: #0056b3;
    box-shadow: 0px 4px 10px rgba(0, 86, 179, 0.1);
    outline: none;
}

.w-input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    color: #6c757d;
}

textarea.w-input,
textarea {
    height: 150px;
    resize: none;
    overflow-y: hidden;
    box-sizing: border-box;
}

/* Button Styles */
.calculator-wrapper button,
.w-button,
button[type="button"] {
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    background-color: #007bff;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.calculator-wrapper button:hover,
.w-button:hover,
button[type="button"]:hover {
    background-color: #0056b3;
    transform: translateY(-3px);
    box-shadow: 0px 8px 15px rgba(0, 86, 179, 0.2);
}

.calculator-wrapper button:active,
.w-button:active,
button[type="button"]:active {
    transform: translateY(1px);
    box-shadow: 0px 4px 10px rgba(0, 86, 179, 0.1);
}

/* Form Step Styles */
.form-step {
    padding: 25px;
    border: 1px solid #ddd;
    border-radius: 15px;
    margin-bottom: 25px;
    background-color: #ffffff;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.05);
}

#step-0,
#step-2,
#process-selection {
    padding: 25px;
}

/* Site Titles */
.site-title {
    background-color: #f0f0f5;
    padding: 20px;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #0056b3;
    border-radius: 15px;
    text-align: center;
}

.smaller-heading {
    font-size: 1.4rem;
    margin-top: 25px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #333;
}

.form-subheading {
    margin-bottom: 15px;
}

/* Error Messages */
.error-message {
    color: #d9534f;
    font-size: 0.9rem;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
}

.error-message.active {
    display: block;
}

#email-error,
#num-users-error,
#system-select-error,
#process-error,
#annual-processes-error,
#time-per-process-error,
#hourly-wage-error,
#savings-rate-error {
    font-style: italic;
}

/* Tabelle mit abgerundeten Ecken */
.table-container {
    max-width: 100%;
    overflow: visible; /* Keine Scroll-Leisten */
    margin: 0 auto;
    border-radius: 8px; /* Abgerundete Ecken des Containers */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Schatten */
    border: 1px solid #ddd; /* Umrandung */
}

/* Tabelle */
.table-common {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px; /* Abgerundete Ecken direkt für die Tabelle */
    overflow: hidden; /* Damit der Inhalt nicht aus den Ecken herausragt */
}

/* Tabellenzellen */
.table-common th, .table-common td {
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
    color: #333;
    border: 1px solid #ddd; /* Horizontale und vertikale Trennlinien */
}

/* Kopfzeile */
.table-common thead th {
    background-color: #f0f0f5;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #003d99;
    border-top: none; /* Keine zusätzliche obere Linie */
}

/* Abgerundete Ecken für die Kopfzeile */
.table-common thead th:first-child {
    border-top-left-radius: 8px;
}

.table-common thead th:last-child {
    border-top-right-radius: 8px;
}

/* Fußzeile */
.table-common tfoot td {
    font-weight: bold;
    text-align: right;
    background-color: #ffffff; /* Weißer Hintergrund */
    color: #333;
    border-bottom: none; /* Keine untere Linie */
}

/* Abgerundete Ecken für die Fußzeile */
.table-common tfoot td:first-child {
    border-bottom-left-radius: 8px;
}

.table-common tfoot td:last-child {
    border-bottom-right-radius: 8px;
}

/* Alternierende Zeilenfarben */
.table-common tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Hover-Effekt für Tabellenreihen */
.table-common tbody tr:hover {
    background-color: #f1f1f1;
}

/* Rechtsbündige Zellen in der Spalte "Betrag" */
.table-common td.amount-column {
    text-align: right; /* Text rechtsbündig ausrichten */
    font-size: 0.9rem; /* Einheitliche Schriftgröße */
}

/* Gesamtkosten-Zelle */
.table-common tfoot td.total-row {
    font-weight: bold; /* Fettdruck */
    border-top: 3px double #003d99; /* Doppelte Linie über den Gesamtkosten */
    text-align: right; /* Rechtsbündige Ausrichtung */
    font-size: 1rem; /* Größerer Text für besseren Fokus */
    color: #333; /* Standardfarbe */
}

/* Misc Elements */
.divider {
    width: 100%;
    height: 3px;
    background-color: #ccc;
    margin: 35px 0;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3A8DFF, #60C3FF);
    cursor: pointer;
    position: relative;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.info-icon:hover {
    transform: scale(1.1) translateX(5px);
}

.info-symbol {
    color: white;
    font-size: 14px;
    font-weight: bold;
}

/* Tooltip Container */
.tooltip-text,
.tooltip-table {
    display: none;
    position: absolute;
    bottom: 130%;
    background-color: #f9f9f9;
    color: #333;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 100;
    width: 400px;
    /* Feste Breite für breitere Anzeige */
    max-width: 500px;
    /* Maximale Breite erhöhen */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    white-space: normal;
    /* Text kann umgebrochen werden */
    word-wrap: break-word;
    /* Lange Wörter werden korrekt umgebrochen */
    line-height: 1.5;
    /* Verbesserte Lesbarkeit */
    text-align: left;
    /* Textausrichtung */
}


.info-icon:hover .tooltip-text,
.info-icon:hover .tooltip-table {
    display: block;
}

/* Icon Styles */
.icon-container,
.icon-button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.icon-button svg {
    width: 24px;
    height: 24px;
    fill: #dc3545;
    transition: transform 0.2s ease;
}

.icon-button:hover svg {
    transform: scale(1.2);
}

.icon-button:focus {
    outline: none;
    box-shadow: none;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.action-buttons .edit-icon {
    color: #007bff;
}

.action-buttons .delete-icon {
    color: #dc3545;
}

/* Hover-Effekte für Aktionssymbole */
.action-buttons i {
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.action-buttons .edit-icon:hover {
    color: #0056b3;
    transform: scale(1.2);
}

.action-buttons .delete-icon:hover {
    color: #a30000;
    transform: scale(1.2);
}

/* Additional Styles for Specific IDs and Classes */
#icon-container {
    padding: 10px;
}

#process-list {
    padding: 10px;
}

#email,
#phone,
#name,
#message,
#num-users,
#category-select,
#system-select,
#system-input,
#process,
#annual-processes,
#time-per-process,
#hourly-wage,
#savings-rate {
    margin-bottom: 15px;
}

#free-input-container {
    margin-top: 10px;
    display: none;
}

/* Remove unnecessary button */
.back-button.bottom-left {
    display: none;
}

/* Remove "Zurück zu aktuellis.de" Button */
button[type="button"].back-button {
    display: none;
}

/* Lizenzüberschrift Container */
.license-container {
    display: flex;
    justify-content: flex-start; /* Gleichmäßige Verteilung, aber mit Flexibilität */
    flex-wrap: wrap;
    gap: 20px; /* Harmonischere Abstände zwischen Karten */
    margin-bottom: 30px; /* Etwas mehr Platz nach unten */
}

/* Lizenzkarte */
.license-card {
    flex: 1 1 calc(40% - 20px); /* Angepasste Breite für bessere Flexibilität */
    background-color: #ffffff;
    border: 1px solid #ddd; /* Dezenterer Rahmen */
    border-radius: 12px; /* Weichere Kanten */
    padding: 15px; /* Angenehmere Innenabstände */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Angenehmere Schattenwirkung */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Flüssigere Übergänge */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 120px; /* Erhöhte Mindesthöhe für eine stimmigere Optik */
    max-width: 320px; /* Maximale Breite etwas erhöht */
}

.license-card:hover {
    transform: translateY(-8px); /* Deutlicherer Hover-Effekt */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Kräftigerer Schatten */
    border-color: #0056b3; /* Klarere Akzentfarbe */
}

/* Stil der ausgewählten Lizenzkarte */
.license-card.selected {
    border-color: #002d80; /* Intensivere Akzentfarbe */
    background-color: #e6f3ff; /* Sanfter blauer Hintergrund */
    box-shadow: 0 8px 20px rgba(0, 45, 128, 0.3); /* Tieferer Schatten */
    transform: translateY(-5px); /* Leichterer Hover-Effekt */
    cursor: default; /* Keine Hover-Interaktion mehr */
}

/* Lizenzkarte Header */
.license-header {
    display: flex;
    justify-content: space-between; /* Preis und Titel ausgerichtet */
    align-items: center;
    margin-bottom: 10px; /* Etwas mehr Abstand */
}

.license-header h5 {
    font-size: 1.1rem; /* Etwas größere Schriftgröße */
    font-weight: bold;
    color: #002d80; /* Kräftigere Akzentfarbe */
    margin: 0;
}

.license-header .license-price {
    font-size: 1rem; /* Klarere Schriftgröße */
    font-weight: bold;
    color: #0056b3; /* Stärkerer Farbkontrast */
    margin: 0;
}

/* Lizenzkarte Inhalt */
.license-content {
    font-size: 0.85rem; /* Lesbare Schriftgröße */
    color: #444; /* Dezentes, aber klareres Grau */
    text-align: left;
    margin-top: 10px; /* Harmonischer Abstand */
    line-height: 1.5; /* Bessere Lesbarkeit */
}


/* Überschrift Design anpassen */
.license-title {
    text-align: center;
    margin-bottom: 10px; /* Weniger Abstand */
}

.license-heading {
    font-size: 1.4rem;
    color: #003d99;
    font-weight: bold;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 5px; /* Weniger Abstand zwischen Icon und Text */
}

/* Responsives Verhalten */
@media (max-width: 768px) {
    .license-card {
        flex: 1 1 100%; /* Karten nehmen auf kleinen Bildschirmen die volle Breite ein */
        max-width: none;
    }
}

.button-container {
    margin-top: 15px;
}

.cost-summary-container {
    background-color: #f9f9f9; /* Hellerer Ton für bessere Lesbarkeit */
    border: 2px solid #ddd; /* Angleichung an den Rest */
    border-radius: 10px;
    padding: 20px; /* Mehr Padding für Übersichtlichkeit */
    margin-bottom: 20px; /* Einheitlicher Abstand */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.cost-summary-container .form-subheading {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.6rem; /* Etwas größer für mehr Gewichtung */
    color: #003d99; /* Angleichung an die Haupttitel */
    display: flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
}

.cost-summary-content {
    font-size: 1rem;
    color: #333;
    line-height: 1.5;
}

.cost-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

.cost-summary-table th, .cost-summary-table td {
    padding: 10px;
    text-align: left;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #ddd;
}

.cost-summary-table th {
    background-color: #f0f0f5;
    font-weight: bold;
    font-size: 1rem;
    text-transform: uppercase;
}

.cost-summary-table tbody tr:last-child td {
    border-bottom: none;
}

.cost-summary-table tbody tr td:first-child {
    font-weight: bold;
}

.cost-summary-table td:last-child {
    text-align: right;
}

#investment-budget {
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 10px;
    background-color: #fafafa;
}

#investment-budget:focus {
    border-color: #0056b3;
    box-shadow: 0px 4px 10px rgba(0, 86, 179, 0.1);
}

.section-title {
    font-size: 1.4rem; /* Gleiche Schriftgröße wie Produktlizenz */
    color: #003d99; /* Einheitliche Akzentfarbe */
    font-weight: bold;
    text-align: center;
    display: flex;
    justify-content: left;
    align-items: left;
    gap: 8px; /* Abstand zwischen Icon und Text */
    margin-bottom: 5px; /* Weniger Abstand */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .calculator-section {
        max-width: 100%;
        margin: 30px 15px;
        padding: 30px 15px;
    }
}


@media (max-width: 576px) {
    .calculator-title {
        flex-direction: column;
    }

    .calculator-subtitle {
        font-size: 1rem;
    }

    .w-button,
    .calculator-wrapper button,
    button[type="button"] {
        font-size: 1rem;
        padding: 12px 20px;
    }

    .table-container {
        overflow-x: auto;
    }
}