/* Siemens cookingClub - event list + registration modal */
@font-face {
    font-family: 'SiemensSans';
    src: url('../siemens-assets/fonts/siemenssans-roman-webfont.woff2') format('woff2'),
         url('../siemens-assets/fonts/siemenssans-roman-webfont.woff') format('woff'),
         url('../siemens-assets/fonts/siemenssans-roman-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body.siemens {
    margin: 0;
    background: #2d373c;
    color: #fff;
    font-family: 'SiemensSans', Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

a { color: #41aaaa; text-decoration: none; }
a:hover { text-decoration: underline; }
.hide { display: none !important; }

.page-content { max-width: 1100px; margin: 0 auto; padding: 40px 20px 60px; }

/* ── Intro ── */
.intro { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.intro h1 { margin: 0; font-size: 35px; line-height: 40px; font-weight: normal; }
.empty { font-weight: normal; font-size: 24px; margin: 40px 0; }

/* ── Location blocks ── */
.location { margin-bottom: 15px; padding-bottom: 20px; border-bottom: 3px solid rgba(65, 170, 170, .35); }
.location-head { cursor: pointer; margin-bottom: 10px; }
.location-head strong { font-size: 14px; font-weight: normal; }
.location-head::before { content: '▾ '; color: #41aaaa; }
.location-head[aria-expanded="false"]::before { content: '▸ '; }

/* ── Event teaser ── */
.teaser { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid #41aaaa; }
.teaser:first-child { border-top: 0; padding-top: 5px; }

.teaser-date {
    flex: 0 0 80px; height: 80px; padding-top: 3px;
    border: 1px solid #fff; text-align: center;
}
.teaser-date .day { display: block; font-size: 36px; line-height: 44px; }
.teaser-date .month { display: block; font-size: 20px; line-height: 24px; }

.teaser-main { flex: 1; min-width: 0; }
/* Two fixed columns: the title takes the remaining space (and wraps), the action column is always on the right */
.teaser-top { display: grid; grid-template-columns: minmax(0, 1fr) 160px; align-items: start; gap: 20px; }
.teaser-title { min-width: 0; overflow-wrap: anywhere; }
.teaser-title h2 { margin: 0 0 5px; font-size: 24px; line-height: 30px; font-weight: normal; }
.teaser-title .meta { margin: 0; font-size: 17px; line-height: 25px; }

.teaser-action { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; grid-column: 2; text-align: right; }
.teaser-action .s-btn { white-space: nowrap; }
.availability { position: relative; padding-left: 15px; }
.availability::after {
    content: ''; position: absolute; left: 0; top: 50%; margin-top: -5px;
    width: 10px; height: 10px; border-radius: 50%; background: #adcc52;
}
.availability.in { color: #adcc52; }
.availability.out { color: #ff4d4d; }
.availability.out::after { background: #ff4d4d; }

.event_description { margin-top: 15px; }
.event_description img { display: block; max-width: 100%; height: auto; margin: 10px 0; }

.event_short_description { margin-top: 40px; font-size: 12px; opacity: .85; }
.event_short_description h4 { margin: 0 0 6px; font-size: 14px; font-weight: normal; }

/* ── Buttons ── */
.s-btn {
    display: inline-block; padding: 9px 22px; cursor: pointer;
    border: 1px solid #41aaaa; background: #41aaaa; color: #fff;
    font: inherit; font-size: 14px; line-height: 20px;
}
.s-btn:hover { background: #339393; border-color: #339393; }
.s-btn:disabled { opacity: .6; cursor: wait; }
.s-btn-ghost { background: transparent; color: #2d373c; border-color: #9aa5aa; }
.s-btn-ghost:hover { background: #eef2f3; border-color: #2d373c; }

/* ── Modal ── */
dialog#anmelden {
    width: min(720px, calc(100vw - 20px)); max-height: calc(100vh - 20px);
    margin: auto; padding: 0; border: 0; overflow: auto;
    background: #fff; color: #2d373c;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}
dialog#anmelden::backdrop { background: rgba(0, 0, 0, .65); }
dialog#anmelden p, dialog#anmelden label { color: #2d373c; }
dialog#anmelden a { color: #147391; }

.s-modal-head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    padding: 14px 24px; background: #fff; border-bottom: 3px solid #41aaaa;
}
.s-modal-head h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: normal; }
.s-close { border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: #2d373c; }

.s-modal-body { padding: 20px 24px; }
.s-modal-body h3 { margin: 22px 0 10px; font-size: 18px; font-weight: normal; }
.s-modal-foot {
    position: sticky; bottom: 0; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap;
    padding: 14px 24px; background: #f3f6f7; border-top: 1px solid #d5dde0;
}

.s-event { margin: 0 0 15px; }

/* ── Form rows ── */
.s-row { display: flex; gap: 16px; margin-bottom: 12px; align-items: flex-start; }
.s-row > label { flex: 0 0 34%; padding-top: 8px; }
.s-field { flex: 1; min-width: 0; }
.s-field input[type=text], .s-field input[type=email], .s-field input[type=tel], .s-field select, .s-field textarea {
    width: 100%; padding: 8px 10px; font: inherit; color: #2d373c;
    border: 1px solid #b6c1c5; border-radius: 0; background: #fff;
}
.s-field input:focus, .s-field select:focus, .s-field textarea:focus { outline: 2px solid #41aaaa; outline-offset: 0; }
.s-field .error, .s-field input.error, .s-field select.error { border-color: #d9534f; background: #fdf1f1; }

.s-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.s-check input { margin-top: 4px; }
.s-companion { margin: 0 0 8px; padding: 12px 0 0 16px; border-left: 3px solid #41aaaa; }

/* ── Messages ── */
.s-alert { margin: 0 0 16px; padding: 10px 14px; background: #fdf1f1; border: 1px solid #d9534f; color: #8a1f1b; }
.s-alert ul { margin: 0; padding-left: 18px; }
.s-error { color: #c0392b; margin: 4px 0 10px; }

/* ── Summary ── */
.s-block { margin: 0 0 14px; }
.s-price { max-width: 380px; }
.s-price div { display: flex; justify-content: space-between; }
.s-price .total { margin-top: 6px; padding-top: 6px; border-top: 1px solid #2d373c; font-weight: bold; }
.s-consent { margin-top: 18px; padding-top: 14px; border-top: 1px solid #d5dde0; }
.s-legal { margin: 4px 0 10px 26px; font-size: 12px; line-height: 17px; }

@media (max-width: 600px) {
    .page-content { padding: 20px 12px 40px; }
    .intro h1 { font-size: 26px; line-height: 32px; }
    .teaser { gap: 12px; }
    .teaser-date { flex-basis: 64px; height: 64px; }
    .teaser-date .day { font-size: 28px; line-height: 34px; }
    .teaser-date .month { font-size: 16px; line-height: 20px; }
    .teaser-top { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
    .teaser-action { align-items: flex-end; }
    .s-row { flex-direction: column; gap: 4px; }
    .s-row > label { flex-basis: auto; padding-top: 0; }
    .s-modal-head, .s-modal-body, .s-modal-foot { padding-left: 14px; padding-right: 14px; }
}
