/*
Theme Name: Kaffee 66
Theme URI: https://kaffee66.de
Author: Kaffee 66
Author URI: https://kaffee66.de
Description: Modernes WordPress-Theme für Kaffee 66 - Buch & Bohne. Ein Literaturkaffee in Bad Kreuznach.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: kaffee66
*/

/* ============================================
   Custom Fonts
============================================ */
@font-face {
    font-family: 'Lemon Milk';
    src: url('fonts/LEMONMILK-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lemon Milk';
    src: url('fonts/LEMONMILK-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lemon Milk';
    src: url('fonts/LEMONMILK-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lemon Milk';
    src: url('fonts/LEMONMILK-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   CSS Variables
============================================ */
:root {
    --color-espresso: #1C1410;
    --color-roast: #3D2B24;
    --color-mocha: #6B4E3D;
    --color-caramel: #C8956C;
    --color-cream: #F7F3EF;
    --color-latte: #EDE5DC;
    --color-gold: #D4A574;
    --color-white: #FFFFFF;
    --color-text: #2D2420;
    --color-text-light: #6B5D54;
    
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-lemonmilk: 'Lemon Milk', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
    
    --shadow-sm: 0 2px 8px rgba(28, 20, 16, 0.08);
    --shadow-md: 0 4px 20px rgba(28, 20, 16, 0.12);
    --shadow-lg: 0 8px 40px rgba(28, 20, 16, 0.16);
    
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   Reset & Base
============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-cream);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* ============================================
   Typography
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-espresso);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1.5rem;
}

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

.container--narrow {
    max-width: 800px;
}

.container--wide {
    max-width: 1400px;
}

/* ============================================
   Header & Navigation
============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(247, 243, 239, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(28, 20, 16, 0.06);
    transition: all var(--transition-base);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    min-height: 80px;
}

.site-logo img {
    height: 60px;
    width: auto;
    transition: transform var(--transition-base);
}

.site-logo:hover img {
    transform: scale(1.05);
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-text);
    padding: var(--spacing-xs) 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-caramel);
    transition: width var(--transition-base);
}

.main-nav a:hover::after,
.main-nav .current-menu-item a::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-espresso);
    margin: 6px 0;
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(160deg, var(--color-espresso) 0%, var(--color-roast) 50%, var(--color-mocha) 100%);
    overflow: hidden;
    margin-top: 80px;
}

.hero--with-image {
    background-size: cover;
    background-position: center;
}

/* Dunkles Overlay für bessere Textlesbarkeit */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 20, 16, 0.5) 0%,
        rgba(28, 20, 16, 0.4) 50%,
        rgba(28, 20, 16, 0.6) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Dekoratives Pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(200, 149, 108, 0.1) 0%, transparent 40%);
    pointer-events: none;
    z-index: 2;
}

.hero__content {
    text-align: center;
    padding: var(--spacing-lg);
    max-width: 900px;
    z-index: 3;
    position: relative;
}

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero__subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.6),
        0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Buttons
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn--primary {
    background: var(--color-caramel);
    color: var(--color-white);
    box-shadow: 0 4px 20px rgba(200, 149, 108, 0.4);
}

.btn--primary:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(200, 149, 108, 0.5);
}

.btn--outline {
    background: transparent;
    color: var(--color-white);
    border: 2px solid var(--color-white);
}

.btn--outline:hover {
    background: var(--color-white);
    color: var(--color-espresso);
}

/* ============================================
   Kaffee Spezial Slider
============================================ */
.kaffee-slider {
    padding: var(--spacing-xl) 0;
    background: var(--color-latte);
    position: relative;
    overflow: hidden;
}

.kaffee-slider__title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.kaffee-slider__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.kaffee-slider__track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: hidden;
    scroll-behavior: smooth;
    padding: var(--spacing-md) 0;
    flex: 1;
}

.kaffee-slider__item {
    flex: 0 0 auto;
    text-align: center;
    transition: transform var(--transition-base);
}

.kaffee-slider__item:hover {
    transform: translateY(-8px);
}

.kaffee-slider__image {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin: 0 auto var(--spacing-sm);
    box-shadow: var(--shadow-md);
    border: 4px solid var(--color-white);
    transition: all var(--transition-base);
}

.kaffee-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kaffee-slider__image--placeholder {
    background: linear-gradient(135deg, var(--color-mocha), var(--color-caramel));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.kaffee-slider__item:hover .kaffee-slider__image {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-caramel);
}

.kaffee-slider__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    max-width: 140px;
}

/* Slider Arrows */
.kaffee-slider__arrow {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.kaffee-slider__arrow:hover {
    background: var(--color-caramel);
    color: var(--color-white);
    transform: scale(1.1);
}

.kaffee-slider__arrow svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   Blog Slider
============================================ */
.blog-slider {
    padding: var(--spacing-xl) 0;
    background: var(--color-white);
}

.blog-slider__wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.blog-slider__track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: hidden;
    scroll-behavior: smooth;
    flex: 1;
    padding: var(--spacing-sm) 0;
}

