/**
 * Fleet Data - Zentrales Theme für ALLE Seiten und Beiträge
 * Version: 1.0.0
 *
 * Dieses CSS gilt für die gesamte Website und stellt sicher,
 * dass alle Farben und Schriftarten konsistent sind.
 */

/* ========================================
   ZENTRALE FARB-VARIABLEN
   ======================================== */

:root {
    /* Brand Farben - NUR diese 2 Farben + Grautöne */
    --primary-teal: #178687;
    --dark-teal: #147273;
    --light-teal: #1a9a9b;

    /* Grautöne */
    --gray-light: #E2E8F0;
    --gray-medium: #B0BEC5;
    --gray-dark: #0f172a;

    /* Funktionale Farben */
    --text-dark: #0f172a;
    --text-light: #ffffff;
    --text-muted: #B0BEC5;

    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-gray: #E2E8F0;
    --bg-dark: #0f172a;

    /* Erfolgs-/Fehler-Farben */
    --success: #10b981;
    --success-dark: #059669;
    --error: #ef4444;
    --error-dark: #dc2626;

    /* Schatten */
    --shadow-sm: 0 2px 8px rgba(23, 134, 135, 0.1);
    --shadow-md: 0 4px 16px rgba(23, 134, 135, 0.15);
    --shadow-lg: 0 8px 24px rgba(23, 134, 135, 0.2);

    /* Abstände */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   TYPOGRAFIE
   ======================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--primary-teal);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary-teal);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--primary-teal);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

/* Paragraphen */
p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

/* Links */
a {
    color: var(--primary-teal);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--dark-teal);
}

/* ========================================
   BUTTONS (ZENTRAL)
   ======================================== */

.wp-block-button__link,
.btn,
button[type="submit"],
input[type="submit"],
.button {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    color: var(--text-light) !important;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    display: inline-block;
    text-decoration: none;
}

.wp-block-button__link:hover,
.btn:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.button:hover {
    background: linear-gradient(135deg, var(--dark-teal) 0%, var(--primary-teal) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(23, 134, 135, 0.3);
}

/* Outline Button */
.btn-outline,
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    color: var(--primary-teal) !important;
    border: 2px solid var(--primary-teal) !important;
}

.btn-outline:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--primary-teal) !important;
    color: var(--text-light) !important;
}

/* ========================================
   KARTEN / CARDS
   ======================================== */

.card,
.wp-block-group {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   SEKTIONEN / SECTIONS
   ======================================== */

.section,
.wp-block-group {
    padding: var(--spacing-xl) var(--spacing-md);
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3 {
    color: var(--text-light);
}

.section-light {
    background: var(--bg-light);
}

.section-gray {
    background: var(--bg-gray);
}

/* ========================================
   FORMULARE
   ======================================== */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition-normal);
    background: var(--bg-white);
    color: var(--text-dark);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(23, 134, 135, 0.1);
}

label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
    display: block;
}

/* ========================================
   LISTEN
   ======================================== */

ul, ol {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

li {
    margin-bottom: var(--spacing-xs);
    line-height: 1.7;
}

/* Feature Listen */
.feature-list,
ul.feature-list {
    list-style: none;
    padding-left: 0;
}

.feature-list li::before {
    content: "✓";
    color: var(--primary-teal);
    font-weight: 700;
    margin-right: var(--spacing-sm);
}

/* ========================================
   TABELLEN
   ======================================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing-lg);
}

th {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    color: var(--text-light);
    padding: var(--spacing-md);
    text-align: left;
    font-weight: 700;
}

td {
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--gray-light);
}

tr:hover {
    background: var(--bg-light);
}

/* ========================================
   BADGES & TAGS
   ======================================== */

.badge,
.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(23, 134, 135, 0.1);
    color: var(--primary-teal);
    border: 1px solid rgba(23, 134, 135, 0.3);
}

.badge-primary {
    background: var(--primary-teal);
    color: var(--text-light);
    border: none;
}

/* ========================================
   GUTENBERG BLÖCKE (ÜBERSCHREIBUNGEN)
   ======================================== */

/* Alle Gutenberg-Buttons */
.wp-block-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Alle Columns */
.wp-block-columns {
    gap: var(--spacing-lg);
}

