/* =========================
   Reset & Basis
   ========================= */
* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont,
                 "Segoe UI", Roboto, Arial, sans-serif;
}

body {
    margin: 0;
    background: #f5f5f5;
    color: #222;
}

/* =========================
   Layout
   ========================= */
.container {
    max-width: 520px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    min-height: 100vh;
}

/* Desktop etwas luftiger */
@media (min-width: 768px) {
    .container {
        max-width: 640px;
    }
}

/* =========================
   Überschriften
   ========================= */
h1, h2 {
    font-weight: 600;
    margin: 0 0 10px 0;
}

/* =========================
   Formular
   ========================= */
form {
    margin-top: 20px;
}

input,
select,
button {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    font-size: 16px;
}

input,
select {
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
}

select {
    appearance: none;
}

/* Buttons */
button {
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

button:hover {
    background: #004fa3;
}

button:active {
    transform: translateY(1px);
}

/* =========================
   Eventbild
   ========================= */
.event-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
}

/* =========================
   Kategorien & Einträge
   ========================= */
.category {
    margin-bottom: 24px;
}

.category h2 {
    border-bottom: 2px solid #eee;
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.entry {
    padding: 6px 0;
}

/* =========================
   Admin-Hinweis / Info-Box
   ========================= */
.admin {
    background: #f0f7ff;
    padding: 12px;
    border-left: 4px solid #0066cc;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* =========================
   Admin-Menü (Fix für komische Umbrüche wie einzelnes "n")
   ========================= */
.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 8px;

    /* verhindert Umbruch mitten im Wort */
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* Links/Separatoren im Menü: nicht mitten im Wort umbrechen */
.admin-menu a,
.admin-menu span {
    white-space: nowrap;
}

/* Optionaler Safety-Fix: falls irgendwo global break-all gesetzt wurde */
.admin a {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

/* =========================
   Floating Bottom-Bar (iOS-like)
   ========================= */
.floating-overview {
    position: fixed;
    left: 16px;
    right: 16px;

    /* iOS Safe Area berücksichtigen */
    bottom: calc(16px + env(safe-area-inset-bottom));

    z-index: 9999;
}

.floating-overview a {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;

    width: 100%;

    background: #0066cc !important;
    color: #fff !important;

    padding: 16px 18px !important;
    border-radius: 16px !important;

    font-size: 16px !important;
    font-weight: 600 !important;

    text-decoration: none !important;

    box-shadow: 0 10px 24px rgba(0,0,0,0.25) !important;

    -webkit-tap-highlight-color: transparent;
}

.floating-overview a:active {
    transform: translateY(1px);
}