/**
 * Amouria Relaunch 2026-07 – Styles für neue Seiten-Bausteine
 * (hero-banner, section, feature-tiles, member-signup, b2b-form).
 * Wird von Amouria_Elementor nach widgets.css enqueued.
 *
 * Design-Tokens (aus bestehendem Konzept):
 *   Anthrazit  #2d2d2d   Gold-Akzent #B8956A   Beige #F4EFE8 / #F3EFE9
 *   Muted-Text #74675a   Border      #d4c8b5   Weiß  #FFFFFF
 *   Headings 'Crimson Pro', Georgia, serif   Body/UI 'Outfit', sans-serif
 */

:root {
    --amr-dark: #2d2d2d;
    --amr-gold: #B8956A;
    --amr-beige: #F4EFE8;
    --amr-beige-2: #F3EFE9;
    --amr-muted: #74675a;
    --amr-border: #d4c8b5;
    --amr-white: #FFFFFF;
    --amr-serif: 'Crimson Pro', Georgia, serif;
    --amr-sans: 'Outfit', sans-serif;
}

/* ==========================================================================
   Task 1.2 – hero-banner
   ========================================================================== */

.amr-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 80vh;
    overflow: hidden;
    background-color: var(--amr-dark, #2d2d2d);
}

.amr-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Mobiles Hochformat-Hintergrundbild (nur wenn gesetzt): Desktop-Bild ausblenden,
   Mobil-Bild einblenden ab ≤767px. */
.amr-hero__bg--mobile { display: none; }
@media (max-width: 767px) {
    .amr-hero__bg--desktop { display: none; }
    .amr-hero__bg--mobile { display: block; }
}

.amr-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--amr-dark, #2d2d2d);
    opacity: 0.45;
    pointer-events: none;
}

.amr-hero__inner {
    position: relative;
    width: 100%;
    max-width: 75rem; /* ~1200px */
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 2.5em;
    padding-left: 1.5em;
    padding-right: 1.5em;
    box-sizing: border-box;
}

.amr-hero--has-media .amr-hero__inner {
    grid-template-columns: 1.1fr 0.9fr;
}

.amr-hero__content {
    position: relative;
    z-index: 2;
    padding: 3em 2em;
    box-sizing: border-box;
}

