/* EHT Startseite, Designspec_Startseite.md vom 03.09.2026
   Alle Farben ausschliesslich ueber Custom Properties, Mobile first. */

:root {
    --eht-mint: #96F0EB;
    --eht-coral: #E15E5B;
    --eht-anthracite: #161616;
    --eht-white: #FFFFFF;
    --eht-grey-050: #F3F3F3;
    --eht-grey-100: #E2E2E2;
    --eht-grey-300: #C6C6C6;
    --eht-grey-600: #6E6E6E;
    --eht-anthracite-line: #3A3A3A;

    --eht-font: "Untitled Sans", Arial, Helvetica, sans-serif;
    --eht-container: 1280px;
    --eht-pad: 20px;
    --eht-gutter: 16px;
    --eht-section: 64px;
}

@media (min-width: 768px) {
    :root { --eht-pad: 24px; --eht-gutter: 24px; }
}

@media (min-width: 1024px) {
    :root { --eht-pad: 40px; --eht-gutter: 32px; --eht-section: 96px; }
}

/* ---------- Grundlagen ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    font-family: var(--eht-font);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--eht-anthracite);
    background: var(--eht-white);
    text-align: left;
}

@media (min-width: 1024px) {
    body { font-size: 1.125rem; }
}

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

h1, h2, h3, p, ul, ol, figure { margin: 0; }

ul { list-style: none; padding: 0; }

a { color: inherit; }

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--eht-anthracite);
    outline-offset: 4px;
}

.eht-container {
    max-width: var(--eht-container);
    margin-inline: auto;
    padding-inline: var(--eht-pad);
}

.eht-skiplink {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 200;
    background: var(--eht-anthracite);
    color: var(--eht-white);
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
}

.eht-skiplink:focus {
    left: 0;
}

/* ---------- Buttons ---------- */

.eht-btn {
    display: inline-block;
    font-family: var(--eht-font);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-align: center;
    text-decoration: none;
    padding: 14px 24px;
    border: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

@media (min-width: 1024px) {
    .eht-btn { font-size: 1.0625rem; padding: 16px 32px; }
}

.eht-btn--primary {
    background: var(--eht-mint);
    color: var(--eht-anthracite);
    border-color: var(--eht-mint);
}

.eht-btn--primary:hover {
    background: var(--eht-white);
    border-color: var(--eht-white);
}

.eht-btn--primary:focus-visible {
    outline: 3px solid var(--eht-white);
    outline-offset: 3px;
}

.eht-btn--ghost {
    background: transparent;
    color: var(--eht-white);
    border-color: var(--eht-white);
}

.eht-btn--ghost:hover {
    background: var(--eht-white);
    color: var(--eht-anthracite);
}

.eht-btn--ghost:focus-visible {
    outline: 3px solid var(--eht-mint);
    outline-offset: 3px;
}

/* ---------- Header ---------- */

.eht-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--eht-white);
    border-bottom: 1px solid var(--eht-grey-100);
}

.eht-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
}

@media (min-width: 768px) {
    .eht-header__inner { min-height: 72px; }
}

@media (min-width: 1024px) {
    .eht-header__inner { min-height: 88px; }
}

.eht-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.eht-brand__mark {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    background: var(--eht-mint);
    transform: rotate(-8deg);
    border-radius: 0;
}

.eht-brand__word {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--eht-anthracite);
}

.eht-brand__sub {
    display: none;
}

@media (min-width: 768px) {
    .eht-brand__sub {
        display: block;
        font-size: 0.8125rem;
        font-weight: 400;
        line-height: 1.4;
        color: var(--eht-grey-600);
    }
}

.eht-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    padding: 3px 0;
    background: none;
    border: 0;
    cursor: pointer;
}

.eht-burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--eht-anthracite);
}

.eht-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--eht-white);
    border-bottom: 1px solid var(--eht-grey-100);
    padding: 24px;
}

.eht-nav.is-open { display: block; }

.eht-nav__list li + li { margin-top: 24px; }

.eht-nav__list a {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    color: var(--eht-anthracite);
}

.eht-nav__list a:hover,
.eht-nav__list a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--eht-mint);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

@media (min-width: 1024px) {
    .eht-burger { display: none; }

    .eht-nav {
        display: block;
        position: static;
        padding: 0;
        border: 0;
        background: none;
    }

    .eht-nav__list {
        display: flex;
        align-items: center;
        gap: 32px;
    }

    .eht-nav__list li + li { margin-top: 0; }

    .eht-nav__list a { font-size: 1.0625rem; }
}

/* ---------- Hero ---------- */

.eht-hero {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 480px;
    background: var(--eht-anthracite);
}

