/* ============================================
   KAFFEEKLATSCH - CAFÉ WEBSITE
   Warm, Verspielt, Einladend
   ============================================ */

/* CSS Variables */
:root {
    /* Colors */
    --bg-primary: #faf8f5;
    --bg-secondary: #f3ebe3;
    --bg-dark: #2c2420;
    --text-primary: #2c2420;
    --text-light: #faf8f5;
    --accent: #c45c2a;
    --accent-hover: #a84a20;
    --accent-secondary: #d4a574;
    --green: #5a6f4e;
    --green-light: #6b8259;

    /* Typography */
    --font-display: 'Playfair Display', Georgia, serif;
    --font-script: 'Dancing Script', cursive;
    --font-body: 'Nunito', 'Poppins', sans-serif;

    /* Spacing */
    --section-padding: 100px;
    --section-padding-mobile: 60px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;
}

/* ============================================
   RESET & BASE
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.section-subtitle.script,
.script {
    font-family: var(--font-script);
    font-size: 1.5rem;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.section-beige {
    background-color: var(--bg-secondary);
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-green {
    background-color: var(--green);
    color: var(--text-light);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 92, 42, 0.3);
}

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

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--text-primary);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: var(--bg-primary);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--text-light);
    transition: var(--transition);
}

.header.scrolled .logo {
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.5rem;
}

.header-hours {
    font-size: 0.85rem;
    color: var(--text-light);
    opacity: 0.9;
    display: none;
}

.header.scrolled .header-hours {
    color: var(--text-primary);
    opacity: 0.7;
}

@media (min-width: 1024px) {
    .header-hours {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
    position: relative;
}

.header.scrolled .nav-link {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    padding: 10px 24px;
    font-size: 0.9rem;
}

.nav,
.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav,
    .header-cta {
        display: flex;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

.header.scrolled .mobile-menu-btn span {
    background-color: var(--text-primary);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-primary);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav ul {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav a {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
}

.mobile-nav .btn {
    margin-top: 16px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(44, 36, 32, 0.5) 0%,
        rgba(44, 36, 32, 0.4) 50%,
        rgba(44, 36, 32, 0.6) 100%
    );
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    padding: 0 24px;
    max-width: 800px;
}

.hero-tagline {
    font-family: var(--font-script);
    font-size: 1.5rem;
    display: block;
    margin-bottom: 16px;
    color: var(--accent-secondary);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-light), transparent);
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ============================================
   INTRO SECTION
   ============================================ */

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .intro-grid {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
}

.intro-image {
    position: relative;
}

.intro-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.intro-image-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-secondary);
    border-radius: var(--radius-lg);
    z-index: -1;
}

.intro-content {
    text-align: center;
}

@media (min-width: 768px) {
    .intro-content {
        text-align: left;
    }
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    opacity: 0.9;
}

.intro-signature {
    font-family: var(--font-script);
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 32px;
}

/* ============================================
   HIGHLIGHTS SECTION
   ============================================ */

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.highlight-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.highlight-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.05);
}

.highlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(44, 36, 32, 0.9), transparent);
    color: var(--text-light);
}

.highlight-content h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.highlight-tagline {
    font-family: var(--font-script);
    font-size: 1.2rem;
    color: var(--accent-secondary);
}

/* ============================================
   MENU SECTION
   ============================================ */

.menu-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
}

.menu-tab {
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: transparent;
    border: 2px solid var(--text-primary);
    border-radius: var(--radius-pill);
    transition: var(--transition);
}

.menu-tab:hover,
.menu-tab.active {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--text-light);
}