/* Alle Gruppen mit Hintergrund */
.wp-block-group.has-background {
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
}

/* ========================================
   SPEZIELLE KOMPONENTEN
   ======================================== */

/* Hero Sections */
.hero,
.hero-section {
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
    color: var(--text-light);
    padding: 5rem 2rem;
    text-align: center;
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-xl);
}

.hero h1,
.hero-section h1 {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.hero p,
.hero-section p {
    color: var(--gray-light);
    font-size: 1.2rem;
}

/* CTA Boxes */
.cta-box {
    background: linear-gradient(135deg, rgba(23, 134, 135, 0.1) 0%, rgba(23, 134, 135, 0.05) 100%);
    border: 2px solid rgba(23, 134, 135, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
}

/* Zitate / Blockquotes */
blockquote {
    border-left: 4px solid var(--primary-teal);
    padding-left: var(--spacing-lg);
    margin: var(--spacing-lg) 0;
    font-style: italic;
    color: var(--text-muted);
}

blockquote cite {
    display: block;
    margin-top: var(--spacing-sm);
    color: var(--primary-teal);
    font-weight: 600;
}

/* Code Blöcke */
code,
pre {
    background: var(--bg-gray);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.5rem;
    font-family: "Courier New", monospace;
    color: var(--text-dark);
}

pre {
    padding: var(--spacing-md);
    overflow-x: auto;
}

/* ========================================
   FARB-ÜBERSCHREIBUNGEN (WICHTIG!)
   ======================================== */

/* Entfernt ALLE gelben/goldenen Farben */
*[style*="#FFD700"],
*[style*="#FFC700"],
*[style*="gold"] {
    color: var(--primary-teal) !important;
    background-color: transparent !important;
}

/* Alte Blau-Töne ersetzen */
*[style*="#5A6E7F"],
*[style*="#4A5A68"],
*[style*="#2C3E50"],
*[style*="#2F3E51"] {
    color: var(--text-dark) !important;
}

/* Alte Grün-Töne für Akzente beibehalten */
*[style*="#1ABC9C"],
*[style*="#16A085"] {
    color: var(--primary-teal) !important;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1200px) {
    :root {
        --spacing-xl: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }

    .wp-block-columns {
        flex-direction: column;
    }

    .wp-block-buttons {
        flex-direction: column;
        width: 100%;
    }

    .wp-block-button {
        width: 100%;
    }

    .wp-block-button__link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

/* ========================================
   UTILITY KLASSEN
   ======================================== */

/* Textfarben */
.text-teal { color: var(--primary-teal) !important; }
.text-dark { color: var(--text-dark) !important; }
.text-light { color: var(--text-light) !important; }
.text-muted { color: var(--text-muted) !important; }

/* Hintergrundfarben */
.bg-teal { background: var(--primary-teal) !important; }
.bg-white { background: var(--bg-white) !important; }
.bg-gray { background: var(--bg-gray) !important; }
.bg-dark { background: var(--bg-dark) !important; }

/* Abstände */
.mt-0 { margin-top: 0 !important; }
.mt-sm { margin-top: var(--spacing-sm) !important; }
.mt-md { margin-top: var(--spacing-md) !important; }
.mt-lg { margin-top: var(--spacing-lg) !important; }
.mt-xl { margin-top: var(--spacing-xl) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-sm { margin-bottom: var(--spacing-sm) !important; }
.mb-md { margin-bottom: var(--spacing-md) !important; }
.mb-lg { margin-bottom: var(--spacing-lg) !important; }
.mb-xl { margin-bottom: var(--spacing-xl) !important; }

.p-sm { padding: var(--spacing-sm) !important; }
.p-md { padding: var(--spacing-md) !important; }
.p-lg { padding: var(--spacing-lg) !important; }
.p-xl { padding: var(--spacing-xl) !important; }

/* Text Alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }

/* Display */
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }
.d-none { display: none !important; }

/* Flex Utilities */
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.align-center { align-items: center !important; }
.flex-column { flex-direction: column !important; }
.gap-sm { gap: var(--spacing-sm) !important; }
.gap-md { gap: var(--spacing-md) !important; }
.gap-lg { gap: var(--spacing-lg) !important; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}