.amr-hero--align-center .amr-hero__content {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.amr-hero--align-left .amr-hero__content {
    text-align: left;
}

.amr-hero__media {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.amr-hero__eyebrow {
    margin: 0 0 0.75em;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #e8c9a0; /* helleres Gold für Kontrast auf hellen Bildern */
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.6);
}

.amr-hero__headline {
    margin: 0 0 0.6em;
    font-family: var(--amr-serif, 'Crimson Pro', Georgia, serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    font-weight: 500;
    color: var(--amr-white, #FFFFFF);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.amr-hero__subtext {
    margin: 0 0 1.75em;
    max-width: 34em;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    color: #ffffff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.amr-hero--align-center .amr-hero__subtext {
    margin-left: auto;
    margin-right: auto;
}

.amr-hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
}

.amr-hero--align-center .amr-hero__buttons {
    justify-content: center;
}

.amr-btn {
    display: inline-block;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 1em 2em;
    border-radius: 0.2em;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
}

.amr-btn--dark {
    background-color: var(--amr-dark, #2d2d2d);
    color: var(--amr-white, #FFFFFF);
    border-color: var(--amr-dark, #2d2d2d);
}

.amr-btn--dark:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    color: var(--amr-white, #FFFFFF);
}

.amr-btn--gold {
    background-color: var(--amr-gold, #B8956A);
    color: var(--amr-white, #FFFFFF);
    border-color: var(--amr-gold, #B8956A);
}

.amr-btn--gold:hover {
    background-color: #a17f58;
    border-color: #a17f58;
    color: var(--amr-white, #FFFFFF);
}

.amr-btn--outline {
    background-color: transparent;
    color: var(--amr-white, #FFFFFF);
    border-color: rgba(255, 255, 255, 0.75);
}

.amr-btn--outline:hover {
    background-color: var(--amr-gold, #B8956A);
    border-color: var(--amr-gold, #B8956A);
    color: var(--amr-white, #FFFFFF);
}

.amr-hero--transparent .amr-hero__content {
    padding-top: calc(var(--amr-hdr-height, 6rem) + 2.5rem);
}

/* Oben abdunkeln, damit die (helle) Navigation über hellen Hero-Bildern lesbar bleibt. */
.amr-hero--transparent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 16rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Tablet: großzügiger seitlicher Innenabstand */
@media (max-width: 1024px) {
    .amr-hero__content {
        padding-left: 2.5em;
        padding-right: 2.5em;
    }
}

/* Mobile: 1 Spalte (Medium unter dem Text), Buttons stapeln, Höhe entspannt sich */
@media (max-width: 767px) {
    .amr-hero {
        min-height: auto;
    }

    .amr-hero__inner {
        gap: 2em;
        padding-top: 3.5em;
        padding-bottom: 3.5em;
    }

    .amr-hero--has-media .amr-hero__inner {
        grid-template-columns: 1fr;
    }

    .amr-hero--has-media .amr-hero__media {
        order: 2;
    }

    .amr-hero--has-media .amr-hero__content {
        order: 1;
    }

    .amr-hero__content {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }

    .amr-hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .amr-hero__buttons .amr-btn {
        text-align: center;
        width: 100%;
    }
}


/* ==========================================================================
   Task 1.6 – section
   ========================================================================== */

.amr-section {
    position: relative;
    box-sizing: border-box;
    /* Innenabstand (auch horizontal) kommt ausschließlich vom Elementor-Padding-Control. */
}

.amr-section--bg-transparent {
    background: none;
}

.amr-section--bg-beige {
    background-color: var(--amr-beige, #F4EFE8);
}

.amr-section--bg-white {
    background-color: var(--amr-white, #FFFFFF);
}

.amr-section__inner {
    max-width: 75rem; /* ~1200px */
    margin: 0 auto;
    box-sizing: border-box;
}

/* 2-Spalten-Layout, wenn ein Bild links oder rechts gesetzt ist */
.amr-section--img-left .amr-section__inner,
.amr-section--img-right .amr-section__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3em;
    align-items: center;
}

.amr-section--img-left .amr-section__media {
    order: -1;
}

.amr-section--img-right .amr-section__media {
    order: 1;
}

.amr-section__text {
    min-width: 0;
}

.amr-section--align-center:not(.amr-section--img-left):not(.amr-section--img-right) .amr-section__text {
    text-align: center;
    max-width: 46rem;
    margin: 0 auto;
}

.amr-section__eyebrow {
    margin: 0 0 0.75em;
    max-width: none !important; /* Theme setzt sonst max-width auf <p> → verschiebt zentrierten Eyebrow nach links */
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--amr-gold, #B8956A);
}

.amr-section__heading {
    margin: 0 0 0.5em;
    font-family: var(--amr-serif, 'Crimson Pro', Georgia, serif);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 300;
    letter-spacing: normal;
    color: var(--amr-dark, #2d2d2d);
}

.amr-section__body {
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--amr-muted, #74675a);
}

.amr-section__body p {
    margin: 0 0 1.2em;
}

.amr-section__body p:last-child {
    margin-bottom: 0;
}

.amr-section__body ul,
.amr-section__body ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

.amr-section__body ul {
    list-style: none;
    padding-left: 0;
}

.amr-section__body ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.6em;
}

.amr-section__body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.4em;
    height: 0.4em;
    border-radius: 50%;
    background-color: var(--amr-gold, #B8956A);
}

.amr-section__body ol li {
    margin-bottom: 0.6em;
}

.amr-section--align-center .amr-section__body ul li {
    text-align: left;
}

.amr-section__script {
    margin: 1em 0 0;
    max-width: none !important;
    font-family: var(--amr-serif, 'Crimson Pro', Georgia, serif);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--amr-gold, #B8956A);
}

.amr-section__body p,
.amr-section__body ul,
.amr-section__body ol {
    max-width: none !important;
}

.amr-section__media img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.15em;
}

/* Mobile: 2-Spalten wird 1-Spalte, Bild immer unter dem Text.
   (Seitlicher/vertikaler Innenabstand kommt vom Elementor-Padding-Control.) */
@media (max-width: 767px) {
    .amr-section--img-left .amr-section__inner,
    .amr-section--img-right .amr-section__inner {
        grid-template-columns: 1fr;
        gap: 2em;
    }

    .amr-section--img-left .amr-section__media,
    .amr-section--img-right .amr-section__media {
        order: 1;
    }

    .amr-section--img-left .amr-section__text,
    .amr-section--img-right .amr-section__text {
        order: 0;
    }
}


/* ==========================================================================
   Task 1.3 – feature-tiles
   ========================================================================== */

.amr-tiles {
    display: grid;
    gap: 1.75em;
    box-sizing: border-box;
}

.amr-tiles--cols-2 { grid-template-columns: repeat(2, 1fr); }
.amr-tiles--cols-3 { grid-template-columns: repeat(3, 1fr); }
.amr-tiles--cols-4 { grid-template-columns: repeat(4, 1fr); }
.amr-tiles--cols-5 { grid-template-columns: repeat(5, 1fr); }

.amr-tile {
    box-sizing: border-box;
}

/* --- overlay mode (Startseite "3 Bereiche") --- */

.amr-tile--overlay {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 3 / 2;
    border-radius: 0.2em;
    overflow: hidden;
    background-color: var(--amr-dark, #2d2d2d);
}

.amr-tile--overlay img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    object-position: left center;
    display: block;
}

.amr-tile--overlay .amr-tile__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 26%, rgba(0, 0, 0, 0.04) 50%, rgba(0, 0, 0, 0.55) 82%, rgba(0, 0, 0, 0.82) 100%);
    pointer-events: none;
}

.amr-tile--overlay .amr-tile__overlaycontent {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.75em 1.5em;
    box-sizing: border-box;
    color: var(--amr-white, #FFFFFF);
}

.amr-tile--overlay .amr-tile__title {
    margin: 0 0 0.35em;
    font-family: var(--amr-serif, 'Crimson Pro', Georgia, serif);
    font-size: clamp(1.6rem, 2vw, 2.1rem);
    line-height: 1.12;
    font-weight: 600;
    color: var(--amr-white, #FFFFFF);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.amr-tile--overlay .amr-tile__text {
    margin: 0 0 1.1em;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 1.02rem;
    line-height: 1.5;
    color: #ffffff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.6);
}

.amr-tile--overlay .amr-tile__btn {
    margin-top: 0.25em;
}

/* --- card mode (Mitgliedschaftsseite, Vorteile) --- */

.amr-tile--card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--amr-white, #FFFFFF);
    border: 1px solid var(--amr-border, #d4c8b5);
    border-radius: 0.25em;
    padding: 2em 1.5em;
}

.amr-tile--card .amr-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25em;
    height: 3.25em;
    margin: 0 auto 1em;
    border-radius: 50%;
    background-color: #f6e9e4;
    color: var(--amr-gold, #B8956A);
    font-size: 1.25em;
}

.amr-tile--card .amr-tile__icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.amr-tile--card .amr-tile__title {
    margin: 0 0 0.5em;
    font-family: var(--amr-serif, 'Crimson Pro', Georgia, serif);
    font-size: 1.15rem;
    line-height: 1.25;
    font-weight: 500;
    color: var(--amr-dark, #2d2d2d);
}

.amr-tile--card .amr-tile__text {
    margin: 0;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--amr-muted, #74675a);
}

.amr-tile--card .amr-tile__btn {
    margin-top: 1.25em;
}

/* --- plain mode (B2B-Seite, reine Textspalten) --- */

.amr-tile--plain {
    text-align: center;
    padding: 0 1em;
}

.amr-tile__icon--plain {
    width: 3.5em;
    height: 3.5em;
    margin: 0 auto 1em;
    border-radius: 50%;
    background: #f6e9e4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--amr-gold, #B8956A);
    font-size: 1.25em;
}

.amr-tile__icon--plain svg { width: 1em; height: 1em; fill: currentColor; }

.amr-tile--plain .amr-tile__title {
    margin: 0 0 0.6em;
    font-family: var(--amr-serif, 'Crimson Pro', Georgia, serif);
    font-size: 1.3rem;
    line-height: 1.25;
    font-weight: 500;
    color: var(--amr-dark, #2d2d2d);
}

.amr-tile--plain .amr-tile__divider {
    display: block;
    width: 2.5em;
    height: 1px;
    margin: 0 auto 1em;
    background-color: var(--amr-gold, #B8956A);
}

.amr-tile--plain .amr-tile__text {
    margin: 0;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--amr-muted, #74675a);
}

.amr-tile--plain .amr-tile__btn {
    margin-top: 1.25em;
}

/* Tablet: 4/5 Spalten und 3 Spalten auf 2 reduzieren */
@media (max-width: 1024px) {
    .amr-tiles--cols-3,
    .amr-tiles--cols-4,
    .amr-tiles--cols-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: alles auf 1 Spalte, Overlay-Kacheln flacher */
@media (max-width: 767px) {
    .amr-tiles--cols-2,
    .amr-tiles--cols-3,
    .amr-tiles--cols-4,
    .amr-tiles--cols-5 {
        grid-template-columns: 1fr;
    }

    .amr-tiles {
        padding-left: 1.5em;
        padding-right: 1.5em;
        row-gap: 2.25em;
    }

    .amr-tile--overlay {
        aspect-ratio: 4 / 3;
    }

    .amr-tile--card {
        padding: 1.75em 1.5em;
    }
}


/* ==========================================================================
   Task 3.2 / 4.2 – forms (member-signup, b2b-form)
   ========================================================================== */

.amr-form {
    background: var(--amr-white, #FFFFFF);
    border: 1px solid var(--amr-border, #d4c8b5);
    border-radius: 0.4em;
    padding: 2.5em;
    box-sizing: border-box;
    box-shadow: 0 1.5em 3em rgba(45, 45, 45, 0.06);
}

.amr-form__eyebrow {
    margin: 0 0 0.5em;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--amr-gold, #B8956A);
    max-width: none !important;
}

.amr-form__heading {
    margin: 0 0 0.4em;
    font-family: var(--amr-serif, 'Crimson Pro', Georgia, serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--amr-dark, #2d2d2d);
}

.amr-form__intro {
    margin: 0 0 1.75em;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--amr-muted, #74675a);
    max-width: none !important;
}

.amr-form__form { margin: 0; }

.amr-form__row { margin-bottom: 1.1em; }

.amr-form__row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1em;
}

.amr-form__field { display: flex; flex-direction: column; }

.amr-form__field label {
    margin-bottom: 0.4em;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--amr-dark, #2d2d2d);
}

.amr-form__form input[type="text"],
.amr-form__form input[type="email"],
.amr-form__form input[type="tel"],
.amr-form__form input[type="date"],
.amr-form__form select,
.amr-form__form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.8em 0.9em;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 1rem;
    color: var(--amr-dark, #2d2d2d);
    background: #faf8f4;
    border: 1px solid var(--amr-border, #d4c8b5);
    border-radius: 0.25em;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.amr-form__form textarea { resize: vertical; min-height: 6em; }

.amr-form__form input:focus,
.amr-form__form select:focus,
.amr-form__form textarea:focus {
    outline: none;
    border-color: var(--amr-gold, #B8956A);
    box-shadow: 0 0 0 0.15em rgba(184, 149, 106, 0.18);
}

/* Honeypot komplett verstecken (nur Bots füllen es) */
.amr-form__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.amr-form__check {
    display: flex;
    align-items: flex-start;
    gap: 0.65em;
    margin: 0.9em 0 0;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--amr-muted, #74675a);
    cursor: pointer;
}

.amr-form__check input[type="checkbox"] {
    margin-top: 0.2em;
    width: 1.1em;
    height: 1.1em;
    accent-color: var(--amr-gold, #B8956A);
    flex-shrink: 0;
}

.amr-form__check a { color: var(--amr-gold, #B8956A); text-decoration: underline; }

.amr-form__submit {
    margin-top: 1.6em;
    width: 100%;
    cursor: pointer;
    border: none;
}

.amr-form__submit.is-loading { opacity: 0.6; cursor: progress; }

.amr-form__msg {
    margin: 1em 0 0;
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.92rem;
    line-height: 1.5;
    min-height: 1.2em;
}

.amr-form__msg--ok { color: #2d5a3a; }
.amr-form__msg--error { color: #b23b3b; }
.amr-form__msglink { color: var(--amr-gold, #B8956A); text-decoration: underline; font-weight: 600; }

.amr-form__note {
    margin: 1.5em 0 0;
    padding-top: 1.25em;
    border-top: 1px solid var(--amr-border, #d4c8b5);
    font-family: var(--amr-sans, 'Outfit', sans-serif);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--amr-muted, #74675a);
}

@media (max-width: 767px) {
    .amr-form { padding: 1.75em; }
    .amr-form__row--2 { grid-template-columns: 1fr; gap: 1.1em; }
}

