/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-img {
    height: 80px;
    width: auto;
}

/* Navigation */
.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 25px;
}

.nav-list li a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}

.nav-list li a:hover {
    color: #c5e0d3;
}

.nav-list li a.active {
    color: #c5e0d3;
}

.arrow {
    font-size: 8px;
    margin-left: 3px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    padding: 20px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 200;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 25px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #333 !important;
    text-shadow: none !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
    color: #6b9080 !important;
}

.btn-termin {
    background-color: #6b9080;
    color: white !important;
    padding: 10px 20px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.btn-termin:hover {
    background-color: #5a7a6b;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background-image: url('images/pexels-michelle-leman-6765929-scaled.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding-left: 180px;
    padding-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.2) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-content h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 46px;
    font-weight: 500;
    letter-spacing: 6px;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 14px;
    color: #f0f0f0;
    line-height: 1.8;
    font-style: italic;
    max-width: 500px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 40px;
}

.intro-text {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.intro-text p {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
}

.intro-text a {
    color: #6b9080;
    text-decoration: underline;
}

.intro-text a:hover {
    color: #5a7a6b;
}

/* Gutschein Cards */
.gutschein-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.card {
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-info {
    background-color: #fafafa;
}

.card-info p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

.card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
}

.btn-bestellen {
    display: inline-block;
    background-color: #6b9080;
    color: white;
    padding: 18px 35px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-bestellen:hover {
    background-color: #5a7a6b;
}

/* Footer */
.footer {
    margin-top: 60px;
    border-top: 1px solid #ddd;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr 1.5fr;
    gap: 40px;
    padding: 50px 80px;
    background-color: #e8e8e8;
}

.footer-logo-col {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.footer-logo {
    height: 100px;
    width: auto;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.footer-column h4.mt-20 {
    margin-top: 25px;
}

.footer-column p {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-column .icon {
    margin-right: 8px;
    color: #6b9080;
}

.footer-column a {
    color: #6b9080;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #5a7a6b;
    text-decoration: underline;
}

.footer-bottom {
    background-color: #4a5e54;
    padding: 15px;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: #ccc;
}

.footer-bottom strong {
    color: #fff;
}

.footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #fff;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 1000;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    background-color: #fff;
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 60px;
    position: relative;
    border-radius: 4px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #333;
    margin-bottom: 30px;
}

.modal form select,
.modal form input,
.modal form textarea {
    width: 100%;
    padding: 12px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

/* Custom Select with Search */
.custom-select-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: border-color 0.3s ease;
}

.custom-select-trigger:hover {
    border-color: #6b9080;
}

.custom-select.open .custom-select-trigger {
    border-color: #6b9080;
}

.custom-select-trigger .arrow-down {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #666;
    transition: transform 0.3s ease;
}

.custom-select.open .arrow-down {
    transform: rotate(180deg);
}

.custom-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 3px 3px;
    z-index: 100;
    max-height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.custom-select.open .custom-options {
    display: block;
}

.custom-select-search {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.custom-options-list {
    max-height: 250px;
    overflow-y: auto;
}

.custom-option {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: background-color 0.2s ease;
}

.custom-option:hover {
    background-color: #f5f5f5;
}

.custom-option.selected {
    background-color: #6b9080;
    color: #fff;
}

.custom-option.hidden {
    display: none;
}

/* Success Modal */
.modal-success .success-content {
    text-align: center;
    padding: 60px;
    max-width: 500px;
}

.modal-success h2 {
    color: #6b9080;
    margin-bottom: 15px;
}

.modal-success p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Success Checkmark Animation */
.success-checkmark {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
}

.check-icon {
    width: 100px;
    height: 100px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #6b9080;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.check-icon::before,
.check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: #fff;
    transform: rotate(-45deg);
}

.check-icon .icon-line {
    height: 5px;
    background-color: #6b9080;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.check-icon .icon-line.line-tip {
    top: 52px;
    left: 18px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.check-icon .icon-line.line-long {
    top: 44px;
    right: 14px;
    width: 50px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.check-icon .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(107, 144, 128, 0.5);
}

.check-icon .icon-fix {
    top: 8px;
    width: 5px;
    left: 30px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #fff;
}

@keyframes rotate-circle {
    0% {
        transform: rotate(-45deg);
    }
    5% {
        transform: rotate(-45deg);
    }
    12% {
        transform: rotate(-405deg);
    }
    100% {
        transform: rotate(-405deg);
    }
}

@keyframes icon-line-tip {
    0% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    54% {
        width: 0;
        left: 1px;
        top: 19px;
    }
    70% {
        width: 50px;
        left: -8px;
        top: 47px;
    }
    84% {
        width: 17px;
        left: 21px;
        top: 54px;
    }
    100% {
        width: 25px;
        left: 18px;
        top: 52px;
    }
}

@keyframes icon-line-long {
    0% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    65% {
        width: 0;
        right: 46px;
        top: 54px;
    }
    84% {
        width: 55px;
        right: 0px;
        top: 35px;
    }
    100% {
        width: 50px;
        right: 14px;
        top: 44px;
    }
}

.modal form input:focus,
.modal form select:focus,
.modal form textarea:focus {
    outline: none;
    border-color: #6b9080;
}

.modal form input::placeholder,
.modal form textarea::placeholder {
    color: #999;
}

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

.modal form .btn-bestellen {
    margin-top: 10px;
    border: none;
    cursor: pointer;
    width: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 9999;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 80%;
        text-align: center;
        border-bottom: 1px solid #eee;
    }

    .nav-list li:last-child {
        border-bottom: none;
    }

    .nav-list li a {
        display: block;
        padding: 18px 0;
        color: #333 !important;
        text-shadow: none !important;
        font-size: 16px;
        font-weight: 500;
    }

    .nav-list li a:hover,
    .nav-list li a.active {
        color: #6b9080 !important;
    }

    .nav-list li a.btn-termin {
        display: inline-block;
        margin-top: 20px;
        padding: 18px 50px;
        color: #fff !important;
    }

    /* Close Button */
    .mobile-close-btn {
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 36px;
        color: #333;
        cursor: pointer;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f5f5f5;
        border-radius: 50%;
        line-height: 1;
    }

    .mobile-close-btn:hover {
        background: #eee;
        color: #6b9080;
    }

    /* Mobile Dropdown */
    .dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        display: none;
        min-width: auto;
        background: #f9f9f9;
    }

    .dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li {
        border-bottom: none;
        width: 100%;
    }

    .dropdown-menu li a {
        padding: 12px 0 !important;
        font-size: 14px !important;
    }

    .hero {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero-content h1 {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .gutschein-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .hero {
        height: 350px;
        padding: 20px;
        padding-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 26px;
        letter-spacing: 3px;
    }

    .main-content {
        padding: 40px 20px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        padding: 40px 20px;
        text-align: center;
    }

    .footer-logo-col {
        justify-content: center;
    }

    /* Modal Mobile Styles */
    .modal {
        padding: 20px 10px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .modal form input,
    .modal form select,
    .modal form textarea {
        padding: 14px 12px;
        font-size: 16px;
    }

    .custom-select-trigger {
        padding: 14px 12px;
        font-size: 16px;
    }

    .custom-select-search {
        padding: 14px 12px;
        font-size: 16px;
    }

    .custom-option {
        padding: 12px 15px;
        font-size: 14px;
    }

    .modal form .btn-bestellen {
        width: 100%;
        padding: 16px 20px;
    }
}
