/* Globales Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

/* CSS-Variablen für konsistente Farben und Schriftarten */
:root {
    --nav-side-width: 200px; /* Breite der seitlichen Navigation */
    --nav-top-height: 50px; /* Höhe der oberen Navigation */
    --primary-color: #5A8261; /* Grün */
    --primary-hover: #4B7051; /* Dunkleres Grün */
    --background-color: #f4f4f9; /* Hellgrau */
    --text-color: #333333; /* Dunkelgrau */
    --header-bg: var(--primary-color);
    --header-text: #ffffff;
    --footer-bg: var(--primary-color);
    --footer-text: #ffffff;
    --button-padding: 10px 20px;
    --button-border-radius: 5px;
    --modal-bg: #fefefe;
    --modal-overlay: rgba(0, 0, 0, 0.4);
    --action-icon-color: var(--primary-color);
    --delete-color: #d9534f; /* Rot */
    --delete-hover-color: #c9302c; /* Dunkleres Rot */
    --tile-padding: 20px;
    --tile-border-radius: 10px;
    --tile-gap: 20px;
    --heading-font-size: 2em;
    --paragraph-font-size: 1em;
    --icon-font-size: 1.8em;
}

/* Body Styles */
body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navigation Container */
.nav-container {
    background-color: var(--header-bg);
    color: var(--header-text);
    transition: all 0.3s ease;
    position: fixed;
    z-index: 1000; /* Höherer z-index, damit die Navigation oben bleibt */
    top: 0;
    left: 0;
    height: 100vh; /* Volle Höhe */
}

/* Seitliche Navigation */
.nav-side {
    width: var(--nav-side-width);
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

/* Obere Navigation (falls verwendet) */
.nav-top {
    width: 100%;
    height: var(--nav-top-height);
    display: flex;
    align-items: center; /* Vertikale Zentrierung der Icons */
    padding: 0 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Navigation Links */
.nav-icons {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    margin: 0;
    width: 100%;
}

.nav-top .nav-icons {
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

/* Navigation Links Styling */
.nav-icons li a {
    color: var(--header-text);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    padding: 10px 15px;
}

.nav-icons li a:hover,
.nav-icons li a.active {
    color: #ddd;
}

/* Einheitliche Icon-Größe */
.nav-icons li a.startseite i,
.nav-icons li a.immo_check i,
.nav-icons li a.portfolio i {
    font-size: 1.2em;
}

/* User Info */
#user-info {
    font-size: 14px;
    padding: 10px 20px;
    text-align: center;
    margin-top: auto; /* Push to bottom in nav-side */
}

/* Main Content */


/* Anpassung des Hauptbereichs bei oberer Navigation */
.nav-container.nav-top ~ main {
    margin-left: 0;
    margin-top: var(--nav-top-height);
    width: 100%;
}

/* Anpassung des Hauptbereichs bei seitlicher Navigation */
.nav-container.nav-side ~ main {
    margin-left: var(--nav-side-width);
    margin-top: 0;
    width: calc(100% - var(--nav-side-width)); /* Volle Breite abzüglich der Navigationsbreite */
}

/* Überschrift hinzufügen */
main h1 {
    font-family: 'Roboto', sans-serif;
    font-size: var(--heading-font-size);
    margin-bottom: 20px;
    color: var(--text-color);
    margin-top: 0; /* Entfernt den oberen Abstand */
}



/* Buttons */
#viewToggleButton,
#columnSettingsButton {
    margin: 10px;
    padding: var(--button-padding);
    font-size: 0.9em;
    cursor: pointer;
    background-color: var(--primary-color);
    color: var(--header-text);
    border: none;
    border-radius: var(--button-border-radius);
    transition: background-color 0.3s;
}

#viewToggleButton:hover,
#columnSettingsButton:hover {
    background-color: var(--primary-hover);
}

/* Icons-Ansicht */
.icons-view {
    display: flex; /* Flexbox für horizontale Anordnung */
    flex-wrap: wrap; /* Zeilenumbrüche ermöglichen */
    gap: var(--tile-gap);
    padding: 20px;
    justify-content: flex-start; /* Links ausrichten */
}

/* Kacheln */
.icon-container {
    position: relative; /* Für die Positionierung des Delete-Icons */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: var(--tile-border-radius);
    padding: var(--tile-padding);
    background-color: #34495E; /* Dunkelblau */
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s;
    width: calc(25% - var(--tile-gap)); /* Vier Kacheln pro Reihe */
    min-width: 150px; /* Mindestbreite für kleinere Bildschirme */
    overflow: hidden; /* Verhindert Überlappen von inneren Elementen */
}

.icon-container:hover {
    background-color: var(--primary-color); /* Grün beim Hover */
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

main p {
    margin-bottom: 30px;
}

/* Delete-Icon in der Kachel */
.icon-container .delete-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--delete-color);
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 5px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.icon-container .delete-icon:hover {
    background: rgba(255, 255, 255, 0.4);
    color: var(--delete-hover-color);
}

/* Beispiel-Icon Styling */
.house-icon {
    width: 80px;
    height: 80px;
    background-color: transparent; /* Hintergrund transparent, Farbe vom Container */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 10px;
}

.house-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.kuerzel {
    position: absolute;
    bottom: 8px;
    font-size: 12px;
}

.icon-container p {
    color: #ffffff;
    text-decoration: none;
    margin: 0;
    padding: 5px 0 0 0;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
}


.action-icon {
    font-size: 1.2em;
    color: var(--action-icon-color);
    transition: color 0.3s;
    margin-right: 10px;
    cursor: pointer;
}

.action-icon:hover {
    color: var(--primary-hover); /* Grün beim Hover */
}

.delete-icon {
    color: var(--delete-color);
    cursor: pointer;
    transition: color 0.3s;
}

