/*
Theme Name: Billige Feuerbestattung
Theme URI: https://billige-feuerbestattung.de
Description: Modernes WordPress-Theme für Bestattungsunternehmen - Vollständig editierbar mit Gutenberg
Author: Bestattungen Brocki
Author URI: https://feuerbestattungen24.de
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: billige-feuerbestattung
Tags: block-editor, custom-colors, full-width-template, one-column, custom-menu, editor-style, featured-images, flexible-header, threaded-comments, translation-ready
*/

/* ========================================
   CSS Variables
   ======================================== */

:root {
    --primary: #2c5d7f;
    --accent: #4a7fa0;
    --light-bg: #e8f3f8;
    --text-dark: #333;
    --text-light: #666;
    --border: #e0e0e0;
    --white: #ffffff;
}

/* ========================================
   Base Styles
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ========================================
   WordPress Editor Styles
   ======================================== */

.editor-styles-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.5em; }
h2 { font-size: 2em; }
h3 { font-size: 1.8em; }
h4 { font-size: 1.4em; }
h5 { font-size: 1.2em; }
h6 { font-size: 1em; }

p {
    margin-bottom: 1em;
    line-height: 1.8;
}

/* ========================================
   Layout
   ======================================== */

.wp-site-blocks {
    padding-top: 0;
}

.wp-block-post-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   Header
   ======================================== */

header.wp-block-template-part {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 2rem;
}

.wp-block-site-title a {
    color: white;
    text-decoration: none;
    font-size: 1.8em;
    font-weight: 600;
}

.wp-block-site-tagline {
    color: rgba(255,255,255,0.9);
    font-size: 0.9em;
}

.wp-block-navigation a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

/* ========================================
   Buttons
   ======================================== */

.wp-block-button__link,
.wp-element-button {
    background-color: var(--primary) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: all 0.3s !important;
    border: none !important;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    background-color: var(--accent) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44,93,127,0.3);
}

/* ========================================
   Groups (Content Boxes)
   ======================================== */

.wp-block-group {
    margin: 2rem 0;
}

.wp-block-group.content-box {
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wp-block-group.info-box {
    background: #fff9e6;
    border-left: 4px solid #ffc107;
    padding: 1.5rem;
    border-radius: 8px;
}

.wp-block-group.highlight-box {
    background: var(--light-bg);
    border-left: 4px solid var(--primary);
    padding: 1.5rem;
    border-radius: 8px;
}

.wp-block-group.contact-box {
    background: linear-gradient(135deg, #e8f3f8 0%, #f0f8fc 100%);
    border-radius: 12px;
    padding: 2rem;
}

/* ========================================
   Tables
   ======================================== */

.wp-block-table {
    margin: 2rem 0;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.wp-block-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
}

.wp-block-table th,
.wp-block-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.wp-block-table tbody tr:nth-child(even) {
    background: #f0f8fc;
}

.wp-block-table tbody tr:hover {
    background: #e8f3f8;
}

/* ========================================
   Lists
   ======================================== */

.wp-block-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.wp-block-list li {
    margin-bottom: 0.5rem;
}

/* ========================================
   Images
   ======================================== */

.wp-block-image img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}

/* ========================================
   Separator
   ======================================== */

.wp-block-separator {
    border-color: var(--border);
    margin: 3rem 0;
}

/* ========================================
   Columns
   ======================================== */

.wp-block-columns {
    margin: 2rem 0;
    gap: 2rem;
}

/* ========================================
   Cover Block (Hero)
   ======================================== */

.wp-block-cover {
    border-radius: 12px;
    margin: 2rem 0;
}

/* ========================================
   Footer
   ======================================== */

footer.wp-block-template-part {
    background: #f0f4f8;
    padding: 3rem 2rem;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-light);
}

/* ========================================
   Color Palette Classes
   ======================================== */

.has-primary-color {
    color: var(--primary) !important;
}

.has-primary-background-color {
    background-color: var(--primary) !important;
}

.has-accent-color {
    color: var(--accent) !important;
}

.has-accent-background-color {
    background-color: var(--accent) !important;
}

.has-light-bg-color {
    color: var(--light-bg) !important;
}

.has-light-bg-background-color {
    background-color: var(--light-bg) !important;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 768px) {
    .wp-block-post-content {
        padding: 1rem;
    }
    
    h1 { font-size: 1.8em; }
    h2 { font-size: 1.5em; }
    
    .wp-block-table th,
    .wp-block-table td {
        padding: 0.8rem;
        font-size: 0.9em;
    }
    
    .wp-block-button__link,
    .wp-element-button {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9em !important;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-center {
    text-align: center !important;
}

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 1rem !important; }
.mb-2 { margin-bottom: 2rem !important; }
.mb-3 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem !important; }
.mt-2 { margin-top: 2rem !important; }
.mt-3 { margin-top: 3rem !important; }
