:root {
    --ink: #20241d;
    --ink-soft: #41483b;
    --paper: #f8f1e1;
    --paper-light: #fff9ed;
    --paper-warm: #e9dfca;
    --lime: #d9f52c;
    --orange: #ff9f43;
    --orange-deep: #e77f25;
    --red: #d84c43;
    --blue: #d9e9ec;
    --line: #292d25;
    --muted: #697066;
    --shadow: 5px 5px 0 #20241d;
}

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

html {
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 10% 13%, rgba(217, 245, 44, 0.14), transparent 24%),
        radial-gradient(circle at 91% 79%, rgba(255, 159, 67, 0.14), transparent 27%),
        #eee4cf;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

code {
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(32, 36, 29, 0.08);
    font-size: 0.9em;
}

/* Hintergrundstruktur */

.page-noise {
    position: fixed;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    opacity: 0.26;
    background-image: radial-gradient(rgba(32, 36, 29, 0.16) 0.65px, transparent 0.65px);
    background-size: 6px 6px;
}

/* =========================================================
   Teilen-Leiste
   ========================================================= */

.share-rail {
    position: fixed;
    z-index: 40;
    top: 50%;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 56px;
    overflow: hidden;
    border: 2px solid var(--line);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: var(--paper-light);
    box-shadow: 3px 3px 0 rgba(32, 36, 29, 0.25);
    transform: translateY(-50%);
}

.share-rail-title {
    display: flex;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    border-bottom: 2px solid var(--line);
    background: var(--lime);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-align: center;
}

.share-rail button {
    width: 56px;
    height: 44px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #c9c0ad;
    background: var(--paper-light);
    color: var(--ink);
    font-size: 1rem;
    font-weight: 800;
}

.share-rail button:last-child {
    border-bottom: 0;
}

.share-rail button:hover {
    background: var(--orange);
}

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header,
.admin-header {
    position: relative;
    z-index: 5;
    display: flex;
    width: min(1220px, calc(100% - 60px));
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 0 auto;
    padding: 19px 0;
}

.site-header {
    border-bottom: 2px solid var(--line);
}

.brand {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    text-decoration: none;
}

.site-logo {
    width: 78px;
    max-height: 78px;
    object-fit: contain;
}

.logo-placeholder {
    display: grid;
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--lime);
    font-weight: 900;
    transform: rotate(-4deg);
}

.brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 0.92;
}

.brand-text strong {
    font-size: clamp(1rem, 2vw, 1.45rem);
    letter-spacing: -0.055em;
}

.brand-text small {
    margin-top: 4px;
    color: var(--orange-deep);
    font-size: clamp(0.86rem, 1.5vw, 1.1rem);
    font-weight: 900;
    letter-spacing: 0.16em;
}

.top-navigation,
.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.top-navigation a {
    padding: 8px 9px;
    border-radius: 8px;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.top-navigation a:hover {
    background: var(--lime);
    color: var(--ink);
}

.top-navigation .admin-login-link {
    border: 2px solid var(--line);
    background: var(--paper-light);
    box-shadow: 2px 2px 0 var(--line);
}

/* =========================================================
   Buttons
   ========================================================= */

.button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 15px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--paper-light);
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
    box-shadow: 3px 3px 0 var(--line);
    transform: translate(-2px, -2px);
}

.button:active {
    box-shadow: none;
    transform: translate(0, 0);
}

.button-market {
    background: var(--lime);
}

.button-dark {
    background: var(--ink);
    color: var(--paper-light);
}

.button-paper {
    background: var(--paper-light);
}

.button-logout {
    background: #ffe3df;
    color: #8c2c24;
}

.button-small {
    min-height: 37px;
    padding: 8px 11px;
    font-size: 0.78rem;
}

/* =========================================================
   Startseite: Hero
   ========================================================= */

.flea-hero {
    position: relative;
    display: grid;
    width: min(1220px, calc(100% - 60px));
    min-width: 0;
    grid-template-columns: minmax(0, 0.92fr) minmax(330px, 0.78fr);
    gap: clamp(24px, 3.5vw, 48px);
    margin: 28px auto 0;
    padding: 58px 48px 54px;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 28px;
    background:
        radial-gradient(circle at 12% 76%, rgba(255, 159, 67, 0.30), transparent 25%),
        radial-gradient(circle at 90% 15%, rgba(217, 245, 44, 0.55), transparent 27%),
        #f4eddc;
    box-shadow: 7px 7px 0 var(--line);
}

