﻿/* ==========================================================================
   RESET & GRUNDEINSTELLUNGEN (global, nur noch einmal definiert)
   ========================================================================== */
   
/* Design für den Sprachumschalter */
.lang-switcher { 
    margin-bottom: 30px; 
}

.lang-btn { 
    padding: 8px 12px; 
    margin-right: 5px; 
    cursor: pointer; 
    border: 1px solid #ccc; 
    background: #fff; 
    border-radius: 4px; 
    font-family: sans-serif;
}

/* So sieht der Button der aktuell gewählten Sprache aus */
.lang-btn.active { 
    background: #007bff; 
    color: white; 
    border-color: #007bff; 
}
/* Testcode für Sprachauswahl */   
   
   
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #ffffff;
    line-height: 1.6;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #111;
}

p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    color: #444;
}

ul {
    font-size: 1.15rem;
    margin-bottom: 20px;
    padding-left: 20px;
    color: #444;
}

li {
    margin-bottom: 10px;
}

.auto-style2 {
    text-align: center;
}
.auto-style3 {
    color: #000000;
}


/* ==========================================================================
   NAVIGATION / HEADER (global, einmal definiert)
   ========================================================================== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    position: relative;
}

.brand-area {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

.brand-text {
    font-size: 1.6rem;
    font-weight: bold;
    color: #000000;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-item a {
    text-decoration: none;
    color: #333;
    padding: 10px 20px;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-item a:hover {
    color: #007bff;
}

.btn-nav-active {
    background: #007bff;
    color: #fff !important;
    padding: 10px 25px !important;
    border-radius: 5px;
    font-weight: bold;
    margin-left: 20px;
    text-decoration: none;
}

#menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    cursor: pointer;
    padding: 10px;
    font-size: 1.8rem;
    font-weight: bold;
}


/* ==========================================================================
   HAUPTINHALT - gemeinsamer Rahmen
   ========================================================================== */
.main-content {
    margin-top: 140px;
    padding: 20px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2rem;
}

.info-container {
    width: 80%;
    margin: 0 auto;
    max-width: 800px;
}


/* ==========================================================================
   STARTSEITE (index.html) - Hero & Kachel-Bereich
   ========================================================================== */
.section-container {
    width: 60%;
    margin: 0 auto;
    text-align: center;
}

.welcome-text {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.15rem;
}

.btn-spende {
    display: inline-block;
    background: #ffc107;
    color: #212529;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 50px;
    transition: background 0.3s;
}

.btn-spende:hover {
    background: #e0a800;
}

.img-koffer {
    width: 30% !important;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    display: block;
}

.features-section {
    background: #f8f9fa;
    padding: 60px 0;
    margin-top: 60px;
}

.link-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border: 1px solid #eee;
}

.link-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #111;
}

.link-card .card-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-card {
    display: block;
    text-align: center;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1rem;
}

.img-kachel {
    width: 80%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    margin: 0 auto 20px auto;
    display: block;
}

.features-section .grid-container {
    width: 80%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}


/* ==========================================================================
   ANGEBOTE-SEITE (angebote.html) - Produkt-Raster
   FIX: feste Spaltenzahl (statt auto-fit) + quadratische Kacheln
   ========================================================================== */
.main-content > .grid-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* feste Anzahl statt auto-fit */
    gap: 20px;
}

.article-card {
    aspect-ratio: 1 / 1;                     /* macht die Kachel quadratisch */
    background: #ffffff;
    padding: 14px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border: 1px solid #eee;
    overflow: hidden;                        /* verhindert Ãœberlauf durch lange Texte */
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

/* Bildklasse, die die Artikel-Bilder tatsÃ¤chlich verwenden */
.auto-style4 {
    width: 100%;
    height: 55%;              /* feste Höhe -> Karte bleibt quadratisch */
    max-width: 100%;
    object-fit: contain;        /* bei cover füllt die Fläche sauber statt Originalgröße zu zeigen /contain zoomt rein */
    border-radius: 4px;
    margin: 0 auto 8px auto;
    display: block;
}

.article-card .card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111;
    text-align: left;
    line-height: 1.3;
}

.article-card .card-text {
    font-size: 0.8rem;
    color: #555;
    line-height: 1.4;
    margin-bottom: 8px;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;    /* Text auf 2 Zeilen begrenzen, sonst sprengt er das Quadrat */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-shop {
    display: block;
    text-align: center;
    background: #007bff;
    color: white;
    text-decoration: none;
    padding: 7px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.8rem;
}

/*Tabelle Seite 7 Werte */
/* ==========================================================================
   TABELLE SEITE 7 WERTE (Isoliert - korrigiert am 26.09.2026)
   ========================================================================== */

/* Zentriert die Tabelle auf der Seite, ohne das globale Website-Layout zu stören */
.table-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
    max-width: 1100px;
    width: 100%;
    margin: 20px auto; /* Zentriert den Container auf der Seite */
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    margin: 0;
}