.menu-panel {
    display: none;
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

.menu-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.menu-item {
    padding-bottom: 16px;
    border-bottom: 1px dashed rgba(44, 36, 32, 0.2);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.menu-item-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    white-space: nowrap;
}

.menu-item-dots {
    flex: 1;
    border-bottom: 2px dotted rgba(44, 36, 32, 0.3);
    margin-bottom: 4px;
    min-width: 20px;
}

.menu-item-price {
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

.menu-item-desc {
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.7;
    font-style: italic;
    margin-top: 4px;
}

.menu-note {
    text-align: center;
    margin-top: 32px;
    font-size: 0.95rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.menu-note.highlight {
    background-color: var(--accent-secondary);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius);
    display: inline-block;
    margin-bottom: 24px;
    opacity: 1;
}

/* ============================================
   GALLERY SECTION
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(44, 36, 32, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay span {
    font-size: 2rem;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-cta {
    text-align: center;
    margin-top: 48px;
}

.instagram-link {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.instagram-handle {
    font-weight: 700;
    color: var(--accent);
}

.instagram-link:hover .instagram-handle {
    text-decoration: underline;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.section-green .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 768px) {
    .section-green .container {
        grid-template-columns: 1.2fr 1fr;
        gap: 80px;
    }
}

.about-content {
    text-align: center;
}

@media (min-width: 768px) {
    .about-content {
        text-align: left;
    }
}

.about-content p {
    font-size: 1.15rem;
    margin-bottom: 20px;
    opacity: 0.95;
}

.about-cta {
    font-family: var(--font-script);
    font-size: 1.5rem !important;
    color: var(--accent-secondary);
    margin-top: 32px !important;
}

.about-image img {
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ============================================
   VISIT SECTION
   ============================================ */

.visit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .visit-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
}

.visit-card {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.visit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(44, 36, 32, 0.1);
}

.hours-day {
    font-weight: 500;
}

.hours-time {
    font-weight: 700;
    color: var(--accent);
}

.hours-note,
.hours-holiday {
    font-size: 0.95rem;
    margin-top: 12px;
}

.hours-holiday {
    color: var(--accent);
}

.address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 20px;
}

.transport {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.transport-icon {
    font-size: 1.2rem;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
}

/* ============================================
   RESERVATION SECTION
   ============================================ */

.reservation-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--bg-primary);
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

@media (min-width: 600px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid rgba(44, 36, 32, 0.15);
    border-radius: var(--radius);
    background-color: var(--bg-primary);
    transition: var(--transition);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent);
}

.reservation-form .btn {
    width: 100%;
    margin-top: 16px;
}

.reservation-success {
    text-align: center;
    padding: 60px 40px;
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: 0 auto;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--green);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

.reservation-success h3 {
    margin-bottom: 12px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-content {
    text-align: center;
}

.contact-tagline {
    font-family: var(--font-script);
    font-size: 1.8rem;
    margin-bottom: 24px;
    color: var(--accent-secondary);
}

.contact-email,
.contact-phone {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.contact-email:hover,
.contact-phone:hover {
    color: var(--accent-secondary);
}

.contact-social {
    margin-top: 32px;
}

.contact-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-social a:hover {
    color: var(--accent-secondary);
}

.contact-social svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 60px 0 40px;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-script);
    font-size: 2rem;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-address,
.footer-hours {
    font-size: 0.95rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.footer-social a:hover {
    color: var(--accent-secondary);
}

.footer-divider {
    width: 100px;
    height: 1px;
    background-color: rgba(250, 248, 245, 0.2);
    margin: 32px auto;
}

.footer-legal {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-legal a:hover {
    color: var(--accent-secondary);
}

.footer-demo {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(250, 248, 245, 0.1);
}

.footer-demo p {
    font-size: 0.9rem;
}

.footer-demo a {
    color: var(--accent-secondary);
    font-weight: 600;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

.animate-fade-in {
    animation: fadeInAnim 0.8s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUpAnim 0.8s ease forwards;
}

.animate-fade-in-up.delay-1 {
    animation-delay: 0.2s;
    opacity: 0;
}

.animate-fade-in-up.delay-2 {
    animation-delay: 0.4s;
    opacity: 0;
}

@keyframes fadeInAnim {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUpAnim {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.15s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.3s;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767px) {
    .section {
        padding: var(--section-padding-mobile) 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    .reservation-form {
        padding: 32px 24px;
    }

    .visit-card {
        padding: 32px 24px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.mb-0 {
    margin-bottom: 0;
}

.mt-4 {
    margin-top: 32px;
}