.market-bunting {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    height: 39px;
    align-items: flex-start;
    justify-content: space-around;
    padding: 0 24px;
    border-top: 3px solid var(--line);
}

.market-bunting span {
    width: 0;
    height: 0;
    border-right: 16px solid transparent;
    border-bottom: 24px solid var(--orange);
    border-left: 16px solid transparent;
}

.market-bunting span:nth-child(2n) {
    border-bottom-color: var(--lime);
}

.market-bunting span:nth-child(3n) {
    border-bottom-color: #86b8c2;
}

.hero-sticker {
    position: absolute;
    z-index: 2;
    padding: 8px 10px;
    border: 2px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.hero-sticker-years {
    top: 62px;
    left: 24px;
    background: var(--orange);
    transform: rotate(-7deg);
}

.hero-sticker-vintage {
    top: 64px;
    right: 28px;
    background: var(--paper-light);
    transform: rotate(5deg);
}

.hero-content {
    position: relative;
    z-index: 1;
    min-width: 0;
    max-width: 100%;
    padding-top: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 29px;
    padding: 5px 10px;
    border: 2px solid var(--line);
    border-radius: 999px;
    background: var(--lime);
    color: var(--ink);
    font-size: 0.70rem;
    font-weight: 900;
    letter-spacing: 0.045em;
    line-height: 1;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 100%;
    margin: 17px 0 9px;
    font-size: clamp(2.65rem, 5.05vw, 5.05rem);
    line-height: 0.9;
    letter-spacing: -0.07em;
    overflow-wrap: anywhere;
    word-break: normal;
}

.hero-subline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-subline > span {
    color: var(--orange-deep);
    font-size: 1.1rem;
}

.hero-subline h2 {
    margin: 0;
    color: var(--ink-soft);
    font-size: clamp(1.14rem, 2.5vw, 1.72rem);
    letter-spacing: -0.035em;
}

.hero-description {
    max-width: 650px;
    margin: 22px 0 0;
    color: #4e554a;
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    margin-top: 25px;
}

.hero-mini-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
    margin-top: 22px;
    color: var(--ink-soft);
    font-size: 0.79rem;
    font-weight: 800;
}

.flea-market-scene {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 380px;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 19px;
    background: linear-gradient(180deg, #c9e1e5 0 53%, #b4d684 53% 69%, #d0ab77 69% 100%);
    box-shadow: 5px 5px 0 rgba(32, 36, 29, 0.35);
}

.scene-sun {
    position: absolute;
    top: 27px;
    right: 37px;
    color: #ef9d22;
    font-size: 3rem;
}

.market-sign {
    position: absolute;
    top: 71px;
    left: 50%;
    display: flex;
    width: 116px;
    height: 81px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--line);
    border-radius: 8px;
    background: var(--paper-light);
    box-shadow: 4px 4px 0 rgba(32, 36, 29, 0.35);
    font-weight: 900;
    transform: translateX(-50%) rotate(-3deg);
}

.market-sign span {
    color: var(--orange-deep);
    font-size: 1.4rem;
    line-height: 1;
}

.market-sign small {
    margin-top: 4px;
    font-size: 0.62rem;
    letter-spacing: 0.10em;
}

.market-awning {
    position: absolute;
    top: 151px;
    left: 50%;
    display: flex;
    width: 78%;
    height: 59px;
    overflow: hidden;
    border: 3px solid var(--line);
    border-radius: 12px 12px 3px 3px;
    background: var(--paper-light);
    transform: translateX(-50%);
}

.market-awning span {
    width: 16.666%;
    height: 100%;
    background: var(--orange);
}

.market-awning span:nth-child(2n) {
    background: var(--paper-light);
}

.market-table {
    position: absolute;
    bottom: 58px;
    left: 50%;
    width: 79%;
    height: 66px;
    border: 3px solid var(--line);
    border-radius: 8px 8px 2px 2px;
    background: #a46f42;
    transform: translateX(-50%);
}

.market-table::before,
.market-table::after {
    position: absolute;
    bottom: -47px;
    width: 11px;
    height: 50px;
    border: 2px solid var(--line);
    background: #6f482e;
    content: "";
}

.market-table::before {
    left: 13%;
}

