/* ============================================================================
   platzjagd.de — oeffentlicher Bereich.
   Bootstrap 5.3.3 liegt darunter; hier steht nur, was die Marke ausmacht.
   Der Anbieter-Bereich (anbieter.css) und der Spiel-Bereich (play.css) haben
   bewusst eigene Erscheinungsbilder — drei sehr verschiedene Zielgruppen.
   ============================================================================ */

:root {
    /* Plattformpalette: Nordsee. Nicht zu verwechseln mit den Rally-Farben, die
       pro Rally als --rally-* auf dem body des Spiel-Layouts landen. */
    --pj-tief: #12314a;
    --pj-tief-hell: #1d4a6b;
    --pj-see: #2e7d6b;
    --pj-see-hell: #3f9c86;
    --pj-sand: #f7f3e9;
    --pj-sand-tief: #ece2cd;
    --pj-weiss: #ffffff;
    --pj-text: #1b2733;
    --pj-text-leise: #5b6b7a;
    --pj-rand: #dfd7c6;
    --pj-warnung: #b45309;

    --pj-schrift: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --pj-schrift-titel: 'Fredoka', 'Segoe UI', system-ui, sans-serif;

    --pj-radius: 12px;
    --pj-schatten: 0 1px 2px rgba(18, 49, 74, .06), 0 8px 24px rgba(18, 49, 74, .08);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--pj-schrift);
    color: var(--pj-text);
    background: var(--pj-weiss);
    line-height: 1.6;
}

h1, h2, h3, .pj-wortmarke {
    font-family: var(--pj-schrift-titel);
    letter-spacing: -.01em;
    color: var(--pj-tief);
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.2; }

a { color: var(--pj-see); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--pj-tief); }

/* --- Kopfzeile ---------------------------------------------------------- */

.pj-kopf {
    background: var(--pj-weiss);
    border-bottom: 1px solid var(--pj-rand);
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Steht die Betreiber-Leiste (32 px, fixiert) im Weg, rutscht die Kopfzeile
   darunter. Die Klasse setzt _AdminBar auf dem body. */
body.pj-mit-adminbar .pj-kopf { top: 32px; }

.pj-wortmarke {
    font-size: 1.35rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.pj-wortmarke:hover { color: var(--pj-see); }
.pj-wortmarke .pj-punkt { color: var(--pj-see); }

.pj-kopf .nav-link {
    color: var(--pj-text);
    font-weight: 500;
    padding-inline: .85rem;
}

.pj-kopf .nav-link:hover,
.pj-kopf .nav-link.active { color: var(--pj-see); }

/* --- Knoepfe ------------------------------------------------------------ */

.btn-pj {
    background: var(--pj-see);
    border: 1px solid var(--pj-see);
    color: #fff;
    font-weight: 600;
    border-radius: var(--pj-radius);
    padding: .6rem 1.25rem;
}

.btn-pj:hover, .btn-pj:focus-visible {
    background: var(--pj-see-hell);
    border-color: var(--pj-see-hell);
    color: #fff;
}

.btn-pj-umriss {
    background: transparent;
    border: 1px solid var(--pj-tief);
    color: var(--pj-tief);
    font-weight: 600;
    border-radius: var(--pj-radius);
    padding: .6rem 1.25rem;
}

.btn-pj-umriss:hover, .btn-pj-umriss:focus-visible {
    background: var(--pj-tief);
    color: #fff;
}

.btn-pj-gross { padding: .85rem 1.75rem; font-size: 1.05rem; }

/* --- Landing ------------------------------------------------------------ */

.pj-held {
    background: linear-gradient(180deg, var(--pj-sand) 0%, var(--pj-weiss) 100%);
    padding: clamp(2.5rem, 1rem + 6vw, 5.5rem) 0 clamp(2rem, 1rem + 4vw, 4rem);
}

.pj-held p.lead {
    font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem);
    color: var(--pj-text-leise);
    max-width: 46ch;
}

.pj-schritte { counter-reset: pj-schritt; }

.pj-schritt {
    background: var(--pj-weiss);
    border: 1px solid var(--pj-rand);
    border-radius: var(--pj-radius);
    padding: 1.5rem;
    height: 100%;
}

.pj-schritt::before {
    counter-increment: pj-schritt;
    content: counter(pj-schritt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--pj-sand-tief);
    color: var(--pj-tief);
    font-family: var(--pj-schrift-titel);
    font-weight: 600;
    margin-bottom: .85rem;
}

.pj-schritt h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.pj-schritt p { color: var(--pj-text-leise); margin-bottom: 0; }

/* --- Karte -------------------------------------------------------------- */

.pj-karte {
    height: 520px;
    border: 1px solid var(--pj-rand);
    border-radius: var(--pj-radius);
    overflow: hidden;
    background: var(--pj-sand);
}

@media (max-width: 767.98px) {
    .pj-karte { height: 380px; }
}

/* Leaflet setzt seine eigenen Schriftgroessen; das Popup soll aber zur Seite passen. */
.pj-karte .leaflet-popup-content { font-family: var(--pj-schrift); margin: .85rem 1rem; }
.pj-karte .leaflet-popup-content h4 { font-family: var(--pj-schrift-titel); font-size: 1.05rem; margin: 0 0 .25rem; }
.pj-karte .leaflet-popup-content p { margin: 0 0 .6rem; color: var(--pj-text-leise); font-size: .9rem; }

.pj-karte-leer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--pj-text-leise);
    text-align: center;
    padding: 2rem;
}

