:root {
    /* Brand Colors */
    --green: #b7cf42;
    --green-dark: #7b8f28;
    --green-soft: #e8f0c5;

    /* Neutral / Text */
    --text: #1f241e;
    --text-muted: #5d6558;
    --surface: #ffffff;
    --line: #dde4d2;

    /* Depth */
    --shadow-sm: 0 4px 6px -1px rgba(43, 52, 33, 0.05), 0 2px 4px -1px rgba(43, 52, 33, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(43, 52, 33, 0.08), 0 4px 6px -2px rgba(43, 52, 33, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(43, 52, 33, 0.1), 0 10px 10px -5px rgba(43, 52, 33, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(43, 52, 33, 0.25);

    /* Typography */
    --heading-font: 'Inter', sans-serif;
    --body-font: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text);
    background: linear-gradient(180deg, #fefefe 0%, #f6f7f2 100%);
    line-height: 1.6;
}

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

a {
    color: inherit;
    transition: color 0.2s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

.container {
    width: min(1200px, calc(100% - 2.5rem));
    margin: 0 auto;
}

/* Header */
.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(221, 228, 210, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 1.5rem;
}

.masthead__logo img {
    height: 48px;
    width: auto;
}

.masthead__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.masthead__wordmark {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: var(--text);
    display: flex;
    align-items: center;
}

.masthead__wordmark-bar {
    color: var(--green);
    font-weight: 300;
    margin: 0 1px;
    font-size: 1.4em;
    position: relative;
    top: -1px;
}

.masthead__wordmark-sub {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 0.3em;
    font-size: 0.9em;
    letter-spacing: 0em;
}

.masthead__nav {
    display: flex;
    gap: 2rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--text);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--green-dark);
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

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

/* Hero */
.hero {
    background: var(--green);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    padding-top: 2rem;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.2), transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.15), transparent 50%);
    pointer-events: none;
}

.hero__inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    /* Center horizontally */
    text-align: center;
    /* Center text */
    padding: 4rem 0 6rem;
    position: relative;
    z-index: 1;
    max-width: 800px;
    /* Constrain width for better readability */
    margin: 0 auto;
}

.hero__content {
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center children (buttons, image) */
}

.hero__content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 1.5rem;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.hero__content p {
    font-size: 1.25rem;
    margin: 0 0 2.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 48ch;
    /* Slightly wider since it's centered */
    line-height: 1.6;
}

.hero__visual {
    animation: floatIn 1s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    margin-bottom: 2rem;
    /* Add space between image and H1 */
}

.hero__visual img {
    width: 100%;
    max-width: 420px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(31, 36, 30, 0.25));
}

@media (min-width: 1200px) {
    .hero__visual img {
        max-width: 520px;
    }
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    /* Center buttons */
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 99px;
    border: 2px solid transparent;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.button--primary {
    background: #ffffff;
    color: var(--green-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.button--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(4px);
}

.button--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section__header {
    margin-bottom: 3.5rem;
    max-width: 760px;
}

.section__header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin: 0 0 1rem;
}

.section__header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.6;
}

.section__header--light h2,
.section__header--light p {
    color: #ffffff;
}

.section__header--light p {
    opacity: 0.9;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: transparent active;
}

.card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    line-height: 1.3;
}

.card p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.service-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.service-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 1.25rem;
    background: var(--green);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-size: 1.75rem;
    box-shadow: 0 8px 16px rgba(183, 207, 66, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover .service-card__icon {
    transform: translateY(-2px) rotate(5deg);
}

/* About Section */
.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-muted);
    display: grid;
    gap: 1rem;
}

.card-list li {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-list li::before {
    content: "✓";
    color: var(--green-dark);
    font-weight: 800;
}

/* Contact */
.contact {
    background: var(--green);
    position: relative;
}

/* Pattern overlay for contact section */
.contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#ffffff 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.1;
    pointer-events: none;
}

.contact__inner {
    display: grid;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.contact__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: none;
    box-shadow: var(--shadow-md);
}

.contact-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    display: block;
}

.contact-card__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.contact-card__header h3 {
    margin: 0;
}

.contact-card__icon {
    color: var(--green-dark);
    font-size: 1.5rem;
    flex: 0 0 auto;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

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

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

input,
textarea {
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--line);
    font-family: inherit;
    font-size: 1rem;
    background: #ffffff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--green-dark);
    box-shadow: 0 0 0 4px rgba(183, 207, 66, 0.2);
}

/* Footer */
.footer {
    padding: 4rem 0 2rem;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    color: var(--text-muted);
}

.footer__links {
    display: flex;
    gap: 2rem;
}

.footer__links a:hover {
    color: var(--green-dark);
}

.footer__copy {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Impressum */
.impressum-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.impressum-block+.impressum-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

/* Mobile */
@media (max-width: 900px) {
    .masthead__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .masthead__nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .hero__inner {
        padding: 3rem 0 4rem;
        gap: 3rem;
    }
}

/* Animation Classes */
.animate-fade-up {
    animation: fadeUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}