.delete-icon:hover {
    color: var(--delete-hover-color);
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1001; /* Höher als Navigation */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-overlay);
    padding-top: 0; /* Removed excessive padding */
}

.modal-content {
    background-color: var(--modal-bg);
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    overflow-y: auto;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: black;
}

.modal-button {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.delete-button {
    background-color: var(--delete-color);
}

.delete-button:hover {
    background-color: var(--delete-hover-color);
}

.modal-input {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    box-sizing: border-box;
}

/* Draggable Columns */
.draggable {
    cursor: move;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-side {
        width: 150px;
    }

    .nav-container.nav-side ~ main {
        margin-left: 150px;
        width: calc(100% - 150px);
    }

    .icon-container {
        width: calc(33.333% - var(--tile-gap)); /* Drei Kacheln pro Reihe */
    }
}


/* Link Styles in Icons View */
.icons-view a {
    text-decoration: none;
    color: inherit;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 20px;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    margin-top: auto; /* Push footer to bottom */
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0 0;
}

footer ul li {
    display: inline;
    margin: 0 10px;
}

footer ul li a {
    color: var(--footer-text);
    text-decoration: underline;
    font-size: 0.9em;
}

footer ul li a:hover {
    text-decoration: none;
}

/* Settings Interface */
.settings {
    margin: 20px 0;
    text-align: left;
}

.settings h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.settings label {
    display: block;
    margin-bottom: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
}

.column-label {
    display: block;
    margin-bottom: 8px;
}
/* Container für Aktions-Icons */
.action-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Allgemeine Stile für Aktions-Icons */
.action-icons button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Spezifische Farben für verschiedene Aktionen */
.action-icons button.info {
    background-color: rgba(52, 152, 219, 0.2); /* Blau für Details */
    color: #3498db;
}

.action-icons button.edit {
    background-color: rgba(46, 204, 113, 0.2); /* Grün für Bearbeiten */
    color: #2ecc71;
}

.action-icons button.delete {
    background-color: rgba(231, 76, 60, 0.2); /* Rot für Löschen */
    color: #e74c3c;
}

.action-icons button.chart {
    background-color: rgba(155, 89, 182, 0.2); /* Lila für Diagramm */
    color: #9b59b6;
}

/* Hover-Effekt für Aktions-Icons */
.action-icons button:hover {
    transform: scale(1.1);
    background-color: rgba(0, 0, 0, 0.1);
}

/* Spezifische Hover-Farben für verschiedene Aktionen */
.action-icons button.info:hover {
    background-color: rgba(52, 152, 219, 0.4);
}

.action-icons button.edit:hover {
    background-color: rgba(46, 204, 113, 0.4);
}

.action-icons button.delete:hover {
    background-color: rgba(231, 76, 60, 0.4);
}

.action-icons button.chart:hover {
    background-color: rgba(155, 89, 182, 0.4);
}

/* Größe der Icons */
.action-icons button i {
    font-size: 1.2em;
}

/* Responsive Anpassungen für kleinere Bildschirme */
@media (max-width: 768px) {
    .action-icons button {
        padding: 6px;
    }

    .action-icons button i {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .action-icons button {
        padding: 4px;
    }

    .action-icons button i {
        font-size: 0.9em;
    }
}

/* ========================================
   INVESTOR/FEATURES CARDS - SHARED STYLES
   ======================================== */

/* Section Container */
.investor-usecases-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f4f4f9 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.investor-usecases-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(90, 130, 97, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Section Titles */
.investor-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.investor-section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

/* Feature Cards */
.investor-feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(90, 130, 97, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.investor-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #5A8261, #4B7051);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.investor-feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(90, 130, 97, 0.2);
    border-color: #5A8261;
}

.investor-feature-card:hover::before {
    transform: scaleX(1);
}

.investor-feature-card:hover .investor-feature-icon {
    background: linear-gradient(135deg, #5A8261, #4B7051);
    transform: rotate(360deg) scale(1.1);
}

.investor-feature-card:hover .investor-feature-icon i {
    color: #ffffff;
}

/* Feature Icons */
.investor-feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(90, 130, 97, 0.1), rgba(90, 130, 97, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.investor-feature-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed rgba(90, 130, 97, 0.3);
    animation: rotate-border 10s linear infinite;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.investor-feature-icon i {
    font-size: 2rem;
    color: #5A8261;
    transition: all 0.4s ease;
    z-index: 1;
    position: relative;
}

/* Card Titles */
.investor-card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 15px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Card Descriptions */
.investor-card-description {
    font-size: 0.95rem;
    color: #666666;
    line-height: 1.6;
    text-align: center;
}

/* Unique hover effects for numbered cards */
.investor-card-1:hover .investor-feature-icon::after {
    border-color: #5A8261;
}

.investor-card-2:hover .investor-feature-icon::after {
    border-color: #4B7051;
}

.investor-card-3:hover .investor-feature-icon::after {
    border-color: #5A8261;
}

.investor-card-4:hover .investor-feature-icon::after {
    border-color: #4B7051;
}

/* Additional decorative element */
.investor-decoration {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(90, 130, 97, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

/* Dark mode support */
.dark-mode .investor-section-title {
    color: #ecf0f1;
}

.dark-mode .investor-feature-card {
    background: #34495e;
    color: #ecf0f1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.dark-mode .investor-feature-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

.dark-mode .investor-card-title {
    color: #ecf0f1;
}

.dark-mode .investor-card-description {
    color: #bdc3c7;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .investor-section-title {
        font-size: 2rem;
    }
    
    .investor-feature-card {
        margin-bottom: 20px;
    }
    
    .investor-card-title {
        font-size: 1.1rem;
        min-height: auto;
    }
}

