@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Mulish:wght@400;600;700&display=swap');

:root {
    --bg-light: #fdfbf7;
    --bg-alt: #f3f0eb;
    --text-main: #2c3539;
    --text-muted: #5f6a6a;
    --accent: #8c9da1;
    --accent-dark: #6f8086;
    --border-color: rgba(44, 53, 57, 0.12);
    --shadow: 0 18px 40px rgba(44, 53, 57, 0.08);
    --shadow-soft: 0 10px 24px rgba(44, 53, 57, 0.06);
    --shadow-strong: 0 24px 60px rgba(44, 53, 57, 0.14);
    --radius-lg: 16px;
    --font-heading: "Marcellus", serif;
    --font-body: "Mulish", sans-serif;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
}

body * {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

@media (max-width: 480px) {
    body {
        font-size: 0.98rem;
    }
}

body.menu-open {
    overflow: hidden;
}

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

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(140, 157, 161, 0.6);
    outline-offset: 3px;
}

.lace-overlay {
    background-color: var(--bg-light);
    background-image:
        radial-gradient(circle at 15% 10%, rgba(140, 157, 161, 0.18), transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(140, 157, 161, 0.1), transparent 55%),
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238c9da1' fill-opacity='0.08'%3E%3Cpath d='M40 40c0-11.046-8.954-20-20-20S0 28.954 0 40s8.954 20 20 20 20-8.954 20-20zm0 0c0-11.046 8.954-20 20-20s20 8.954 20 20-8.954 20-20 20-20-8.954-20-20z'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-blend-mode: multiply;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(44, 53, 57, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 2px;
}

.desktop-nav {
    display: flex;
    gap: 30px;
}

.desktop-nav a {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-muted);
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--accent-dark);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-dark), transparent);
    opacity: 0;
    transform: scaleX(0.4);
    transition: 0.3s ease;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    width: 36px;
    height: 30px;
    background: none;
    border: 0;
    padding: 0;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    margin: 6px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open .mobile-toggle .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

body.menu-open .mobile-toggle .bar:nth-child(2) {
    opacity: 0;
}

body.menu-open .mobile-toggle .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(88%, 360px);
    height: 100vh;
    background-color: var(--bg-light);
    padding: 86px 28px 40px;
    transition: 0.35s ease;
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 1000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    display: block;
    color: var(--text-main);
    transition: color 0.3s ease, transform 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent-dark);
    transform: translateX(4px);
}

.menu-close {
    align-self: flex-start;
    background: none;
    border: 0;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    cursor: pointer;
}

body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(44, 53, 57, 0.3);
    z-index: 900;
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 74vh;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.hero-text {
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f5f1 100%);
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1;
    margin-bottom: 24px;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 34px;
    max-width: 460px;
}

.hero-img-svg {
    width: 100%;
    height: 100%;
    background-color: #eee;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop offset='0' stop-color='%23C7B299'/%3E%3Cstop offset='1' stop-color='%238C9DA1'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23a)'/%3E%3Ctext x='50%25' y='50%25' font-family='serif' font-size='24' fill='white' text-anchor='middle' dy='.3em'%3EHier steht ein Hero-Bild%3C/text%3E%3C/svg%3E");
    background-size: cover;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: 40px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(140, 157, 161, 0.25), transparent 70%);
    filter: blur(2px);
}

.section {
    padding: 110px 5%;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    margin-bottom: 64px;
}

.section-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 14px;
}

.section-title p {
    color: var(--text-muted);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}

.featured-section {
    padding: 110px 5%;
    background: linear-gradient(135deg, rgba(243, 240, 235, 0.9), rgba(253, 251, 247, 0.9));
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.featured-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-media {
    height: 200px;
    background: linear-gradient(135deg, #f4f1ec, #e6e0d7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8f8f8f;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-size: cover;
    background-position: center;
}

.featured-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.featured-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-dark);
}

.featured-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.featured-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-img-placeholder {
    width: 100%;
    height: 260px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23f5f5f5'/%3E%3Cpath d='M0 100 L100 0' stroke='%23e0e0e0' stroke-width='1'/%3E%3Cpath d='M0 0 L100 100' stroke='%23e0e0e0' stroke-width='1'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-body {
    padding: 28px 26px;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background: var(--text-main);
    color: #fff;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.accent-box {
    background: var(--bg-alt);
    padding: 64px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.accent-box::after {
    content: "";
    position: absolute;
    inset: -40% auto auto -20%;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(140, 157, 161, 0.25), transparent 70%);
}

