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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #5a4037;
}

/* Header */
header {
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    max-width: 700px;
    min-width: 400px;
    margin: 0 auto;
    height: auto;
}

/* Navigation */
nav {
    background-color: #5a4037;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color: #faf8f5;
    text-decoration: none;
    padding: 15px 20px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

nav a:hover {
    background-color: #8b7355;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sections */
section {
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #8b7355;
}

/* Content section for pages */
.content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #8b7355;
}

h1, h2 {
    color: #5a4037;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 15px;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #8b7355;
    padding-bottom: 10px;
}

/* Alternative h2 style for pages */
h2.page-heading {
    font-size: 1.8rem;
    margin: 30px 0 15px 0;
    border-left: 4px solid #8b7355;
    padding-left: 15px;
    border-bottom: none;
}

p {
    margin-bottom: 15px;
}

/* Opening hours table */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.hours-table th,
.hours-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.hours-table th {
    background-color: #8b7355;
    color: white;
}

.hours-table tbody tr:nth-child(even) {
    background-color: #f8f6f3;
}

/* Home section layout */
.home-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-top: 20px;
}

.home-text {
    flex: 1;
}

.home-image {
    flex: 0 0 300px;
}

.home-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.image-caption {
    text-align: center;
    margin-top: 10px;
    font-style: italic;
    color: #5a4037;
    font-size: 0.9rem;
}

/* Gallery styles */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.gallery-item.top img {
    object-position: top;
}

/* Contact info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    padding: 15px;
    background-color: #f8f6f3;
    border-radius: 5px;
    border-left: 3px solid #8b7355;
}

.contact-item strong {
    color: #5a4037;
    display: block;
    margin-bottom: 5px;
}

/* Contact box for pages */
.contact-box {
    background-color: #f8f6f3;
    padding: 20px;
    border-radius: 5px;
    border-left: 3px solid #8b7355;
    margin: 20px 0;
}

#speisekarte a {
    padding: 0.8rem;
    display: block;
    text-align: center;
    background-color: #8b7355;
    color: #FFF;
    text-decoration: none;
}

#anfahrt table {
    margin-top: 10px;
    margin-bottom: 10px;
}

#anfahrt table tr td {
    vertical-align: top;
    width: 50%;
    padding-left: 1rem;
}

#anfahrt table tr td:first-of-type {
    border-right: 1px solid #8b7355;
    padding-right: 1rem;
}

    /* Footer */
footer {
    background-color: #5a4037;
    color: #faf8f5;
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #a0926b;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #faf8f5;
}

.social-links {
    margin-bottom: 15px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.social-icon {
    width: 25px;
    height: 25px;
    vertical-align: middle;
}

#uebernachten table {
    border-collapse: collapse;
}

#uebernachten table tr:last-of-type {
    font-weight: bold;
}

#uebernachten table tr td:first-of-type{
    padding-right: 1rem;
}

a {
    color: #000;
}

/* Image modal styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.modal-image {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.3);
    -webkit-tap-highlight-color: transparent;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-prev {
    left: 30px;
}

.modal-next {
    right: 30px;
}

/* Rosl special button */
.rosl-button {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #dc3545;
    border: none;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.rosl-button:hover {
    background-color: #c82333;
    transform: scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    /* Hide navigation on mobile and tablets */
    nav {
        display: none;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        text-align: center;
    }

    main {
        padding: 15px;
    }

    section, .content {
        padding: 20px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .logo {
        max-width: 250px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .hours-table {
        font-size: 0.9rem;
    }

    .hours-table th,
    .hours-table td {
        padding: 8px;
    }

    /* Home section mobile layout */
    .home-content {
        flex-direction: column;
        gap: 20px;
    }

    .home-image {
        flex: none;
        order: 1;
    }

    .home-text {
        order: 0;
    }

    #anfahrt table tr {
        display: table;
    }

    #anfahrt table tr td {
        display: table-row;
    }

    #anfahrt table tr td strong {
        display: inline-block;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .footer-links a {
        display: block;
        margin: 10px 0;
    }

    .timeline {
        padding-left: 15px;
    }

    .timeline-item::before {
        left: -21px;
    }
}
