/* ==========================================================================
   DTAX AG Steuerberatungsgesellschaft - Central Stylesheet
   Design matching Corporate Identity (#3ACAF0) & Optimized Layout
   ========================================================================== */

/* Root Variables */
:root {
    --primary-color: #3ACAF0;        /* Exakter Cyan-Ton aus dem Logo */
    --primary-hover: #21b2d8;        /* Dunkleres Cyan für Hover-Zustände */
    --primary-dark: #007a99;         /* Dunkleres Blau/Cyan für lesbare Überschriften */
    --text-main: #232a30;            /* Dunkles Grau für Text */
    --text-muted: #64748b;           /* Muted Gray für Footer */
    --bg-body: #ffffff;              /* Reinweißer Hintergrund */
    --bg-card: #f4fbfd;              /* Sehr leicht getönter Inhalts-Container */
    --border-color: #d2f0f8;         /* Subtile Rahmenfarbe */
    --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 850px;
    --border-radius: 16px;
}

/* CSS Reset & Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 16px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Halbfette Darstellung für <strong> und <b> Tags */
strong, b {
    font-weight: 600; /* Halbfett (Semi-Bold) statt voll fett (700) */
}

/* Haupt-Wrapper: Vertikale Zentrierung auf dem Bildschirm */
.wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;  /* Zentriert den Inhalt vertikal im Fenster */
    align-items: center;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 50px 24px;
}

/* Logo Header */
.logo-header {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.logo-header img {
    max-width: 100%;
    height: auto;
    width: 440px; /* Großzügige Darstellung auf Desktop */
    display: inline-block;
}

/* Karten-Container */
.card {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 45px 40px;
    box-shadow: 0 10px 30px rgba(58, 202, 240, 0.08);
}

/* Überschriften */
h1 {
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--primary-dark);
    text-align: center;
    line-height: 1.45;
    margin-bottom: 30px;
}

h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--primary-color);
}

h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-top: 22px;
    margin-bottom: 10px;
}

/* Kontaktdaten */
.contact-info {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px dashed #b1e8f5;
    text-align: center;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Links & Buttons */
a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

a:hover, a:focus {
    color: var(--primary-hover);
    text-decoration: underline;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.btn-contact {
    display: inline-block;
    background-color: var(--primary-color);
    color: #0d3843 !important; /* Dunkler Text auf hellem Cyan für hohen Kontrast */
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(58, 202, 240, 0.25);
    transition: all 0.2s ease;
}

.btn-contact:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(58, 202, 240, 0.35);
}

/* Formatierung für Rechtstexte */
.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
}

/* Footer Navigation */
footer {
    flex-shrink: 0;
    text-align: center;
    padding: 24px 20px;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    font-size: 0.92rem;
    color: var(--text-muted);
}

footer nav {
    margin-top: 10px;
}

footer nav a {
    color: var(--text-muted);
    margin: 0 12px;
}

footer nav a:hover {
    color: var(--primary-dark);
}

/* Mobile Responsiveness */
@media (max-width: 650px) {
    .wrapper {
        padding: 30px 16px;
    }
    .card {
        padding: 28px 20px;
    }
    h1 {
        font-size: 1.3rem;
    }
    .btn-contact {
        width: 100%;
        text-align: center;
    }
}