.market-table::after {
    right: 13%;
}

.crate {
    position: absolute;
    bottom: 91px;
    display: grid;
    width: 82px;
    height: 55px;
    place-items: center;
    border: 3px solid var(--line);
    background: #d09a5b;
    color: var(--ink);
    font-size: 0.66rem;
    font-weight: 900;
}

.crate-vintage {
    left: 12%;
    transform: rotate(-5deg);
}

.crate-price {
    right: 13%;
    background: var(--lime);
    font-size: 1.3rem;
    transform: rotate(5deg);
}

.market-object {
    position: absolute;
    z-index: 3;
    color: var(--ink);
    font-weight: 900;
}

.object-lamp {
    bottom: 137px;
    left: 25%;
    font-size: 3.2rem;
}

.object-record {
    right: 30%;
    bottom: 134px;
    font-size: 3.1rem;
}

.object-vase {
    bottom: 136px;
    left: 46%;
    color: var(--orange-deep);
    font-size: 2.9rem;
}

.object-book {
    right: 18%;
    bottom: 139px;
    color: #477ca0;
    font-size: 2.7rem;
}

.scene-price-tag {
    position: absolute;
    right: 19px;
    bottom: 23px;
    display: flex;
    width: 64px;
    height: 57px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--orange);
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    transform: rotate(9deg);
}

/* =========================================================
   Abschnitte / Termine
   ========================================================= */

.page-section {
    width: min(1220px, calc(100% - 60px));
    min-width: 0;
    margin: 0 auto;
    padding: 82px 0 0;
}

.section-heading {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4.4vw, 4rem);
    line-height: 0.92;
    letter-spacing: -0.07em;
}

.market-label {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--orange);
    box-shadow: 3px 3px 0 var(--line);
    font-size: 0.78rem;
    font-weight: 900;
    transform: rotate(2deg);
}

.section-intro {
    max-width: 800px;
    margin: 0 0 23px;
    color: var(--ink-soft);
}

.events-list {
    display: grid;
    gap: 17px;
}

.event-card {
    display: grid;
    min-width: 0;
    grid-template-columns: 108px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 21px;
    border: 2px solid var(--line);
    border-radius: 17px;
    background: var(--paper-light);
    box-shadow: 4px 4px 0 rgba(32, 36, 29, 0.20);
}

.event-date-card {
    display: flex;
    min-height: 96px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--line);
    border-radius: 12px;
    background: var(--lime);
    box-shadow: 3px 3px 0 var(--line);
    line-height: 1;
}

.event-day {
    font-size: 2.3rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.event-month {
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.10em;
}

.event-content {
    min-width: 0;
}

.event-ribbon {
    display: inline-block;
    padding: 4px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--orange);
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.event-content h3 {
    margin: 8px 0 7px;
    font-size: 1.38rem;
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 17px;
    color: var(--ink-soft);
    font-size: 0.84rem;
    font-weight: 800;
}

.event-content p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.event-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.event-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 10px;
    border: 2px solid var(--line);
    border-radius: 9px;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.event-status--available {
    background: #b9f6a4;
    color: #184d20;
}

.event-status--limited {
    background: #ffd28c;
    color: #6c3d00;
}

.event-status--full {
    background: #ffaaa0;
    color: #711c19;
}

.event-share-button,
.event-register-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 8px 11px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--paper-light);
    color: var(--ink);
    font-size: 0.76rem;
    font-weight: 900;
    text-decoration: none;
}

.event-share-button:hover,
.event-register-button:hover {
    background: var(--orange);
}

.event-register-button {
    background: var(--lime);
}

.empty-event-card {
    display: flex;
    align-items: center;
    gap: 17px;
    padding: 25px;
    border: 2px dashed var(--line);
    border-radius: 15px;
    background: var(--paper-light);
}

.empty-event-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--orange);
    font-size: 1.3rem;
}

.empty-event-card h3,
.empty-event-card p {
    margin: 0;
}

.empty-event-card p {
    margin-top: 4px;
    color: var(--muted);
}

/* =========================================================
   Info- und Kontaktbereich
   ========================================================= */

.market-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.market-info-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 257px;
    flex-direction: column;
    padding: 23px;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: var(--paper-light);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.market-info-card:hover {
    box-shadow: var(--shadow);
    transform: translate(-3px, -3px);
}