.table-container caption {
    font-size: 1.4rem;
    font-weight: bold;
    padding: 20px;
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
}

.table-container th {
    background-color: #2c3e50;
    color: #fff;
    font-weight: 600;
    padding: 14px 18px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    width: 25%;
}

.table-container td {
    padding: 12px 18px;
    border-bottom: 1px solid #bdc3c7;
    vertical-align: top;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* --- Graustufen-Bereiche --- */
.table-container .liquide-row td {
    background-color: #f2f4f4;
    color: #333;
}

.table-container .teilweise-row td {
    background-color: #d5dbdb;
    color: #232b2b;
}

.table-container .illiquide-row td {
    background-color: #707b7c;
    color: #ffffff;
}

.table-container .illiquide-row .info-text {
    color: #e5e8e8;
}

/* Erste Spalte (Liquidität) zentrieren und abtrennen */
.table-container .liquidity-cell {
    font-weight: bold;
    border-right: 2px solid #bdc3c7;
    vertical-align: middle;
    text-align: center;
}

.table-container .empty-cell {
    color: #7f8c8d;
    font-style: italic;
    opacity: 0.5;
}

.table-container .info-text {
    font-size: 0.85rem;
    color: #566573;
    display: block;
    margin-top: 4px;
}

/* RESPONSIVE DESIGN (Für Smartphones unter 768px) */
@media screen and (max-width: 768px) {
    .table-container thead {
        display: none;
    }
    
    .table-container table, 
    .table-container tbody, 
    .table-container tr, 
    .table-container td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .table-container .empty-cell {
        display: none;
    }

    .table-container tr {
        margin-bottom: 20px;
        border: 2px solid #34495e;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    }

    .table-container .liquidity-cell {
        text-align: center;
        font-size: 1.05rem;
        padding: 10px 20px;
        border-right: none;
        border-bottom: 2px solid #34495e;
    }

    .table-container .liquidity-cell::before {
        display: none !important;
    }

    .table-container td:not(.liquidity-cell) {
        border: none;
        padding: 12px 20px;
        position: relative;
        padding-left: 45%;
        text-align: left;
    }

    .table-container td:not(.liquidity-cell)::before {
        content: attr(data-label);
        position: absolute;
        left: 20px;
        width: 40%;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }

    .table-container .liquide-row td::before, 
    .table-container .teilweise-row td::before { 
        color: #34495e; 
    }
    
    .table-container .illiquide-row td::before { 
        color: #ebf5fb; 
    }
    
    .table-container td:not(:last-child) {
        border-bottom: 1px dashed rgba(0,0,0,0.1);
    }
    
    .table-container .illiquide-row td:not(:last-child) {
        border-bottom: 1px dashed rgba(255,255,255,0.2);
    }
}
/* ==========================================================================
   RISIKOTABELLE (Isoliert & passend gestylt)
   ========================================================================== */
.risk-table-container {
    margin-top: 40px; /* Schön viel Abstand nach oben */
}

.risk-table th {
    background-color: #1a252f; /* Leicht anderer, edler Dunkelton als Trennung */
}

/* Zebra-Streifen für die Zeilen zur besseren Lesbarkeit */
.risk-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.risk-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

/* Erste Spalte hervorheben */
.risk-table .asset-name {
    font-weight: bold;
    color: #111;
}

/* Farbliche Codierung für Erträge (Dezent im Text eingebaut) */
.risk-table .badge-good { color: #28a745; font-weight: 600; }
.risk-table .badge-high { color: #007bff; font-weight: 600; }
.risk-table .badge-low { color: #6c757d; }
.risk-table .badge-none { color: #ba1a1a; font-style: italic; }

/* Farbliche Codierung für Risiken */
.risk-table .risk-high { color: #ba1a1a; font-weight: 600; }
.risk-table .risk-medium { color: #d4ac0d; font-weight: 600; }
.risk-table .risk-low { color: #28a745; }

/* RESPONSIVE DESIGN (Für Smartphones unter 768px) */
@media screen and (max-width: 768px) {
    .risk-table-container thead {
        display: none;
    }
    
    .risk-table-container table, 
    .risk-table-container tbody, 
    .risk-table-container tr, 
    .risk-table-container td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .risk-table-container tr {
        margin-bottom: 20px;
        border: 2px solid #1a252f;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        background: #fff;
    }

    /* Das erste Element (Anlageform) wird oben auf dem Smartphone als Header fixiert */
    .risk-table-container .asset-name {
        background-color: #1a252f;
        color: #ffffff !important;
        text-align: center;
        font-size: 1.1rem;
        padding: 10px 20px;
    }
    .risk-table-container .asset-name::before {
        display: none !important;
    }

    .risk-table-container td:not(.asset-name) {
        border: none;
        padding: 12px 20px;
        position: relative;
        padding-left: 40%;
        text-align: left;
        border-bottom: 1px dashed rgba(0,0,0,0.08);
    }

    .risk-table-container td:not(.asset-name)::before {
        content: attr(data-label);
        position: absolute;
        left: 20px;
        width: 35%;
        font-weight: bold;
        color: #555;
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}


/* ==========================================================================
   KONTAKTFORMULAR (index.html) - Modernisiert & Benutzerfreundlich
   ========================================================================== */
.contact-section {
    background: #f8f9fa; /* Dezenter Hintergrundwechsel zur Abhebung */
    padding: 80px 0;
    border-top: 1px solid #e0e0e0;
}

.form-container {
    width: 80%;
    margin: 0 auto;
    max-width: 600px;
    background: #ffffff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* Schwebender Look wie bei den Tabellen */
    border: 1px solid #eee;
}

.form-group {
    margin-bottom: 24px; /* Mehr Platz zwischen den Eingabefeldern */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50; /* Passend zum dunklen Ton der Tabellenköpfe */
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
    color: #333;
    background-color: #fcfcfc;
    transition: all 0.3s ease; /* Weicher Übergang beim Reinklicken */
}

/* Stilvoller Fokus-Effekt: Wenn der Nutzer in ein Feld klickt */
.form-control:focus {
    border-color: #007bff; /* Nutzt dein Marken-Blau */
    background-color: #ffffff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15); /* Sanfter blauer Schein */
}

/* Spezifisches Styling für das Textfeld (Nachricht) */
textarea.form-control {
    min-height: 150px;
    resize: vertical; /* Erlaubt dem Nutzer nur vertikales Vergrößern */
}

.btn-submit {
    width: 100%;
    background: #28a745; /* Solides Grün */
    color: white;
    border: none;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.15);
    transition: all 0.2s ease;
}

/* Effekt beim Darüberfahren (Hover) und Klicken (Active) */
.btn-submit:hover {
    background: #218838;
    transform: translateY(-1px); /* Bewegt sich dezent nach oben */
    box-shadow: 0 5px 12px rgba(40, 167, 69, 0.2);
}

.btn-submit:active {
    background: #1e7e34;
    transform: translateY(1px); /* Drückt sich optisch nach unten */
}

/* Smartphone-Optimierung */
@media (max-width: 768px) {
    .contact-section {
        padding: 50px 0;
    }
    .form-container {
        width: 95%;
        padding: 25px 20px;
    }
}
/* Versteckt das Honeypot-Feld absolut sicher vor menschlichen Augen */
.form-group-hp {
    display: none !important;
    visibility: hidden !important;
}


/* ==========================================================================
   LINKS-SEITE (page8.html) - 3 Spalten Wichtig / Lustig / Interessant
   ========================================================================== */
.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.link-column {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
}

.link-column h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #000;
}

.link-column.column-wichtig {
    border-left: 4px solid #FF0000;
}

.sub-info {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    margin-bottom: 8px;
    color: #000;
}

.link-list a {
    color: #000;
    text-decoration: underline;
}

.notruf-box {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px dashed #FF0000;
}

.notruf-box h3 {
    color: #FF0000;
    margin-bottom: 8px;
    font-size: 1rem;
}

.notruf-box ul {
    list-style: square;
    padding-left: 20px;
}


/* ==========================================================================
   FOOTER (global, einmal definiert)
   ========================================================================== */
footer {
    background: #222;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 60px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    margin: 0 15px;
    font-weight: inherit; !important; 
}

.footer-links a:hover {
    color: #fff;
}

#btn-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    font-size: 1.2rem;
    border: none;
    outline: none;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.3s;
}

#btn-top:hover {
    background-color: #0056b3;
}


/* ==========================================================================
   SMARTPHONE-ANPASSUNG (global)
   FIX: .grid-container wird hier NICHT mehr pauschal auf 1fr gezwungen -
   das Artikel-Grid bekommt stattdessen eigene, gestufte Breakpoints weiter unten.
   ========================================================================== */
@media (max-width: 992px) {
    .nav-container,
    .section-container,
    .form-container,
    .info-container {
        width: 90%;
    }

    .features-section .grid-container {
        grid-template-columns: 1fr;
    }

    .img-koffer {
        width: 60% !important;
    }

    .menu-icon {
        display: block;
        color: #333;
    }

    h1 {
        font-size: 1.8rem !important;
    }

    p, li {
        font-size: 1rem !important;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: #ffffff;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-item {
        width: 100%;
        text-align: center;
        margin: 10px 0;
    }

    .btn-nav-active {
        margin-left: 0;
        display: inline-block;
    }

    #menu-toggle:checked ~ .nav-menu {
        display: flex;
    }
}

/* Eigene, gestufte Breakpoints nur fÃ¼r das Artikel-Grid */
@media (max-width: 1200px) {
    .main-content > .grid-container {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 700px) {
    .main-content > .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 420px) {
    .main-content > .grid-container {
        grid-template-columns: 1fr;
    }
}

.info-container table.auto-style2 {
    border-style: solid;
    border-width: 1px;
    background-color: #CCCCCC;
}
.info-container table.auto-style2 td {
    text-align: left;
    vertical-align: top;
}