/* --- Rally-Landing ------------------------------------------------------ */

.pj-rally-kopf {
    /* Die Rally-Farben kommen als Inline-Style vom Server (ThemeCss.BodyStyle),
       damit die Vorschau zeigt, wie das Spiel selbst aussehen wird. */
    background: var(--rally-bg, var(--pj-sand));
    color: var(--rally-text, var(--pj-text));
    border-radius: var(--pj-radius);
    padding: clamp(1.5rem, 1rem + 3vw, 3rem);
}

.pj-rally-kopf h1 { color: inherit; font-family: var(--rally-heading-font, var(--pj-schrift-titel)); }
.pj-rally-kopf .pj-untertitel { font-size: 1.15rem; opacity: .85; }

.pj-themevorschau {
    display: inline-flex;
    gap: .35rem;
    align-items: center;
    background: rgba(255, 255, 255, .55);
    border-radius: 999px;
    padding: .3rem .6rem;
}

.pj-themevorschau span {
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .12);
    display: inline-block;
}

.pj-faktenliste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: .75rem;
}

.pj-faktenliste li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--pj-rand);
}

.pj-faktenliste li:last-child { border-bottom: 0; padding-bottom: 0; }
.pj-faktenliste dt, .pj-faktenliste .pj-schluessel { color: var(--pj-text-leise); }
.pj-faktenliste .pj-wert { font-weight: 600; text-align: right; }

.pj-preis {
    font-family: var(--pj-schrift-titel);
    font-size: 2.25rem;
    color: var(--pj-tief);
    line-height: 1;
}

.pj-kaufkarte {
    border: 1px solid var(--pj-rand);
    border-radius: var(--pj-radius);
    padding: 1.5rem;
    box-shadow: var(--pj-schatten);
    position: sticky;
    top: 6rem;
}

@media (max-width: 991.98px) {
    .pj-kaufkarte { position: static; }
}

/* --- Fliesstext / rechtliche Seiten ------------------------------------- */

.pj-text { max-width: 68ch; }
.pj-text h2 { margin-top: 2.25rem; }
.pj-text h3 { margin-top: 1.5rem; font-size: 1.15rem; }

/* --- Statusmeldung (TempData["Status"]) --------------------------------- */

.pj-status {
    border-left: 4px solid var(--pj-see);
    background: #eef7f4;
    border-radius: 0 var(--pj-radius) var(--pj-radius) 0;
    padding: .85rem 1rem;
}

/* --- Fusszeile ---------------------------------------------------------- */

.pj-fuss {
    background: var(--pj-tief);
    color: #cddbe6;
    margin-top: 4rem;
    padding: 2.5rem 0 2rem;
}

.pj-fuss a { color: #fff; text-decoration: none; }
.pj-fuss a:hover { text-decoration: underline; }
.pj-fuss .pj-wortmarke { color: #fff; }
.pj-fuss .pj-wortmarke .pj-punkt { color: var(--pj-see-hell); }
.pj-fuss-klein { color: #8ba6ba; font-size: .875rem; }

/* --- Formulare ---------------------------------------------------------- */

.pj-formkarte {
    max-width: 30rem;
    margin-inline: auto;
    border: 1px solid var(--pj-rand);
    border-radius: var(--pj-radius);
    padding: clamp(1.25rem, 1rem + 2vw, 2rem);
    box-shadow: var(--pj-schatten);
}

.pj-formkarte-breit { max-width: 42rem; }

.form-control:focus, .form-check-input:focus, .form-select:focus {
    border-color: var(--pj-see-hell);
    box-shadow: 0 0 0 .2rem rgba(46, 125, 107, .18);
}

.form-check-input:checked { background-color: var(--pj-see); border-color: var(--pj-see); }

/* Das Anbieter-Haekchen in der Registrierung ist die wichtigste Conversion der
   Seite und bekommt deshalb einen eigenen Rahmen statt einer Zeile im Fliesstext. */
.pj-anbieter-haken {
    background: var(--pj-sand);
    border: 1px solid var(--pj-sand-tief);
    border-radius: var(--pj-radius);
    padding: 1rem;
}