.card-registration {
    background: var(--lime);
}

.card-rules {
    background: var(--orange);
}

.card-website {
    background: #d8e8f4;
}

.info-sticker {
    position: absolute;
    top: 16px;
    right: 15px;
    padding: 5px 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--paper-light);
    font-size: 0.61rem;
    font-weight: 900;
    transform: rotate(4deg);
}

.info-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--paper-light);
    font-size: 1.4rem;
}

.market-info-card h3 {
    margin: 18px 0 8px;
    font-size: 1.36rem;
    line-height: 1.1;
}

.market-info-card p {
    margin: 0;
    color: rgba(32, 36, 29, 0.80);
    font-size: 0.91rem;
}

.card-bottom-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 20px;
    font-size: 0.84rem;
    font-weight: 900;
}

.card-bottom-line b {
    font-size: 1.25rem;
}

.contact-market-panel {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(285px, 0.72fr);
    align-items: center;
    gap: 30px;
    padding: 32px;
    overflow: hidden;
    border: 2px solid var(--line);
    border-radius: 21px;
    background:
        radial-gradient(circle at 82% 19%, rgba(217, 245, 44, 0.60), transparent 25%),
        #dbe9eb;
    box-shadow: 5px 5px 0 var(--line);
}

.contact-copy h2 {
    max-width: 570px;
    margin: 14px 0;
    font-size: clamp(2rem, 4.4vw, 3.8rem);
    line-height: 0.93;
    letter-spacing: -0.065em;
}

.contact-copy > p:not(.eyebrow) {
    max-width: 630px;
    margin: 0;
    color: var(--ink-soft);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 23px;
}

.social-links a {
    display: inline-flex;
    min-height: 39px;
    align-items: center;
    gap: 7px;
    padding: 8px 11px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: var(--paper-light);
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--orange);
}

.social-links span {
    font-size: 1.15rem;
}

.contact-ticket {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 12px;
    padding: 26px 30px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: var(--paper-light);
    box-shadow: 4px 4px 0 rgba(32, 36, 29, 0.22);
}

.ticket-label {
    align-self: flex-start;
    margin-bottom: 4px;
    padding: 5px 7px;
    border: 2px solid var(--line);
    border-radius: 5px;
    background: var(--orange);
    font-size: 0.67rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.contact-ticket a {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.25;
    text-decoration: none;
}

.contact-ticket a + a {
    padding-top: 13px;
    border-top: 1px solid rgba(32, 36, 29, 0.25);
}

.contact-ticket a:hover {
    color: var(--orange-deep);
}

.ticket-stars {
    align-self: flex-end;
    margin-top: 12px;
    color: var(--orange-deep);
    font-size: 1.2rem;
}

/* =========================================================
   Footer / Modals / Toast
   ========================================================= */

.site-footer {
    display: grid;
    width: min(1220px, calc(100% - 60px));
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(190px, 0.8fr);
    gap: 26px;
    margin: 82px auto 0;
    padding: 28px 0 37px;
    border-top: 2px solid var(--line);
}

.footer-brand {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
}

.footer-logo {
    width: 60px;
    max-height: 60px;
    object-fit: contain;
}

.footer-brand strong {
    display: block;
    font-size: 0.86rem;
}

.footer-brand p,
.footer-meta p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.73rem;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 7px;
}

.legal-open {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.73rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-open:hover {
    color: var(--orange-deep);
}

.footer-meta {
    text-align: right;
}

.modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.is-open,
.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(32, 36, 29, 0.58);
}

.modal-content {
    position: relative;
    z-index: 1;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    padding: 32px;
    overflow: auto;
    border: 2px solid var(--line);
    border-radius: 17px;
    background: var(--paper-light);
    box-shadow: 8px 8px 0 var(--line);
}

.modal-content h2 {
    margin: 16px 0;
    font-size: 1.8rem;
    line-height: 1.05;
}

.modal-content p {
    color: var(--ink-soft);
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 7px;
    background: var(--orange);
    color: var(--ink);
    font-size: 1.35rem;
    line-height: 1;
}

.toast {
    position: fixed;
    z-index: 120;
    right: 20px;
    bottom: 20px;
    max-width: min(370px, calc(100% - 40px));
    padding: 12px 15px;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--lime);
    box-shadow: 4px 4px 0 var(--line);
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show,
.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   Login
   ========================================================= */

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at 16% 18%, rgba(217, 245, 44, 0.55), transparent 25%),
        radial-gradient(circle at 83% 85%, rgba(255, 159, 67, 0.43), transparent 23%),
        var(--paper-warm);
}

