:root {
    --main-bg-color: #f7f5ef;
    --navbar-bg-color: #e6dec8;
    --text-color: #68453B;
    --accent-color: #8c6b5d;
    --border-color: #d4c5a9;
    --card-bg: #fffbf6;
}

/* --- Allgemeine Einstellungen --- */
body {
    background-color: var(--main-bg-color);
    color: var(--text-color);
    font-family: 'Merriweather', serif;
    font-weight: 300;
    line-height: 1.8;
    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

/* Haupttitel nur für Index */
h1.main-title {
    font-family: 'Bradley Hand ITC', 'Bradley Hand', cursive;
    font-size: 3.5rem;
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

h2 {
    font-weight: 700;
    font-size: 2rem;
    position: relative;
    padding-bottom: 15px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-color);
}

/* --- Navbar --- */
.navbar {
    background-color: var(--navbar-bg-color) !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(62, 44, 34, 0.08);
    position: relative;
    z-index: 1050;
}

.nav-link {
    font-size: 1.1rem;
    color: var(--text-color) !important;
    margin: 0 10px;
    transition: color 0.3s ease;
}

/* Logo: Nur Höhe fixieren, Breite passt sich automatisch an */
.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Damit das Dropdown-Menü auf dem Handy hübsch aussieht */
.navbar-collapse {
    background-color: var(--navbar-bg-color);
    border-radius: 0 0 10px 10px;
}

/* --- Mobile Navbar Verbesserungen --- */
@media (max-width: 991.98px) {
    .navbar-logo {
        height: 40px;
    }

    .navbar-toggler {
        min-width: 48px;
        min-height: 48px;
        padding: 0.5rem;
        border: 1px solid var(--border-color);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(140, 107, 93, 0.3);
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        border-bottom: 1px solid var(--border-color);
        font-size: 1.05rem;
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .navbar-collapse {
        padding: 0.5rem 0;
    }
}

/* --- Cards (für Angebote) --- */
.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(104, 69, 59, 0.1);
    border-color: var(--accent-color);
}

.price-tag {
    display: block;
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* --- Bilder Styling --- */
.img-styled {
    border-radius: 16px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 20px 40px -10px rgba(62, 44, 34, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Bilder gerade (keine Rotation) */
@media (min-width: 769px) {
    .rotate-left {
        transform: none;
    }

    .rotate-right {
        transform: none;
    }

    .rotate-left:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px -12px rgba(62, 44, 34, 0.25);
    }

    .rotate-right:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px -12px rgba(62, 44, 34, 0.25);
    }
}

/* Mobile: Keine Rotation, aber Hover bleibt */
@media (max-width: 768px) {
    .rotate-left,
    .rotate-right {
        transform: none;
        margin-bottom: 1.5rem;
    }

    .img-styled:hover {
        transform: translateY(-3px);
        box-shadow: 0 25px 50px -12px rgba(62, 44, 34, 0.25);
    }
}

/* Desktop Hover für nicht-rotierte Bilder */
@media (min-width: 769px) {
    .img-styled:not(.rotate-left):not(.rotate-right):hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px -12px rgba(62, 44, 34, 0.25);
    }
}

/* --- Footer / Hinweisboxen --- */
.info-box {
    background-color: var(--navbar-bg-color);
    padding: 2rem;
    border-radius: 8px;
    border-left: 5px solid var(--accent-color);
}

.section-divider {
    margin-top: 5rem !important;
    margin-bottom: 5rem !important;
    border-color: var(--border-color);
    opacity: 0.5;
}

.offer-section {
    background-color: var(--navbar-bg-color);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

/* --- Timeline / Mein Weg Styling --- */
.timeline-section {
    position: relative;
    padding: 2rem 0;
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: 45%;
    padding: 10px 20px;
    border-radius: 8px;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 18px;
    height: 2px;
    width: 30px;
    background-color: var(--accent-color);
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 11px;
    width: 0;
    height: 0;
    border-style: solid;
}

/* Linke Seite (ungerade) → rechts platziert */
.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    text-align: left;
    padding-left: 50px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    left: 0;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    left: 30px;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent var(--accent-color);
}

/* Rechte Seite (gerade) → links platziert */
.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    text-align: right;
    padding-right: 50px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: 0;
}

.timeline-item:nth-child(even) .timeline-content::after {
    right: 30px;
    border-width: 8px 14px 8px 0;
    border-color: transparent var(--accent-color) transparent transparent;
}

/* Text Styling im Zeitstrahl */
.timeline-date {
    font-weight: bold;
    color: var(--accent-color);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.timeline-title {
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: var(--text-color);
}

.timeline-desc {
    font-size: 0.95rem;
    color: #6c757d;
    margin-bottom: 0;
}

/* --- Mobile Anpassung Timeline --- */
@media (max-width: 768px) {
    .timeline-section::before {
        left: 20px;
    }

    .timeline-content {
        width: 100% !important;
        padding-left: 70px !important;
        padding-right: 0 !important;
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .timeline-content::before {
        left: 20px !important;
        right: auto !important;
        width: 30px;
    }

    .timeline-content::after {
        left: 50px !important;
        right: auto !important;
        border-width: 8px 0 8px 14px !important;
        border-color: transparent transparent transparent var(--accent-color) !important;
    }

    h1.main-title {
        font-size: 2.2rem;
    }
}

/* --- Kontaktbereich Styling --- */
.contact-highlight-box {
    background-color: var(--navbar-bg-color);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.requirements-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
}

.requirements-list li::before {
    content: '🐾';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-color);
    font-size: 1rem;
}

.info-link {
    color: var(--accent-color);
    font-weight: bold;
    text-decoration: none;
}

.info-link:hover {
    text-decoration: underline;
}

/* --- Footer Styling --- */
.site-footer {
    background-color: var(--navbar-bg-color);
    color: var(--text-color);
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.footer-link {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Sticky Footer Container */
#footer-container {
    margin-top: auto;
    width: 100%;
}
