:root {
    --hm-green: #00a075;
    --hm-green-dark: #005e52;
    --hm-green-light: #7dbf68;
    --hm-blue: #194383;
    --hm-beige: #f7f1e6;
    --hm-soft-green: #eaf6f1;
    --hm-text: #073f39;
    --hm-border: #dce9e5;
    --shadow: 0 18px 50px rgba(0, 94, 82, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: var(--hm-text);
}

a {
    color: inherit;
}

/* NAVIGATION */

nav {
    position: sticky;
    top: 0;
    z-index: 9999;

    width: 100%;
    min-height: 88px;

    padding: 10px max(24px, calc((100vw - 1180px) / 2 + 24px));

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;

    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(0, 94, 82, 0.12);
    box-shadow: 0 8px 30px rgba(0, 94, 82, 0.07);
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    height: 72px;
    width: auto;
    display: block;
}

.logo img:hover {
    transform: scale(1.03);
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a {
    position: relative;
    color: var(--hm-green-dark);
    text-decoration: none;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--hm-green);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;

    width: 0;
    height: 3px;

    background: var(--hm-green);
    border-radius: 999px;

    transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--hm-green);
}

.menu-toggle {
    display: none;
}

/* LOGO AUF DANKE-SEITEN */

body > .logo {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
}

body > .logo img {
    height: 90px;
    width: auto;
}

/* HERO */

.hero {
    max-width: 1180px;
    margin: 0 auto;
    padding: 54px 24px 76px;

    display: grid;
    grid-template-columns: minmax(0, 560px) 420px;
    gap: 90px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    line-height: 1.08;
    margin: 0 0 24px;
    color: var(--hm-green-dark);
    letter-spacing: -0.03em;
}

.hero-text p {
    font-size: 22px;
    line-height: 1.45;
    color: #253f3a;
    margin: 0 0 32px;
    max-width: 540px;
}

.hero-text a {
    display: inline-block;
    background: var(--hm-green);
    color: #ffffff;
    text-decoration: none;
    padding: 17px 34px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 160, 117, 0.22);
}

.hero-text a:hover {
    background: var(--hm-green-dark);
}

.hero-image {
    width: 420px;
    height: 420px;
    border-radius: 34px;
    overflow: hidden;
    background: var(--hm-soft-green);
    box-shadow: var(--shadow);
    position: relative;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* FORMULAR */

.formular-section {
    width: 100%;
    padding: 34px 24px 66px;
    background: linear-gradient(180deg, #ffffff 0%, var(--hm-soft-green) 100%);
}

.angebot-card {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    padding: 48px;
    border-radius: 34px;
    box-shadow: var(--shadow);
    border: 1px solid var(--hm-border);
}

.angebot-card h2 {
    font-size: 42px;
    line-height: 1.12;
    margin: 0 0 36px;
    color: var(--hm-green-dark);
    letter-spacing: -0.025em;
}

form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 20px;
    align-items: start;
}

input,
select,
textarea {
    width: 100%;
    min-height: 58px;
    background: #ffffff;
    border: 1.5px solid #cbded8;
    color: var(--hm-text);
    padding: 16px 18px;
    border-radius: 12px;
    font-size: 17px;
    font-family: inherit;
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--hm-green);
    box-shadow: 0 0 0 4px rgba(0, 160, 117, 0.12);
}

.date-field {
    position: relative;
    display: block;
}

.date-field label {
    position: absolute;
    top: -22px;
    left: 2px;
    font-size: 14px;
    font-weight: 800;
    color: var(--hm-green-dark);
}

.date-field input {
    width: 100%;
    min-height: 58px;
}

.full-width-textarea,
.full-width-checkbox {
    grid-column: span 2;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 22px 0;
    color: var(--hm-text);
    font-size: 16px;
}

.checkbox input {
    width: auto;
    min-height: auto;
    accent-color: var(--hm-green);
}

.checkbox a {
    color: var(--hm-green-dark);
    font-weight: 800;
    text-decoration: underline;
}