.login-card {
    width: min(450px, 100%);
    padding: 32px;
    border: 2px solid var(--line);
    border-radius: 20px;
    background: var(--paper-light);
    box-shadow: 7px 7px 0 var(--line);
}

.login-card h1 {
    margin: 0 0 8px;
    font-size: 2rem;
}

.login-card p {
    margin: 0 0 22px;
    color: var(--muted);
}

/* =========================================================
   Adminbereich
   ========================================================= */

.admin-page {
    background: #ebe2cf;
}

.admin-header {
    border-bottom: 2px solid var(--line);
}

.admin-main {
    width: min(1120px, calc(100% - 60px));
    min-width: 0;
    margin: 0 auto;
    padding: 35px 0 100px;
}

.admin-title {
    display: flex;
    min-width: 0;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-title h1 {
    margin: 11px 0 8px;
    font-size: clamp(2rem, 4vw, 3.15rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.admin-title p {
    margin: 0;
    color: var(--muted);
}

.admin-update {
    flex: 0 0 auto;
    padding: 10px 12px;
    border: 2px solid var(--line);
    border-radius: 9px;
    background: var(--paper-light);
    color: var(--ink-soft);
    font-size: 0.77rem;
    text-align: right;
}

.alert {
    margin: 0 0 18px;
    padding: 13px 15px;
    border: 2px solid var(--line);
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
}

.alert-success {
    background: #dff3a7;
}

.alert-error {
    background: #ffe0dc;
    color: #8d2b23;
}

.admin-form,
.admin-section,
.form-grid,
.event-editor,
#events-container {
    width: 100%;
    min-width: 0;
}

.admin-section {
    margin-bottom: 20px;
    padding: 26px;
    border: 2px solid var(--line);
    border-radius: 16px;
    background: var(--paper-light);
    box-shadow: 4px 4px 0 rgba(32, 36, 29, 0.16);
}

.admin-section-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 21px;
}

.admin-section-heading > span:first-child {
    display: grid;
    width: 40px;
    height: 40px;
    min-width: 40px;
    flex: 0 0 40px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 2px solid var(--line);
    border-radius: 10px;
    background: var(--lime);
    box-shadow: 3px 3px 0 var(--line);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    transform: rotate(-3deg);
}

.admin-section-heading > div {
    min-width: 0;
}

.admin-section h2 {
    margin: 0 0 3px;
    font-size: 1.38rem;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.admin-section-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid > div {
    min-width: 0;
}

.form-full {
    grid-column: 1 / -1;
}

.admin-section label {
    display: block;
    margin: 0 0 6px;
    color: var(--ink-soft);
    font-size: 0.79rem;
    font-weight: 900;
}

.admin-section input,
.admin-section textarea,
.admin-section select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid #bdb8a9;
    border-radius: 8px;
    outline: none;
    background: #fffaf0;
    color: var(--ink);
    font-size: 0.93rem;
    line-height: 1.35;
}

.admin-section input:focus,
.admin-section textarea:focus,
.admin-section select:focus {
    border-color: #8faa13;
    box-shadow: 0 0 0 3px rgba(217, 245, 44, 0.38);
}

.admin-section textarea {
    min-height: 112px;
    resize: vertical;
}

.admin-section input[type="date"],
.admin-section input[type="time"] {
    min-height: 44px;
}

#events-container {
    display: grid;
    gap: 16px;
}

.event-editor {
    padding: 19px;
    border: 2px dashed #a99f86;
    border-radius: 13px;
    background: #f6eedf;
}

.event-editor-head {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.event-editor-head h3 {
    min-width: 0;
    margin: 0;
    font-size: 1.02rem;
}

.event-number {
    display: inline-grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--orange);
    font-size: 0.72rem;
    vertical-align: middle;
}

.remove-event {
    min-height: 36px;
    flex: 0 0 auto;
    padding: 7px 10px;
    border: 2px solid #a33a32;
    border-radius: 8px;
    background: #ffe0dc;
    color: #8c2c24;
    font-size: 0.76rem;
    font-weight: 900;
}

.remove-event:hover {
    background: #ffbdb5;
}