.blog-slider__item {
    flex: 0 0 320px;
    background: var(--color-cream);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.blog-slider__item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.blog-slider__image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-latte);
}

.blog-slider__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.blog-slider__item:hover .blog-slider__image img {
    transform: scale(1.05);
}

.blog-slider__image--placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--color-mocha), var(--color-caramel));
}

.blog-slider__content {
    padding: var(--spacing-md);
}

.blog-slider__date {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-xs);
}

.blog-slider__title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-espresso);
    line-height: 1.4;
}

.blog-slider__excerpt {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-slider__arrow {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--color-cream);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.blog-slider__arrow:hover {
    background: var(--color-caramel);
    color: var(--color-white);
    transform: scale(1.1);
}

.blog-slider__arrow svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .blog-slider__item {
        flex: 0 0 280px;
    }
    
    .blog-slider__arrow {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   Content Sections
============================================ */
.section {
    padding: var(--spacing-xl) 0;
}

.section--alt {
    background: var(--color-white);
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section__title {
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-caramel);
    margin: var(--spacing-sm) auto 0;
    border-radius: 2px;
}

.section__subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

/* ============================================
   About Section
============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: var(--color-latte);
}

.about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* ============================================
   Features Grid
============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: var(--color-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

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

.feature-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-md);
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-caramel), var(--color-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--color-white);
    font-weight: bold;
}

.feature-card__title {
    margin-bottom: var(--spacing-sm);
    word-break: break-word;
    hyphens: auto;
}

.feature-card__text {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ============================================
   Events Section
============================================ */
.events-grid {
    display: grid;
    gap: var(--spacing-md);
}

.event-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.event-card:hover {
    box-shadow: var(--shadow-md);
}

.event-card__date {
    flex-shrink: 0;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-latte);
    border-radius: var(--radius-md);
}

.event-card__day {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-caramel);
    line-height: 1;
}

.event-card__month {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-light);
}

.event-card__content {
    flex: 1;
}

.event-card__title {
    margin-bottom: var(--spacing-xs);
}

.event-card__text {
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ============================================
   Podcast Section
============================================ */
.podcast-section {
    background: var(--color-espresso);
    color: var(--color-white);
}

.podcast-section .section__title {
    color: var(--color-white);
}

.podcast-section .section__title::after {
    background: var(--color-caramel);
}

.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.podcast-item {
    text-align: center;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.podcast-item__icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.podcast-item__title {
    font-weight: 600;
    color: var(--color-caramel);
    margin-bottom: var(--spacing-xs);
}

.podcast-item__text {
    color: var(--color-latte);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   Footer
============================================ */
.site-footer {
    background: var(--color-espresso);
    color: var(--color-latte);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-widget__title {
    color: var(--color-white);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    font-family: var(--font-display);
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: var(--spacing-xs);
}

.footer-widget a {
    color: var(--color-latte);
    transition: color var(--transition-fast);
}

.footer-widget a:hover {
    color: var(--color-caramel);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-latte);
}

.footer-links a:hover {
    color: var(--color-caramel);
}

/* ============================================
   Responsive Design
============================================ */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .about__image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .header-inner {
        min-height: 70px;
    }
    
    .site-logo img {
        height: 50px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-cream);
        border-bottom: 1px solid rgba(28, 20, 16, 0.1);
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: var(--spacing-md);
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid rgba(28, 20, 16, 0.06);
    }
    
    .main-nav a {
        display: block;
        padding: var(--spacing-sm) 0;
    }
    
    .hero {
        margin-top: 70px;
        min-height: calc(100vh - 70px);
    }
    
    .kaffee-slider__image {
        width: 100px;
        height: 100px;
    }
    
    .kaffee-slider__arrow {
        width: 40px;
        height: 40px;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
}

@media (max-width: 480px) {
    .hero__content {
        padding: var(--spacing-md);
    }
    
    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    .kaffee-slider__track {
        gap: var(--spacing-sm);
    }
    
    .kaffee-slider__image {
        width: 80px;
        height: 80px;
    }
    
    .feature-card {
        padding: var(--spacing-md);
    }
}

/* ============================================
   WordPress Classes
============================================ */
.alignleft {
    float: left;
    margin-right: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.alignright {
    float: right;
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.aligncenter {
    display: block;
    margin: var(--spacing-md) auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: var(--spacing-xs);
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Gutenberg Blocks */
.wp-block-button__link {
    background: var(--color-caramel);
    color: var(--color-white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
}

.has-text-align-center {
    text-align: center;
}