@media (min-width: 768px) {
    .eht-hero { min-height: 560px; }
}

@media (min-width: 1024px) {
    .eht-hero { min-height: 620px; }
}

.eht-hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.eht-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eht-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(22, 22, 22, 0.55) 0%,
        rgba(22, 22, 22, 0.82) 100%);
}

@media (min-width: 768px) {
    .eht-hero__media img { object-position: center right; }

    .eht-hero__media::after {
        background: linear-gradient(90deg,
            rgba(22, 22, 22, 0.78) 0%,
            rgba(22, 22, 22, 0.55) 45%,
            rgba(22, 22, 22, 0.15) 100%);
    }
}

.eht-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: var(--eht-section);
}

.eht-hero__content { max-width: 720px; }

.eht-hero__overline {
    color: var(--eht-mint);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.eht-hero__mark {
    color: var(--eht-mint);
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.eht-hero__markline {
    color: var(--eht-mint);
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 16px;
}

.eht-hero__headline {
    color: var(--eht-white);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 18ch;
    margin-bottom: 24px;
}

.eht-hero__subheadline {
    color: var(--eht-white);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.5;
    max-width: 560px;
    margin-bottom: 40px;
}

@media (min-width: 1024px) {
    .eht-hero__overline { font-size: 0.875rem; }
    .eht-hero__mark { font-size: 8rem; }
    .eht-hero__markline { font-size: 1.375rem; }
    .eht-hero__headline { font-size: 3.5rem; }
    .eht-hero__subheadline { font-size: 1.375rem; }
}

.eht-hero__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

@media (min-width: 480px) {
    .eht-hero__actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 16px;
    }
}

.eht-hero__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    max-width: 260px;
    background: var(--eht-coral);
    color: var(--eht-anthracite);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 0;
}

@media (min-width: 768px) {
    .eht-hero__badge {
        top: 40px;
        right: 64px;
        font-size: 0.875rem;
    }
}

.eht-hero__note { display: none; }

@media (min-width: 768px) {
    .eht-hero__note {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 64px;
        bottom: -32px;
        z-index: 2;
        width: 148px;
        height: 148px;
        padding: 16px;
        background: #FFEBA1;
        color: #CC0000;
        font-family: 'Kalam', 'Comic Sans MS', cursive;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.3;
        text-align: center;
        transform: rotate(-6deg);
        box-shadow: 0 6px 20px rgba(22, 22, 22, 0.25);
        border-radius: 0;
    }
}

@media (min-width: 1024px) {
    .eht-hero__note { width: 200px; height: 200px; font-size: 1.05rem; }
}

/* ---------- Kurzeinordnung (fluid_styled_content Textelement) ---------- */

.eht-main > .frame {
    max-width: var(--eht-container);
    margin-inline: auto;
    padding-inline: var(--eht-pad);
    padding-block: var(--eht-section);
    background: var(--eht-white);
}

.eht-main > .frame h2 {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.01em;
    max-width: 24ch;
    margin-bottom: 16px;
}

@media (min-width: 1024px) {
    .eht-main > .frame h2 { font-size: 2.5rem; margin-bottom: 24px; }
}

.eht-main > .frame-type-text h2::before {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    background: var(--eht-coral);
    margin-bottom: 24px;
}

.eht-main > .frame p {
    font-size: 1.0625rem;
    line-height: 1.6;
    max-width: 68ch;
}

@media (min-width: 1024px) {
    .eht-main > .frame p { font-size: 1.125rem; }
}

.eht-main > .frame p + p { margin-top: 24px; }

/* ---------- Text & Bilder (fluid_styled_content textmedia) ---------- */

.ce-textpic { overflow: hidden; }

.ce-row { display: flex; flex-wrap: wrap; gap: 16px; }

.ce-column { flex: 1 1 0; min-width: 0; }

.ce-gallery img { display: block; width: 100%; height: auto; }

@media (min-width: 768px) {
    .ce-textpic.ce-intext.ce-right .ce-gallery {
        float: right;
        width: 40%;
        margin: 4px 0 24px 40px;
    }

    .ce-textpic.ce-intext.ce-left .ce-gallery {
        float: left;
        width: 40%;
        margin: 4px 40px 24px 0;
    }
}

/* ---------- Card-Grid ---------- */

.eht-card-grid {
    background: var(--eht-grey-050);
    padding-block: var(--eht-section);
}

.eht-card-grid__inner {
    max-width: var(--eht-container);
    margin-inline: auto;
    padding-inline: var(--eht-pad);
}

.eht-card-grid__headline {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.01em;
    max-width: 24ch;
    margin-bottom: 32px;
}

@media (min-width: 1024px) {
    .eht-card-grid__headline { font-size: 2.5rem; margin-bottom: 48px; }
}

