/* ============================================
   GLOBALE KONSISTENZ FÜR ALLE SEITEN
   ============================================ */

/* Reset und Basis für alle Seiten */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #ffffff;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Konsistente Container-Breiten (mobile-first) */
.container,
.wp-block-group__inner-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container,
    .wp-block-group__inner-container {
        padding: 0 30px;
    }
}

@media (min-width: 1024px) {
    .container,
    .wp-block-group__inner-container {
        padding: 0 40px;
    }
}

/* Konsistente Abstände zwischen Sections (mobile-first) */
section,
.wp-block-group {
    padding: 40px 0;
}

@media (min-width: 768px) {
    section,
    .wp-block-group {
        padding: 60px 0;
    }
}

@media (min-width: 1024px) {
    section,
    .wp-block-group {
        padding: 80px 0;
    }
}

/* Konsistente Typografie (mobile-first: Basis = Handy-Groessen) */
h1, .h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

h2, .h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

h3, .h3 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: #ffffff;
}

h4, .h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.875rem;
    color: #ffffff;
}

h5, .h5 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

h6, .h6 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

/* Responsive Typografie (mobile-first: groesser ab Tablet/Desktop) */
@media (min-width: 768px) {
    h1, .h1 { font-size: 2.5rem; }
    h2, .h2 { font-size: 2rem; }
    h3, .h3 { font-size: 1.75rem; }
    h4, .h4 { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
    h1, .h1 { font-size: 3rem; }
    h2, .h2 { font-size: 2.5rem; }
    h3, .h3 { font-size: 2rem; }
}

/* Paragraphen */
p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: #475569;
}

/* Links */
a {
    color: #147273;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #116364;
}

/* Buttons - Konsistentes Styling */
.btn,
.wp-block-button__link,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-primary,
.wp-block-button__link {
    background: linear-gradient(135deg, #178687 0%, #178687 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(23, 134, 135, 0.4);
    text-shadow: none !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    letter-spacing: 0.3px !important;
}

/* Bessere Lesbarkeit in grauen Boxen */
.wp-block-group.has-background .wp-block-button__link {
    color: #ffffff !important;
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background: linear-gradient(135deg, #178687 0%, #147273 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(23, 134, 135, 0.5);
    color: #ffffff !important;
}

/* Outline Button Style - besserer Kontrast */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    color: #178687 !important;
    border: 3px solid #178687;
    box-shadow: 0 4px 12px rgba(23, 134, 135, 0.2);
    font-weight: 700;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: rgba(23, 134, 135, 0.15);
    border-color: #178687;
    color: #178687 !important;
    box-shadow: 0 6px 16px rgba(23, 134, 135, 0.3);
    transform: translateY(-2px);
}

/* Bilder */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Listen */
ul, ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #475569;
}

/* Tabellen */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    font-weight: 600;
    color: #ffffff;
    background: #f8fafc;
}

/* Content Wrapper */
.content-wrapper,
.entry-content,
main {
    margin-top: 0;
    padding-top: 0;
}

/* Nach Header - kein extra Abstand */
.header + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* WordPress Block Editor Kompatibilität */
.wp-block-column {
    flex-basis: 100%;
    min-width: 0;
}

@media (min-width: 768px) {
    .wp-block-columns {
        display: flex;
        gap: 2rem;
    }

    .wp-block-column {
        flex: 1;
    }
}

/* Formulare */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #178687;
    outline: none;
    box-shadow: 0 0 0 4px rgba(23, 134, 135, 0.1);
}

/* Accessibility */
:focus-visible {
    outline: 2px solid #178687;
    outline-offset: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ============================================
   LESBARKEIT: HELLE HINTERGRÜNDE
   Fix für weiße Texte auf weißen/hellen Hintergründen
   ============================================ */

/* WordPress-Blöcke mit has-background Klasse - Website-Grau etwas heller */
.wp-block-group.has-background {
    background: #34495E !important;
}

.has-white-background-color {
    background: #34495E !important;
}

.has-light-gray-background-color {
    background: #34495E !important;
}

/* Spezielle Box-Styles für Branchen-Seiten */
.branche-card {
    background: #34495E !important;
    padding: 3rem !important;
}

/* Use-Case Karten */
.use-case-card {
    background: #34495E !important;
    padding: 3rem !important;
}

/* ALLE Texte in grauen Boxen - einheitlich WEISS für 100% Lesbarkeit */
.wp-block-group.has-background h1,
.wp-block-group.has-background h2,
.wp-block-group.has-background h3,
.wp-block-group.has-background h4,
.wp-block-group.has-background h5,
.wp-block-group.has-background h6,
.wp-block-group.has-background p,
.wp-block-group.has-background li,
.wp-block-group.has-background span,
.wp-block-group.has-background strong,
.wp-block-group.has-background em,
.wp-block-group.has-background a {
    color: #ffffff !important;
}

.branche-card h1,
.branche-card h2,
.branche-card h3,
.branche-card h4,
.branche-card h5,
.branche-card h6,
.branche-card p,
.branche-card li,
.branche-card span,
.branche-card strong,
.branche-card em,
.branche-card a {
    color: #ffffff !important;
}

.use-case-card h1,
.use-case-card h2,
.use-case-card h3,
.use-case-card h4,
.use-case-card h5,
.use-case-card h6,
.use-case-card p,
.use-case-card li,
.use-case-card span,
.use-case-card strong,
.use-case-card em,
.use-case-card a {
    color: #ffffff !important;
}

/* ============================================
   FLEET EDITIONS - GRAUE TABS/CARDS
   ============================================ */

/* Editionen Header */
.editions-header h2 {
    color: #FFFFFF !important;
}

.editions-header p {
    color: #B0BEC5 !important;
}

/* Edition Cards - Grauer Hintergrund */
.edition-card {
    background: #34495E !important;
    border: 3px solid rgba(23, 134, 135, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

.edition-card:hover {
    box-shadow: 0 12px 40px rgba(23, 134, 135, 0.4) !important;
}

.edition-card.featured {
    border-color: #178687 !important;
}

/* Edition Badge */
.edition-badge {
    background: linear-gradient(135deg, #178687 0%, #178687 100%) !important;
    color: #FFFFFF !important;
}

/* Edition Titel */
.edition-card h3 {
    color: #FFFFFF !important;
}

/* Preis */
.price-amount {
    color: #178687 !important;
}

.price-period {
    color: #B0BEC5 !important;
}

/* Features Liste */
.edition-features li {
    color: #FFFFFF !important;
}

.feature-included {
    color: #FFFFFF !important;
}

/* Buttons */
.btn-edition.primary {
    background: linear-gradient(135deg, #178687 0%, #178687 100%) !important;
    color: #FFFFFF !important;
}

.btn-edition.primary:hover {
    box-shadow: 0 8px 20px rgba(23, 134, 135, 0.5) !important;
}

.btn-edition.secondary {
    border-color: #178687 !important;
    color: #178687 !important;
}

.btn-edition.secondary:hover {
    background: #178687 !important;
    color: #FFFFFF !important;
}
