/* ============================================
   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: 16px;
    line-height: 1.6;
    color: #0f172a;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

/* Konsistente Abstände zwischen Sections */
section,
.wp-block-group {
    padding: 80px 0;
}

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

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

/* Konsistente Typografie */
h1, .h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

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

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

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

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

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

/* Responsive Typografie */
@media (max-width: 1024px) {
    h1, .h1 { font-size: 2.5rem; }
    h2, .h2 { font-size: 2rem; }
    h3, .h3 { font-size: 1.75rem; }
}

@media (max-width: 768px) {
    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }
    h4, .h4 { font-size: 1.25rem; }
}

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

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

a:hover {
    color: #138D75;
}

/* Buttons - Konsistentes Styling */
.btn,
.wp-block-button__link,
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    font-size: 16px;
    font-weight: 600;
    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, #1ABC9C 0%, #16A085 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 160, 133, 0.3);
}

.btn-primary:hover,
.wp-block-button__link:hover {
    background: linear-gradient(135deg, #16A085 0%, #138D75 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 160, 133, 0.4);
}

/* 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: #0f172a;
    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: 782px) {
    .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: #1ABC9C;
    outline: none;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.1);
}

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

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

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