/* ===== Globale Styles & Font-Definitionen ===== */

/* Font-face declarations from rombey.css */
/* Kumbh Sans - Bold 700 */
@font-face {
    font-family: 'Kumbh Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/c4mP1n92AsfhuCq6tVsaoIx1LQICk0boNoq0SjlDfnzKo-bF3mdQdpEw9r7v.woff2") format('woff2'); /* latin */
}
@font-face {
    font-family: 'Kumbh Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/c4mP1n92AsfhuCq6tVsaoIx1LQICk0boNoq0SjlDfnzKo-bF3mdQdpEw-L7vYko.woff2") format('woff2'); /* latin-ext */
}

/* Mulish - Normal 400 */
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/1Ptvg83HX_SGhgqk3wot.woff2") format('woff2'); /* latin */
}
@font-face {
    font-family: 'Mulish';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/1Ptvg83HX_SGhgqk0QotcqA.woff2") format('woff2'); /* latin-ext */
}

/* Basic Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    color: #212529; /* Standard Textfarbe */
    background-color: #f4f5fa; /* Hintergrundfarbe Seite */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}

/* ===== Header ===== */
.page-header {
    background-color: #ffffff; /* Weißer Hintergrund für Header */
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #e9ecef; /* Leichte Trennlinie */
}

.page-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    max-height: 60px; /* Höhe des Logos anpassen */
    width: auto;
    vertical-align: middle;
}

/* ===== Main Content Area ===== */
.main-content {
    flex-grow: 1;
    padding-top: 30px;
    padding-bottom: 30px;
}

.main-content .container { /* Gilt für den weißen Kasten im Content-Bereich */
     background-color: #ffffff;
     padding: 25px;
     border-radius: 4px;
     box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Leichter Schatten */
}

/* ===== Allgemeine Typografie ===== */
h1, h2, h3, h4, h5, h6 { /* Hinzugefügt: h3-h6 für Konsistenz */
    font-family: 'Kumbh Sans', sans-serif;
    color: #14284c; /* Primärfarbe für Überschriften */
    margin-bottom: 20px;
    text-align: center; /* Standardmäßig zentriert, kann pro Komponente überschrieben werden */
}
h1 {
    font-size: 2em;
}
h2 {
    font-size: 1.5em;
    margin-top: 30px; /* Abstand nach oben für H2 */
}
h3 {
    font-size: 1.25em; /* Basisschriftgröße für H3 */
}