button,
.submit-btn {
    width: 100%;
    background: var(--hm-green);
    color: #ffffff;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 160, 117, 0.2);
}

button:hover,
.submit-btn:hover {
    background: var(--hm-green-dark);
}

/* TIER SWITCH */

.tier-switch {
    display: flex;
    gap: 14px;
    margin-bottom: 26px;
}

.tier-switch button {
    flex: 1;
    background: var(--hm-soft-green);
    color: var(--hm-green-dark);
    border: 2px solid var(--hm-green);
    box-shadow: none;
}

.tier-switch button.active {
    background: var(--hm-green);
    color: #ffffff;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 800;
    color: var(--hm-green-dark);
}

.form-group small {
    color: #64756f;
    font-size: 13px;
    line-height: 1.4;
}

/* INFO / TRUST */

.info-section,
.trust-section,
.example-section,
.legal-section {
    padding: 58px 24px;
    background: #ffffff;
}

.info-card,
.info-grid,
.trust-grid,
.example-card,
.legal-card {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.info-card h2,
.example-card h2,
.legal-card h1 {
    font-size: 38px;
    margin: 0 0 18px;
    color: var(--hm-green-dark);
    letter-spacing: -0.02em;
}

.info-card p,
.example-card p,
.legal-card p,
.legal-card li {
    font-size: 18px;
    line-height: 1.65;
    color: #394c47;
}

.info-grid,
.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.info-box,
.trust-box {
    background: var(--hm-soft-green);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--hm-border);
}

.info-box h3,
.trust-box h3 {
    color: var(--hm-green-dark);
    margin-top: 0;
}

.info-box p,
.trust-box p {
    color: #39504b;
    line-height: 1.55;
}

.link-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card p,
.link-card h3,
.link-card strong {
    text-decoration: none;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 94, 82, 0.13);
}

/* FORMULAR-INFOKARTE */

.form-info {
    margin-top: 34px;
    padding: 26px;
    background: var(--hm-soft-green);
    border-radius: 22px;
    border: 1px solid var(--hm-border);
    box-shadow: none;
}

.form-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--hm-green-dark);
    font-size: 24px;
}

.form-info p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

/* EXAMPLE / LEGAL */

.example-card,
.legal-card {
    background: #ffffff;
    padding: 38px;
    border-radius: 28px;
    border: 1px solid var(--hm-border);
    box-shadow: var(--shadow);
}

.legal-card h2,
.legal-card h3 {
    color: var(--hm-green-dark);
}

.legal-card a {
    color: var(--hm-green-dark);
    font-weight: 800;
}

.table-wrapper {
    overflow-x: auto;
}

.example-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    color: #111111;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--hm-border);
}

.example-table th,
.example-table td {
    padding: 18px;
    border-bottom: 1px solid #b8dfd4;
    text-align: left;
}

.example-table th {
    background: var(--hm-soft-green);
    color: var(--hm-green-dark);
    font-weight: 800;
}

/* FOOTER */

.footer {
    padding: 38px 24px;
    border-top: 1px solid var(--hm-border);
    background: linear-gradient(180deg, #ffffff 0%, var(--hm-soft-green) 100%);
}

.footer-content {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    color: var(--hm-green-dark);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 5px;
    line-height: 1.35;
}

.footer-brand strong {
    font-size: 18px;
}

.footer-brand span {
    font-size: 15px;
    color: #39504b;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--hm-green-dark);
    text-decoration: none;
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--hm-green);
    text-decoration: underline;
}

/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 99999;

    display: flex;
    justify-content: center;
}

