/*
 | Linkpartner-Seite (/linkpartner), beide Marken, seit 14.09.2026.
 |
 | Farben ausschließlich aus den Marken-Tokens (--c-gold, --c-sand, --c-noir,
 | --c-coal), dieselbe Datei passt dadurch auf Dominacall24 und MissLiberty.
 | Eigene Datei, weil der Tailwind-Build eingefroren ist.
 */

.lp {
    --lp-gold: rgb(var(--c-gold));
    --lp-text: rgb(var(--c-sand));
    --lp-leise: rgb(var(--c-sand) / .72);
    --lp-linie: rgb(var(--c-gold) / .2);
    --lp-flaeche: rgb(var(--c-coal) / .7);
    --lp-feldgrund: rgb(var(--c-noir) / .65);
    --lp-fehler: #f0a08a;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1.75rem 1rem 4rem;
    color: var(--lp-text);
}
@media (min-width: 640px) { .lp { padding: 2.25rem 1.5rem 5rem; } }

.lp-krume { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; font-size: 12px; color: var(--lp-leise); }
.lp-krume a:hover { color: var(--lp-gold); }

/* ------------------------------------------------ Kopf --------------- */

.lp-kopf {
    display: grid;
    gap: 2rem;
    align-items: center;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--lp-linie);
}
@media (min-width: 900px) { .lp-kopf { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; } }

.lp-auge { margin: 0 0 .75rem; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--lp-gold); }
.lp-titel {
    margin: 0;
    font-family: var(--font-serif), Georgia, serif;
    font-weight: 500;
    font-size: clamp(2.4rem, 5.2vw, 3.7rem);
    line-height: 1.04;
    text-wrap: balance;
}
.lp-vorspann { max-width: 38rem; margin: 1rem 0 0; font-size: 1.05rem; line-height: 1.65; color: var(--lp-leise); }

.lp-schritte { list-style: none; counter-reset: lp; display: grid; gap: .9rem; margin: 1.75rem 0 0; padding: 0; }
@media (min-width: 640px) { .lp-schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lp-schritte li { counter-increment: lp; display: flex; gap: .75rem; align-items: flex-start; line-height: 1.35; }
.lp-schritte li::before {
    content: counter(lp);
    flex: none;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid rgb(var(--c-gold) / .55);
    border-radius: 999px;
    font-family: var(--font-serif), Georgia, serif;
    font-size: 1.05rem;
    color: var(--lp-gold);
}
.lp-schritte strong { display: block; font-size: 14px; font-weight: 600; }
.lp-schritte span { font-size: 13px; color: var(--lp-leise); }

.lp-aktionen { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

.lp-kopf__bild { display: none; margin: 0; justify-self: center; text-align: center; }
@media (min-width: 900px) { .lp-kopf__bild { display: block; } }
.lp-kopf__bild img {
    display: block;
    width: 300px;
    height: 250px;
    box-shadow: 0 34px 70px -34px rgb(0 0 0 / .85), 0 0 0 1px var(--lp-linie);
    transform: rotate(-1.5deg);
}
.lp-kopf__bild figcaption { margin-top: 1rem; font-size: 12px; color: var(--lp-leise); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ Abschnitte --------- */

.lp-abschnitt { padding-top: 3rem; scroll-margin-top: 5rem; }
.lp-abschnitt h2 {
    margin: 0;
    font-family: var(--font-serif), Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.8rem, 3.4vw, 2.4rem);
    line-height: 1.1;
    text-wrap: balance;
}
.lp-abschnitt__kopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 1.25rem; }
.lp-abschnitt__kopf p { max-width: 38rem; margin: .5rem 0 0; font-size: 14px; line-height: 1.6; color: var(--lp-leise); }

.lp-zip {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid rgb(var(--c-gold) / .5);
    color: var(--lp-gold);
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    white-space: nowrap;
}
.lp-zip:hover { background: rgb(var(--c-gold) / .1); }
.lp-zip small { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--lp-leise); }

/* ------------------------------------------------ Reiter und Größen -- */