/* ===== Button Styles ===== */
.btn {
    display: inline-block;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    font-size: 1.1em;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center; /* Sicherstellen, dass Text im Button zentriert ist */
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-primary {
    background-color: #14284c;
    color: #ffffff;
}
.btn-primary:hover {
    background-color: #0f1e38;
    color: #ffffff;
}

.btn-secondary {
    background-color: #f2b635;
    color: #14284c;
}
.btn-secondary:hover {
    background-color: #e0a82e;
    color: #ffffff; /* Farbwechsel beim Hover für besseres Feedback */
}

/* ===== Footer ===== */
.page-footer {
    background-color: #14284c;
    color: #f4f5fa;
    padding: 30px 0;
    text-align: center;
    margin-top: auto; /* Stellt sicher, dass der Footer unten bleibt */
    font-size: 0.9em;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    display: inline-block;
    margin: 0 10px;
}

.footer-links a {
    color: #f4f5fa;
    text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus {
    color: #f2b635;
    text-decoration: underline;
}


/* ===== Styles für Unterseiten (z.B. Kreditvergleich) ===== */

/* Iframe Container */
.iframe-container {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    border-radius: 3px;
    margin-bottom: 30px;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Beratung Sektion */
.beratung-section {
    margin-top: 30px;
    padding: 25px;
    background-color: #e9ecef; /* Heller Hintergrund zur Abhebung */
    border-radius: 4px;
    text-align: center;
}

.beratung-section p {
    margin-bottom: 15px;
    color: #495057;
    font-size: 1.1em;
}

.beratung-section .telefon {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.beratung-section .telefon a {
    color: #14284c;
    font-weight: bold;
    text-decoration: none;
}
 .beratung-section .telefon a:hover {
    text-decoration: underline;
    color: #f2b635;
}

.beratung-section .email {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.beratung-section .email a {
    color: #14284c;
    font-weight: bold;
    text-decoration: none;
}
 .beratung-section .email a:hover {
    text-decoration: underline;
    color: #f2b635;
}

/* Finanzmanager App Werbung */
.finanzmanager-app-section {
    margin-top: 30px;
    padding: 25px 20px;
    text-align: center;
    border-top: 1px solid #e9ecef; /* Leichte Trennlinie oben */
}

.finanzmanager-app-section img {
    max-width: 100%;
    height: auto;
    max-height: 109px; /* Wie im HTML-Beispiel */
    margin-bottom: 15px;
    border-radius: 4px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.finanzmanager-app-section p {
    margin-top: 10px; /* Abstand zwischen Bild und Text */
}

.finanzmanager-app-section p a {
    color: #14284c;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
}

.finanzmanager-app-section p a:hover {
    text-decoration: underline;
    color: #f2b635;
}

/* ===== Styles für Startseite (index.html) ===== */

/* Hero Section auf der Startseite */
.hero-section {
    text-align: center;
    padding: 30px 15px;
    background-color: #ffffff; /* Bleibt weiß, da es im .main-content .container ist */
    border-radius: 4px; /* Bereits durch .main-content .container abgedeckt, aber schadet nicht */
    margin-bottom: 40px;
}

.hero-section h1 { /* Spezifische H1 für Hero-Sektion */
    font-size: 2.2em;
    color: #14284c;
    margin-bottom: 10px;
}

.hero-section .hero-subtitle {
    font-size: 1.15em;
    color: #495057;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Grid für Rechner-Auswahl */
.rechner-grid {
    margin-bottom: 30px;
}

.rechner-grid .grid-title { /* Spezifische H2 für Grid-Titel */
    margin-bottom: 30px;
    font-size: 1.8em;
    color: #14284c;
    text-align: center;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.rechner-card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.rechner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.rechner-card .card-icon {
    background-color: #14284c;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.rechner-card .card-icon img,
.rechner-card .card-icon svg {
    width: 32px !important;
    height: 32px !important;
    display: block;
    margin: 0 auto;
}

.rechner-card h3 { /* Spezifische H3 für Karten */
    font-family: 'Kumbh Sans', sans-serif; /* Bereits global, aber zur Sicherheit */
    color: #14284c;
    font-size: 1.25em;
    margin-bottom: 8px;
    text-align: center; /* Sicherstellen, dass H3 zentriert ist */
}

.rechner-card p {
    font-size: 0.9em;
    color: #495057;
    line-height: 1.5;
    margin-bottom: 15px;
    flex-grow: 1; /* Wichtig, damit Buttons unten bleiben */
    text-align: center; /* Sicherstellen, dass P zentriert ist */
}

.card-actions {
    margin-top: auto; /* Drückt die Buttons nach unten */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-actions .btn { /* Spezifische Button-Styles für Karten */
    width: 100%;
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95em;
}

/* ===== Responsive Anpassungen ===== */

@media (max-width: 992px) { /* Tablet-Größe und kleiner */
    .grid-container { /* Für Startseite */
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 768px) { /* Kleinere Tablets und Mobile */
    h1 { font-size: 1.7em; }
    h2 { font-size: 1.3em; }
    h3 { font-size: 1.1em; } /* Allgemeine H3 Anpassung */

    .logo img { max-height: 50px; }

    .footer-links li {
        display: block;
        margin: 10px 0;
    }

    .main-content .container { padding: 20px; }

    .btn { /* Allgemeine Button-Anpassung für Mobile */
        padding: 10px 20px;
        font-size: 1em;
    }

    /* Spezifisch für Kreditseite */
    .iframe-container {
        height: 65vh;
        min-height: 450px;
    }
    .beratung-section p,
    .finanzmanager-app-section p a,
    .beratung-section .telefon {
        font-size: 1em;
    }

    /* Spezifisch für Startseite */
    .hero-section h1 { font-size: 1.9em; }
    .hero-section .hero-subtitle { font-size: 1.05em; }
    .rechner-grid .grid-title { font-size: 1.6em; }
    .grid-container { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .rechner-card h3 { font-size: 1.15em; } /* Überschreibt allgemeine H3 für Karten */
    .rechner-card p { font-size: 0.85em; }
}

@media (max-width: 576px) { /* Kleinere Mobile-Geräte */
    h1 { font-size: 1.5em; }

    /* Spezifisch für Kreditseite */
    .iframe-container {
        height: 60vh;
        min-height: 400px;
    }

    /* Spezifisch für Startseite */
    .grid-container { grid-template-columns: 1fr; /* Eine Spalte */ }
    .hero-section { padding: 20px 10px; }
    .card-actions { /* Buttons auf Mobile nebeneinander, wenn Platz */
         flex-direction: row;
         gap: 10px;
    }
    .card-actions .btn {
        flex: 1; /* Buttons teilen sich den Platz */
    }
}