.page-header {
    padding: 110px 5% 70px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.5vw, 3.3rem);
    margin-bottom: 14px;
}

.page-header p {
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto;
    font-size: 1rem;
}

.cat-filter {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cat-btn {
    border: 1px solid var(--border-color);
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    color: var(--text-muted);
    transition: 0.3s ease;
}

.cat-btn.active {
    background: var(--text-main);
    color: #fff;
    border-color: transparent;
}

.cat-btn:hover {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    padding: 0 5% 100px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #f4f1ec, #e6e0d7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8f8f8f;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.product-info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
}

.product-price {
    font-weight: 700;
    color: var(--text-main);
}

.btn-buy {
    margin-top: 8px;
    padding: 12px 20px;
    border: 1px solid var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    border-radius: 999px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-buy:hover {
    background: var(--text-main);
    color: #fff;
    transform: translateY(-1px);
}

.intro {
    padding: 110px 5% 50px;
    text-align: center;
}

.intro h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.3vw, 3rem);
    margin-bottom: 16px;
}

.intro p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1rem;
}

.gallery-container {
    column-count: 3;
    column-gap: 22px;
    padding: 0 5% 100px;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 24px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-placeholder {
    background: linear-gradient(135deg, #f2f0ec, #e7e2db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.caption {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.caption span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.filter-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 5% 50px;
}

.filter-select {
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: #fff;
    font-size: 0.9rem;
    min-width: 180px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-select:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 3px rgba(140, 157, 161, 0.2);
}

.course-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    padding: 0 5% 100px;
}

.course-card {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.course-img-placeholder {
    background: linear-gradient(135deg, #f2f0ec, #e7e2db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.course-content {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.course-meta {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.course-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

.course-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.btn-register {
    margin-top: auto;
    align-self: flex-start;
    padding: 12px 20px;
    border: 1px solid var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 999px;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.btn-register:hover {
    background: var(--text-main);
    color: #fff;
    transform: translateY(-1px);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    padding: 110px 5% 100px;
    align-items: start;
}

.contact-info {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-soft);
}

.contact-info h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3vw, 3rem);
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.info-block {
    display: grid;
    gap: 12px;
    font-size: 0.95rem;
}

.info-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.info-value {
    color: var(--text-main);
}

.map-placeholder {
    margin-top: 26px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(44, 53, 57, 0.08);
    background: #f7f6f3;
}

.map-placeholder iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

.contact-form-wrapper {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.form-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-input,
.form-textarea,
select.form-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    border: 0;
    background: var(--text-main);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.btn-submit:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.site-footer {
    padding: 80px 5% 44px;
    background: #111;
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
}

.site-footer h4 {
    font-family: var(--font-heading);
    margin-bottom: 14px;
    font-size: 1rem;
}

.site-footer ul {
    list-style: none;
    display: grid;
    gap: 8px;
    color: #bdbdbd;
    font-size: 0.9rem;
}

.site-footer p {
    color: #bdbdbd;
    font-size: 0.9rem;
}

.footer-meta {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    font-size: 0.8rem;
    color: #6d6d6d;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-img-svg {
        height: 360px;
    }

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

    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .course-list {
        grid-template-columns: 1fr;
    }

    .course-card {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        column-count: 2;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero-text {
        padding: 88px 8%;
    }

    .section,
    .page-header,
    .contact-container,
    .intro {
        padding-left: 6%;
        padding-right: 6%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .gallery-container {
        column-count: 1;
    }

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

    .course-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    header {
        padding: 0 6%;
    }

    .hero-text h1 {
        font-size: 2.25rem;
    }

    .accent-box {
        padding: 42px 24px;
    }

    .mobile-menu {
        padding: 74px 22px 30px;
    }
}

@media (max-width: 480px) {
    .page-header h1,
    .intro h1,
    .contact-info h1 {
        font-size: 2rem;
    }

    .card-body h3,
    .product-title,
    .course-title {
        font-size: 1.25rem;
    }
}

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

.hero-text,
.hero-img-svg,
.section-title,
.card,
.product-card,
.gallery-item,
.course-card,
.contact-info,
.contact-form-wrapper,
.accent-box {
    animation: fadeUp 0.75s ease both;
}

.card:nth-child(2),
.product-card:nth-child(2),
.gallery-item:nth-child(2),
.course-card:nth-child(2) {
    animation-delay: 0.08s;
}

.card:nth-child(3),
.product-card:nth-child(3),
.gallery-item:nth-child(3),
.course-card:nth-child(3) {
    animation-delay: 0.16s;
}

.card:hover,
.product-card:hover,
.gallery-item:hover,
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
