/*
Theme Name: Haftara Theme v2
Theme URI: https://haftara.de
Author: Haftara Team
Author URI: https://haftara.de
Description: Professionelles WordPress-Theme für Haftara.de mit vollem Gutenberg-Support
Version: 2.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haftara
Tags: custom-background, custom-logo, custom-menu, editor-style, featured-images, full-width-template, rtl-language-support, sticky-post, theme-options, threaded-comments, translation-ready
*/

/* ===== RESET & BASE ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: #2c3e50;
    background: #f8f9fa;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: #1a1a2e;
    color: white;
    padding: 1.5rem 0;
    border-bottom: 3px solid #c9a961;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: white;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 0.95rem;
    transition: color 0.3s;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

.nav-links a:hover {
    color: #c9a961;
}

/* ===== MAIN CONTENT ===== */
main {
    background: #f8f9fa;
}

/* Container für normale Inhalte */
.content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Kein Container für volle Breite */
body.page-template-page-fullwidth .content-wrapper {
    max-width: none;
    padding: 0;
}

/* ===== WORDPRESS BLOCK STYLES ===== */

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    color: #1a1a2e;
    font-weight: 500;
    line-height: 1.3;
}

h1 { font-size: 2.5rem; margin: 2rem 0 1.5rem; }
h2 { font-size: 2rem; margin: 3rem 0 1.5rem; }
h3 { font-size: 1.5rem; margin: 2rem 0 1rem; }

/* Absätze */
p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Links */
a {
    color: #1a1a2e;
    transition: color 0.3s;
}

a:hover {
    color: #c9a961;
}

/* Spalten Block */
.wp-block-columns {
    margin: 2rem 0;
    gap: 2rem;
}

/* Listen */
ul, ol {
    margin: 1rem 0 1rem 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ===== FOOTER ===== */
footer {
    background: #1a1a2e;
    color: white;
    margin-top: 4rem;
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 3px solid #c9a961;
}

footer p {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    opacity: 0.9;
}

footer a {
    color: #c9a961;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .content-wrapper {
        padding: 0 1rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
}

/* ===== HAFTARA CUSTOM BLOCKS ===== */

/* Hero Block */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: white !important;
    padding: 5rem 2rem !important;
    text-align: center !important;
    margin: 0 !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
}

.hero h1 {
    font-size: 2.8rem !important;
    color: white !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
    margin-bottom: 1rem !important;
}

.hero p {
    font-size: 1.2rem !important;
    color: white !important;
    opacity: 0.9 !important;
    margin-bottom: 0.5rem !important;
}

.hero .tradition {
    color: #c9a961 !important;
    font-style: italic !important;
    font-size: 1rem !important;
    opacity: 0.85 !important;
}

/* Search Section */
.search-section {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-left: 4px solid #c9a961 !important;
    margin: 3rem auto !important;
    padding: 2.5rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    max-width: 1000px !important;
}

.search-section h2 {
    font-size: 1.8rem !important;
    color: #1a1a2e !important;
    margin-bottom: 1.5rem !important;
    font-weight: 500 !important;
}

.search-container {
    display: flex !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.search-input {
    flex: 1 !important;
    padding: 1rem !important;
    border: 2px solid #e0e0e0 !important;
    font-size: 1rem !important;
}

.search-button {
    background: #1a1a2e !important;
    color: white !important;
    border: none !important;
    padding: 1rem 2.5rem !important;
    cursor: pointer !important;
}

.filter-tabs {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
}

.filter-tab {
    padding: 0.6rem 1.2rem !important;
    background: #f0f4f8 !important;
    border: 1px solid #e0e0e0 !important;
    cursor: pointer !important;
}

.filter-tab.active {
    background: #1a1a2e !important;
    color: white !important;
}

/* Current Haftara */
.current-haftara {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    border-left: 4px solid #c9a961 !important;
    margin: 3rem auto !important;
    padding: 2.5rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    max-width: 1000px !important;
}

.current-haftara-label {
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: #c9a961 !important;
    margin-bottom: 1rem !important;
    font-weight: 600 !important;
}

.current-haftara h2 {
    font-size: 2rem !important;
    color: #1a1a2e !important;
    margin-bottom: 0.5rem !important;
}

.current-haftara .parasha {
    font-size: 1.1rem !important;
    color: #666 !important;
    margin-bottom: 1.5rem !important;
}

.current-haftara .reference {
    font-size: 1rem !important;
    color: #555 !important;
    margin-bottom: 1.5rem !important;
    font-style: italic !important;
}

.read-link {
    display: inline-block !important;
    background: #1a1a2e !important;
    color: white !important;
    padding: 0.9rem 2rem !important;
    text-decoration: none !important;
    transition: background 0.3s !important;
}

.read-link:hover {
    background: #2a2a3e !important;
}

/* Info Section */
.info-section {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    padding: 3rem !important;
    margin: 3rem auto !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    max-width: 1000px !important;
}

.info-section h2 {
    color: #1a1a2e !important;
    font-size: 1.8rem !important;
    border-bottom: 2px solid #e0e0e0 !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1.5rem !important;
}

.tradition-note {
    background: #f0f4f8 !important;
    border-left: 3px solid #c9a961 !important;
    padding: 1.5rem !important;
    margin: 1.5rem 0 !important;
    font-style: italic !important;
}

/* Minhag Notice */
.minhag-notice {
    background: #fff8e1 !important;
    border-left: 4px solid #ffa000 !important;
    padding: 1.5rem !important;
    margin: 2rem auto !important;
    border-radius: 4px !important;
    max-width: 1000px !important;
}

.minhag-notice h3 {
    color: #e65100 !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.1rem !important;
}

.minhag-notice a {
    color: #d84315 !important;
    text-decoration: underline !important;
}

/* Feature Boxes */
.feature {
    background: #f8f9fa !important;
    border: 1px solid #e0e0e0 !important;
    padding: 2rem !important;
    height: 100% !important;
}

.feature h3 {
    color: #1a1a2e !important;
    margin-bottom: 1rem !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
}

.feature p {
    color: #666 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

/* Spalten für Features */
body.page-template-page-fullwidth .wp-block-columns {
    max-width: 1000px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 2rem !important;
}

/* Volle Breite Content */
body.page-template-page-fullwidth .entry-content > * {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Aber nicht für Hero */
body.page-template-page-fullwidth .entry-content > .hero {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

main {
    overflow-x: hidden;
}