.lp-reiter { display: flex; gap: .25rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--lp-linie); }
.lp-reiter button {
    min-height: 44px;
    margin-bottom: -1px;
    padding: 0 1rem;
    border-bottom: 2px solid transparent;
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--lp-leise);
}
.lp-reiter button[aria-selected="true"] { color: var(--lp-text); border-bottom-color: var(--lp-gold); }

.lp-groessen { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.lp-groessen button {
    min-height: 44px;
    padding: .4rem .85rem;
    border: 1px solid var(--lp-linie);
    background: var(--lp-flaeche);
    color: var(--lp-leise);
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
    font-variant-numeric: tabular-nums;
}
.lp-groessen button b { display: block; font-size: 14px; font-weight: 600; color: var(--lp-text); }
.lp-groessen button[aria-pressed="true"] { border-color: var(--lp-gold); box-shadow: inset 0 0 0 1px var(--lp-gold); color: var(--lp-text); }

.lp-reiter button:focus-visible,
.lp-groessen button:focus-visible,
.lp-fragen summary:focus-visible { outline: 2px solid var(--lp-gold); outline-offset: 2px; }

/* ------------------------------------------------ Code --------------- */

.lp-code { display: grid; gap: 1rem; }
@media (min-width: 900px) { .lp-code { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: stretch; } }

.lp-buehne {
    display: grid;
    place-items: center;
    min-height: 240px;
    padding: 1.5rem;
    overflow-x: auto;
    border: 1px solid var(--lp-linie);
    background-color: rgb(var(--c-noir) / .55);
    background-image:
        linear-gradient(45deg, rgb(255 255 255 / .035) 25%, transparent 25%, transparent 75%, rgb(255 255 255 / .035) 75%),
        linear-gradient(45deg, rgb(255 255 255 / .035) 25%, transparent 25%, transparent 75%, rgb(255 255 255 / .035) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}
/* Auf dem Handy verkleinert statt abgeschnitten: Der 468er ist breiter als der Bildschirm. */
.lp-buehne img { display: block; max-width: 100%; height: auto; }
@media (max-width: 899px) { .lp-buehne { min-height: 150px; padding: 1rem; } }

.lp-code__feld { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.lp-code__label { display: flex; justify-content: space-between; gap: 1rem; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--lp-leise); }
.lp-code__label span { letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }

.lp-textarea {
    flex: 1;
    width: 100%;
    min-height: 136px;
    padding: .85rem 1rem;
    resize: vertical;
    border: 1px solid var(--lp-linie);
    background: var(--lp-feldgrund);
    color: var(--lp-text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.55;
    word-break: break-all;
}
.lp-textarea:focus { outline: 2px solid rgb(var(--c-gold) / .6); outline-offset: 0; }

.lp-knoepfe { display: flex; flex-wrap: wrap; gap: .6rem; }

.lp-textlinks { display: grid; gap: .75rem; }
.lp-textlink { display: grid; gap: .75rem; padding: 1rem; border: 1px solid var(--lp-linie); background: var(--lp-flaeche); }
@media (min-width: 900px) { .lp-textlink { grid-template-columns: 17rem minmax(0, 1fr) auto; align-items: center; } }
.lp-textlink__vorschau a { color: var(--lp-gold); text-decoration: underline; text-underline-offset: 3px; }
.lp-textlink__vorschau small { display: block; margin-top: .25rem; font-size: 12px; color: var(--lp-leise); word-break: break-all; }
.lp-textlink .lp-textarea { flex: none; min-height: 0; height: 66px; }

/* ------------------------------------------------ Eintragen ---------- */

.lp-eintragen { display: grid; gap: 2rem; }
@media (min-width: 900px) { .lp-eintragen { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: start; } }

.lp-regeln > p { max-width: 34rem; margin: .75rem 0 0; line-height: 1.65; color: var(--lp-leise); }
.lp-regeln h3 { margin: 1.75rem 0 .6rem; font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--lp-gold); }
.lp-regeln ul { list-style: none; display: grid; gap: .55rem; margin: 0; padding: 0; }
.lp-regeln li { position: relative; padding-left: 1.45rem; font-size: 14px; line-height: 1.5; }
.lp-regeln li::before { content: ""; position: absolute; left: .2rem; top: .5em; width: .45rem; height: .45rem; transform: rotate(45deg); background: var(--lp-gold); }
.lp-regeln ul.lp-nein li::before { background: transparent; border: 1px solid rgb(var(--c-sand) / .55); }

.lp-formular { display: grid; gap: 1.1rem; padding: 1.5rem; border: 1px solid var(--lp-linie); background: var(--lp-flaeche); }
@media (min-width: 640px) {
    .lp-formular { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 2rem; }
    .lp-breit { grid-column: 1 / -1; }
}

.lp-feld { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.lp-feld > label { font-size: 13px; font-weight: 600; }
.lp-feld > label span { font-weight: 400; color: var(--lp-leise); }
.lp-feld input[type="text"],
.lp-feld input[type="url"],
.lp-feld input[type="email"],
.lp-feld textarea {
    width: 100%;
    min-height: 46px;
    padding: .65rem .8rem;
    border: 1px solid rgb(var(--c-sand) / .2);
    background: var(--lp-feldgrund);
    color: var(--lp-text);
    font-size: 15px;
}
.lp-feld textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.lp-feld input:focus,
.lp-feld textarea:focus { outline: 2px solid rgb(var(--c-gold) / .65); outline-offset: 0; border-color: transparent; }
.lp-feld small { font-size: 12px; color: var(--lp-leise); }
.lp-feld--fehler input,
.lp-feld--fehler textarea { border-color: var(--lp-fehler); }
.lp-fehler { margin: 0; font-size: 13px; line-height: 1.45; color: var(--lp-fehler); }

.lp-haken { display: flex; gap: .65rem; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--lp-leise); cursor: pointer; }
.lp-haken input { flex: none; width: 20px; height: 20px; margin-top: .1rem; accent-color: rgb(var(--c-gold)); }

.lp-meldung { padding: .95rem 1.1rem; border-left: 3px solid var(--lp-gold); background: rgb(var(--c-gold) / .09); font-size: 14px; line-height: 1.55; }
.lp-meldung strong { display: block; margin-bottom: .15rem; }
.lp-meldung--fehler { border-left-color: var(--lp-fehler); background: rgb(240 160 138 / .08); }

.lp-senden { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.lp-klein { margin: 0; font-size: 12px; line-height: 1.5; color: var(--lp-leise); }
.lp-klein a { color: var(--lp-gold); text-decoration: underline; text-underline-offset: 2px; }

.lp-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------ Partnerliste ------- */

.lp-partner { list-style: none; display: grid; gap: .75rem; margin: 1.25rem 0 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.lp-partner a {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid var(--lp-linie);
    background: var(--lp-flaeche);
    transition: border-color .2s;
}
.lp-partner a:hover { border-color: rgb(var(--c-gold) / .55); }
.lp-partner b { font-family: var(--font-serif), Georgia, serif; font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.lp-partner small { font-size: 12px; color: var(--lp-gold); }
.lp-partner span { font-size: 13px; line-height: 1.45; color: var(--lp-leise); }
.lp-leer { margin: 1rem 0 0; padding: 1.25rem; border: 1px dashed var(--lp-linie); font-size: 14px; color: var(--lp-leise); }

/* ------------------------------------------------ Fragen ------------- */

.lp-fragen { max-width: 48rem; margin-top: 1.25rem; border-top: 1px solid var(--lp-linie); }
.lp-fragen details { border-bottom: 1px solid var(--lp-linie); }
.lp-fragen summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 52px;
    padding: .75rem 0;
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
}
.lp-fragen summary::-webkit-details-marker { display: none; }
.lp-fragen summary::after { content: "+"; flex: none; font-size: 1.35rem; line-height: 1; color: var(--lp-gold); transition: transform .2s; }
.lp-fragen details[open] summary::after { transform: rotate(45deg); }
.lp-fragen details p { max-width: 42rem; margin: 0 0 1rem; font-size: 14px; line-height: 1.65; color: var(--lp-leise); }
.lp-fragen details p a { color: var(--lp-gold); text-decoration: underline; text-underline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
    .lp-fragen summary::after,
    .lp-partner a { transition: none; }
}