.cookie-content {
    width: 100%;
    max-width: 760px;

    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid var(--hm-border);
    border-radius: 24px;

    padding: 22px;

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.cookie-content p {
    margin: 0 0 18px;
    line-height: 1.5;
    color: var(--hm-text);
}

.cookie-buttons {
    display: flex;
    gap: 14px;
}

.cookie-buttons button {
    width: auto;
    min-width: 140px;
}

.cookie-buttons .secondary {
    background: #e8eceb;
    color: var(--hm-text);
}

/* MOBILE */

@media (max-width: 768px) {

    nav {
        position: sticky;
        top: 0;
        z-index: 9999;

        width: 100%;
        min-height: 82px;

        padding: 10px 18px;

        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 12px;

        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid rgba(0, 94, 82, 0.12);
        box-shadow: 0 8px 30px rgba(0, 94, 82, 0.07);
    }

    nav .logo {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }

    nav .logo img {
        height: 58px;
        width: auto;
        max-width: 150px;
        display: block;
    }

    .menu-toggle {
        grid-column: 3;
        grid-row: 1;

        display: flex;
        align-items: center;
        justify-content: center;

        width: 52px;
        height: 52px;

        margin: 0;
        padding: 0;

        appearance: none;
        -webkit-appearance: none;

        background: rgba(0, 160, 117, 0.08);
        color: var(--hm-green-dark);

        border: 1px solid rgba(0, 160, 117, 0.2);
        border-radius: 16px;

        font-size: 32px;
        font-weight: 800;
        line-height: 1;

        cursor: pointer;
        box-shadow: none;
    }

    .menu-toggle:hover {
        background: rgba(0, 160, 117, 0.14);
        color: var(--hm-green-dark);
    }

    .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;

        display: none;

        width: 100%;
        margin-top: 10px;

        background: #ffffff;
        border: 1px solid var(--hm-border);
        border-radius: 24px;
        padding: 26px 24px;

        box-shadow: 0 18px 50px rgba(0, 94, 82, 0.16);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 22px;
        align-items: center;
    }

    .nav-links a {
        font-size: 22px;
        font-weight: 800;
        line-height: 1.2;
    }

    .nav-links a::after {
        bottom: -8px;
    }

    .hero {
        padding: 40px 20px 44px;

        display: flex;
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    .hero-text {
        width: 100%;
        max-width: 430px;
        margin: 0 auto;
    }

    .hero-text h1 {
        font-size: 34px;
        line-height: 1.14;
        margin-bottom: 20px;
    }

    .hero-text p {
        font-size: 18px;
        line-height: 1.45;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-text a {
        padding: 15px 26px;
        font-size: 16px;
    }

    .hero-image {
        width: 300px;
        height: 300px;
        max-width: 100%;
        margin: 0 auto;
        border-radius: 30px;
    }

    .formular-section {
        padding: 30px 16px 50px;
    }

    .angebot-card {
        width: 100%;
        max-width: 430px;
        padding: 30px 20px;
        border-radius: 28px;
    }

    .angebot-card h2 {
        font-size: 30px;
        line-height: 1.16;
        text-align: left;
        margin-bottom: 30px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .full-width-textarea,
    .full-width-checkbox {
        grid-column: span 1;
    }

    input,
    select,
    textarea {
        font-size: 16px;
        min-height: 56px;
        padding: 15px 16px;
    }

    .date-field {
        margin-top: 18px;
    }

    .checkbox {
        font-size: 15px;
        align-items: flex-start;
    }

    .checkbox input {
        margin-top: 3px;
    }

    .tier-switch {
        flex-direction: column;
    }

    .info-section,
    .trust-section,
    .example-section,
    .legal-section {
        padding: 42px 16px;
    }

    .info-card,
    .example-card,
    .legal-card {
        max-width: 430px;
    }

    .info-card h2,
    .example-card h2,
    .legal-card h1 {
        font-size: 28px;
    }

    .info-grid,
    .trust-grid {
        grid-template-columns: 1fr;
        max-width: 430px;
    }

    .info-box,
    .trust-box,
    .example-card,
    .legal-card {
        padding: 24px;
        border-radius: 24px;
    }

    .example-table th,
    .example-table td {
        padding: 13px;
        font-size: 14px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        gap: 14px;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;
    }

    body > .logo {
        top: 14px;
        left: 14px;
    }

    body > .logo img {
        height: 70px;
    }
}