.discord-announcement-note {
    margin: 0 0 18px;
    padding: 12px 13px;
    border: 2px solid #d7b761;
    border-radius: 9px;
    background: #fff3c7;
    color: #655015;
    font-size: 0.86rem;
}

.discord-announcement-actions {
    margin-top: 16px;
}

.announcement-checkbox {
    display: inline-flex !important;
    align-items: center;
    gap: 9px;
    color: var(--muted) !important;
    font-weight: 700 !important;
}

.announcement-checkbox input {
    width: auto !important;
}

.save-bar {
    position: sticky;
    bottom: 13px;
    z-index: 20;
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 13px;
    background: var(--lime);
    box-shadow: 5px 5px 0 var(--line);
}

.save-bar p {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 800;
}

.save-bar .button {
    flex: 0 0 auto;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1000px) {
    .flea-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-content h1 {
        max-width: 760px;
        font-size: clamp(3rem, 8vw, 5.8rem);
    }

    .flea-market-scene {
        min-height: 335px;
    }

    .market-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 760px) {
    .site-header,
    .admin-header,
    .flea-hero,
    .page-section,
    .site-footer,
    .admin-main {
        width: calc(100% - 28px);
    }

    .site-header,
    .admin-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .top-navigation,
    .admin-header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .flea-hero {
        margin-top: 17px;
        padding: 62px 22px 25px;
        border-radius: 20px;
    }

    .hero-sticker-years {
        top: 52px;
        left: 18px;
    }

    .hero-sticker-vintage {
        display: none;
    }

    .flea-market-scene {
        min-height: 310px;
    }

    .event-card {
        grid-template-columns: 85px minmax(0, 1fr);
        gap: 15px;
    }

    .event-date-card {
        min-height: 83px;
    }

    .event-day {
        font-size: 1.9rem;
    }

    .event-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .event-actions > * {
        flex: 1 1 0;
    }

    .event-status {
        width: 100%;
        flex-basis: 100%;
    }

    .contact-market-panel {
        grid-template-columns: minmax(0, 1fr);
        padding: 25px;
    }

    .admin-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-update {
        width: 100%;
        text-align: left;
    }

    .form-grid,
    .event-editor .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-full {
        grid-column: auto;
    }

    .event-editor-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .remove-event {
        width: 100%;
    }

    .save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .save-bar .button {
        width: 100%;
    }

    .share-rail {
        top: auto;
        bottom: 0;
        left: 50%;
        flex-direction: row;
        width: auto;
        border: 2px solid var(--line);
        border-bottom: 0;
        border-radius: 10px 10px 0 0;
        transform: translateX(-50%);
    }

    .share-rail-title {
        display: flex;
        min-width: 58px;
        min-height: 44px;
        align-items: center;
        border-right: 2px solid var(--line);
        border-bottom: 0;
    }

    .share-rail button {
        width: 49px;
        height: 44px;
        border-right: 1px solid #c9c0ad;
        border-bottom: 0;
    }
}

@media (max-width: 520px) {
    .site-header,
    .admin-header,
    .flea-hero,
    .page-section,
    .site-footer,
    .admin-main {
        width: calc(100% - 20px);
    }

    .site-logo {
        width: 58px;
        max-height: 58px;
    }

    .top-navigation {
        gap: 2px;
    }

    .top-navigation a {
        padding: 7px 6px;
        font-size: 0.79rem;
    }

    .admin-header-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-header-actions .button {
        width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 14vw, 4.1rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .hero-actions .button {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .market-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .event-date-card {
        width: 100%;
        min-height: 67px;
        flex-direction: row;
        gap: 9px;
    }

    .event-month {
        margin-top: 0;
    }

    .event-actions {
        grid-column: auto;
    }

    .site-footer {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
        margin-top: 58px;
    }

    .admin-section {
        padding: 18px 13px;
    }

    .admin-section-heading {
        gap: 10px;
    }

    .admin-section-heading > span:first-child {
        width: 35px;
        height: 35px;
        min-width: 35px;
        flex-basis: 35px;
        font-size: 0.70rem;
    }

    .admin-section h2 {
        font-size: 1.16rem;
    }

    .admin-section-heading p {
        font-size: 0.75rem;
    }

    .event-editor {
        padding: 14px 10px;
    }

    .modal-content {
        padding: 25px 19px;
    }
}