.eht-card-grid__cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--eht-gutter);
    align-items: stretch;
}

@media (min-width: 768px) {
    .eht-card-grid__cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
    .eht-card-grid__cards { grid-template-columns: repeat(4, 1fr); }
}

.eht-card-grid__card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--eht-white);
    border: 1px solid var(--eht-grey-100);
    border-radius: 4px;
    overflow: hidden;
    text-decoration: none;
    color: var(--eht-anthracite);
    box-shadow: none;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.eht-card-grid__figure {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.eht-card-grid__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
    transition: transform .2s ease;
}

.eht-card-grid__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 20px 20px;
}

@media (min-width: 1024px) {
    .eht-card-grid__body { padding: 16px 24px 24px; }
}

.eht-card-grid__title {
    display: block;
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.25;
}

@media (min-width: 1024px) {
    .eht-card-grid__title { font-size: 1.5rem; }
}

.eht-card-grid__teaser {
    display: block;
    margin-top: 8px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--eht-grey-600);
}

.eht-card-grid__arrow {
    display: block;
    margin-top: auto;
    padding-top: 24px;
}

.eht-card-grid__arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--eht-anthracite);
    stroke-width: 2;
    transition: stroke .2s ease, transform .2s ease;
}

.eht-card-grid__card:hover,
.eht-card-grid__card:focus-visible {
    border-color: var(--eht-anthracite);
    box-shadow: 0 8px 24px rgba(22, 22, 22, 0.12);
    transform: translateY(-4px);
}

.eht-card-grid__card:hover .eht-card-grid__image,
.eht-card-grid__card:focus-visible .eht-card-grid__image {
    transform: scale(1.04);
}

.eht-card-grid__card:hover .eht-card-grid__arrow svg,
.eht-card-grid__card:focus-visible .eht-card-grid__arrow svg {
    stroke: var(--eht-coral);
    transform: translateX(6px);
}

.eht-card-grid__card:focus-visible {
    outline: 3px solid var(--eht-anthracite);
    outline-offset: 3px;
}

.eht-card-grid__card:active {
    transform: translateY(-1px);
}

/* ---------- Anthrazit-Band ---------- */

.eht-textband {
    background: var(--eht-anthracite);
    padding-block: var(--eht-section);
}

.eht-textband__inner {
    max-width: var(--eht-container);
    margin-inline: auto;
    padding-inline: var(--eht-pad);
}

.eht-textband__content { max-width: 720px; }

.eht-textband__headline {
    color: var(--eht-mint);
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -0.01em;
    max-width: 24ch;
}

.eht-textband__text {
    color: var(--eht-white);
    font-size: 1.0625rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 640px;
    margin-top: 16px;
}

@media (min-width: 1024px) {
    .eht-textband__headline { font-size: 2.5rem; }
    .eht-textband__text { font-size: 1.125rem; margin-top: 24px; }
}

.eht-textband__cta { display: inline-block; margin-top: 40px; }

/* ---------- Footer ---------- */

.eht-footer {
    background: var(--eht-anthracite);
    color: var(--eht-white);
    padding-top: 48px;
    padding-bottom: 24px;
}

@media (min-width: 1024px) {
    .eht-footer { padding-top: 64px; padding-bottom: 32px; }
}

.eht-footer__cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .eht-footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .eht-footer__cols { grid-template-columns: repeat(4, 1fr); }
}

.eht-footer__title {
    color: var(--eht-mint);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.eht-footer__list li,
.eht-footer__contact li {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--eht-white);
}

.eht-footer a {
    color: var(--eht-white);
    font-size: 1rem;
    line-height: 1.6;
    text-decoration: none;
}

.eht-footer a:hover { color: var(--eht-mint); }

.eht-footer a:focus-visible {
    outline: 3px solid var(--eht-mint);
    outline-offset: 3px;
}

.eht-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--eht-anthracite-line);
    color: var(--eht-grey-300);
    font-size: 0.875rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .eht-footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        gap: 24px;
    }
}

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
    .eht-card-grid__card,
    .eht-card-grid__image,
    .eht-card-grid__arrow svg {
        transition: border-color .2s ease, box-shadow .2s ease, stroke .2s ease;
    }

    .eht-card-grid__card:hover,
    .eht-card-grid__card:focus-visible,
    .eht-card-grid__card:active,
    .eht-card-grid__card:hover .eht-card-grid__image,
    .eht-card-grid__card:focus-visible .eht-card-grid__image,
    .eht-card-grid__card:hover .eht-card-grid__arrow svg,
    .eht-card-grid__card:focus-visible .eht-card-grid__arrow svg {
        transform: none;
    }
}
