/* ========================================
   Konversationshaus - Central Styles
   Version: 2.0 | [OPTIMIERT]
   ======================================== */

/* Import Lato Font */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&display=swap');

/* CSS Variables */
:root {
    --accent-color: #2d3659;
    --accent-hover: #1f2540;
    --bg: #f8fafc;
    --text: #1f2937;
    --text-light: #6b7280;
    --card: #ffffff;
    --success: #10b981;
    --error: #ef4444;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    color: var(--text);
    background: var(--bg);
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--accent-color);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

p {
    margin: 0 0 1rem;
    line-height: 1.65;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-accent { color: var(--accent-color); }
.bg-accent { background-color: var(--accent-color); }
.border-accent { border-color: var(--accent-color); }

/* Layout Sections */
section {
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    section {
        padding: 5rem 0;
    }
}

/* Cards */
.card {
    background: var(--card);
    border-radius: 1.25rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(45, 54, 89, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: white;
}

/* Navigation - Mobile Menu Enhancement */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#mobile-menu:not(.hidden) {
    max-height: 500px;
}

/* Logo Size Fix for Mobile */
@media (max-width: 768px) {
    header nav img {
        height: 2rem !important;
        max-height: 2rem;
    }
    
    #mobile-menu-toggle {
        font-size: 1.5rem;
    }
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(45, 54, 89, 0.1);
}

/* Checkbox Styling */
input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: var(--accent-color);
}

/* Button States */
button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

button:not(:disabled) {
    cursor: pointer;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Event Cards - Date Badge */
.event-date-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Past Events Styling */
[data-past-events] {
    opacity: 0.6;
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Details/Summary Styling */
details {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--accent-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    transform: rotate(45deg);
}

/* WhatsApp Sticky Button - Smooth Entrance */
a[href*="wa.me"].fixed {
    animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Typography */
@media (max-width: 768px) {
    body {
        font-size: 0.9375rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Loading Animation for Forms */
button[type="submit"]:active {
    transform: scale(0.98);
}

/* Success Message Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    animation: fadeInUp 0.5s ease-out;
}

/* Mobile Optimization - Hero Section */
@media (max-width: 640px) {
    /* Make text more readable on small screens */
    section {
        padding: 2rem 0;
    }
    
    /* Floating badges smaller on mobile */
    .absolute.-bottom-4 {
        bottom: -0.5rem !important;
        left: -0.5rem !important;
        padding: 0.75rem !important;
    }
    
    .absolute.-bottom-4 div {
        font-size: 1.5rem !important;
    }
    
    .absolute.-bottom-4 .text-sm {
        font-size: 0.65rem !important;
    }
}

/* Improved Touch Targets for Mobile */
@media (max-width: 768px) {
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Print Styles */
@media print {
    .no-print,
    header,
    footer,
    [href*="wa.me"] {
        display: none !important;
    }
}