/**
 * DIZS Event System - Event Styles
 * Luma-accurate Design
 * Version: 1.2
 */

/* Google Fonts Import - Lora */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */

:root {
    --brand-color: #87856e;
    --brand-active-color: #6b6957;
    --brand-pale-bg-color: #87856e21;

    --primary-bg-color: #ffffff;
    --secondary-bg-color: #f6f5f1;
    --card-bg-color: #ffffff;

    --primary-color: #03050d;
    --tint-color: #6b6b6b;

    --divider-color: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.1);

    --opacity-light: rgba(0, 0, 0, 0.04);
    --opacity-8: rgba(0, 0, 0, 0.08);

    --border-radius: 12px;
    --card-border-radius: 16px;
    --small-border-radius: 8px;

    --card-padding: 1.5rem;
    --card-content-padding: 1.5rem;
    --event-card-padding: 1.25rem;

    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --title-font: 'Lora', Georgia, serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;
    --title-font-weight-medium: 500;
    --title-font-weight-bold: 700;
    --line-height: 1.5;
    --title-line-height: 1.2;
    --reduced-title-line-height: 1.1;

    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --one-to-one-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    --transition: all 0.2s ease;

    --backdrop-blur: blur(20px);
    --card-backdrop-filter: blur(10px);

    --one-to-one-card-bg-color: rgba(255, 255, 255, 0.9);
    --one-to-one-card-border-color: rgba(0, 0, 0, 0.08);
    --max-width: 1200px;
}

/* ============================================
   RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--primary-color);
    background-color: var(--secondary-bg-color);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-active-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.flex-center {
    display: flex;
    align-items: center;
}

.flex-center-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-start {
    display: flex;
    align-items: flex-start;
}

.spread {
    justify-content: space-between;
}

.gap-1 {
    gap: 0.5rem;
}

.gap-2 {
    gap: 1rem;
}

.gap-3 {
    gap: 1.5rem;
}

.gap-25 {
    gap: 0.625rem;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mt-05 {
    margin-top: 0.25rem;
}

.mt-1 {
    margin-top: 0.5rem;
}

.pb-2 {
    padding-bottom: 1rem;
}

.text-tinted {
    color: var(--tint-color);
}

.text-primary {
    color: var(--primary-color);
}

.text-ellipses {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fw-medium {
    font-weight: var(--font-weight-medium);
}

.fw-bold {
    font-weight: var(--font-weight-bold);
}

.fs-xs {
    font-size: var(--font-size-xs);
}

.fs-sm {
    font-size: var(--font-size-sm);
}

.rounded {
    border-radius: var(--border-radius);
}

.rounded-card {
    border-radius: var(--card-border-radius);
}

.overflow-hidden {
    overflow: hidden;
}

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

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.block {
    display: block;
}

/* ============================================
   CONTAINER
   ============================================ */

.page-wrapper {
    min-height: 100vh;
    position: relative;
}

.zm-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .zm-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .zm-container {
        padding: 0 1rem;
    }
}

/* ============================================
   EVENT PAGE LAYOUT
   ============================================ */

.event-page-content-wrapper {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
}

.event-page-left {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.event-page-right {
    min-width: 0;
    padding-top: 4rem;
}

@media (max-width: 1000px) {
    .event-page-content-wrapper {
        grid-template-columns: 300px 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 820px) {
    .event-page-content-wrapper {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 650px) {
    .event-page-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .event-page-left { position: static; }
    .event-page-desktop-only { display: none; }
    
    .event-page-right {
        padding-top: 0; /* NEU - Mobile kein Padding */
    }
}

.event-page-mobile-only {
    display: none;
}

@media (max-width: 650px) {
    .event-page-mobile-only {
        display: block;
    }
}

/* ============================================
   COVER IMAGE - WENIGER ABSTAND
   ============================================ */

.cover-with-glow {
    position: relative;
    margin-bottom: 0rem;
    /* Noch weniger Abstand */
}

.cover-image-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: var(--card-border-radius);
}

.img-aspect-ratio {
    background-color: var(--opacity-light);
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: var(--card-border-radius);
}

.img-aspect-ratio img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    image-rendering: auto;
}

/* ============================================
   CONTENT CARDS
   ============================================ */

.content-card {
    background-color: var(--card-bg-color);
    border-radius: var(--card-border-radius);
    padding: var(--card-content-padding);
    box-shadow: var(--card-shadow);
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

.card-title {
    margin-bottom: 1rem;
}

.title-label {
    font-family: var(--title-font);
    font-weight: var(--title-font-weight-medium);
    color: var(--tint-color);
    font-size: var(--font-size-sm);
}

/* ============================================
   SECTION TITLES - IN TITLE FONT
   ============================================ */

.section-title {
    font-family: var(--title-font);
    font-weight: var(--title-font-weight-medium);
    font-size: 1.2rem;
    color: var(--tint-color);
    margin: 0;
}

/* ============================================
   EVENT TITLE
   ============================================ */

.top-card-content {
    padding: 0;
    margin-bottom: 2rem;
}

.title-wrapper {
    margin-bottom: 0rem;
    /* Noch weniger */
}

.title {
    font-size: 3rem;
    font-family: var(--title-font);
    font-weight: var(--title-font-weight-bold);
    line-height: var(--reduced-title-line-height);
    word-break: break-word;
    color: var(--primary-color);
}

/* ============================================
   HOSTED BY - MIT ICON
   ============================================ */

.hosted-by-wrapper {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.hosted-by-wrapper svg {
    flex-shrink: 0;
}

/* ============================================
   CALENDAR ICON - MIT TAG/MONAT
   ============================================ */

.icon-container-calendar {
    border: 1px solid var(--divider-color);
    width: 3rem;
    /* Größer: war 2.5rem */
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.calendar-icon {
    text-align: center;
    line-height: 1;
}

.calendar-month {
    font-size: 0.5625rem;
    /* Etwas größer */
    font-weight: 700;
    color: var(--tint-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-day {
    font-size: 1rem;
    /* Größer: war 0.875rem */
    font-weight: 700;
    color: var(--tint-color);
    margin-top: 1px;
}

/* ============================================
   ICON ROW
   ============================================ */

.icon-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-container {
    border: 1px solid var(--divider-color);
    width: 3rem;
    /* Größer: war 2.5rem */
    height: 3rem;
    color: var(--tint-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    flex-shrink: 0;
}

.icon-container svg {
    width: 1.5rem;
    /* Größer: war 1.25rem */
    height: 1.5rem;
}

.row-container {
    border-radius: var(--border-radius);
    padding: 0.5rem;
    margin: -0.5rem;
    transition: var(--transition);
}

.row-container:hover {
    background-color: var(--opacity-light);
}

/* ============================================
   REGISTRATION CARD - ANGEPASST
   ============================================ */

.base-11-card {
    padding: 0;
    /* Kein Padding, nur im Content */
    background-color: var(--one-to-one-card-bg-color);
    border: 1px solid var(--one-to-one-card-border-color);
    backdrop-filter: var(--card-backdrop-filter);
    box-shadow: var(--one-to-one-card-shadow);
    border-radius: var(--card-border-radius);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.header {
    background-color: var(--opacity-light);
    padding: 0.625rem 1.25rem;
    /* Angepasst */
    margin: 0;
    /* Kein Margin */
}

.registration-content {
    padding: 1.25rem;
}

.registration-text {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-size: 1rem;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    min-height: 2.75rem;
}

.btn.full-width {
    width: 100%;
}

.btn.primary {
    background-color: var(--brand-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--brand-active-color);
    color: white;
}

.btn.secondary {
    background-color: transparent;
    color: var(--tint-color);
    border: 1px solid var(--divider-color);
}

.btn.secondary:hover {
    background-color: var(--opacity-light);
}

/* ============================================
   AVATARS
   ============================================ */

.avatar-wrapper {
    position: relative;
}

.avatar {
    width: 1.5rem;
    height: 1.5rem;
    background-position: center;
    background-size: cover;
    background-color: var(--brand-pale-bg-color);
    outline: 0.5px solid var(--divider-color);
    border-radius: 1000px;
    position: relative;
}

.avatar-wrapper.small .avatar {
    width: 1.5rem;
    height: 1.5rem;
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--brand-color);
    background-color: var(--brand-pale-bg-color);
}

/* ============================================
   RICH TEXT CONTENT
   ============================================ */

.spark-content {
    line-height: 1.6;
}

.spark-content p {
    margin-bottom: 1rem;
}

.spark-content h2 {
    font-family: var(--title-font);
    font-weight: var(--title-font-weight-bold);
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.spark-content h3 {
    font-family: var(--title-font);
    font-weight: var(--title-font-weight-bold);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.spark-content ul,
.spark-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.spark-content li {
    margin-bottom: 0.5rem;
}

.spark-content strong,
.spark-content b {
    font-weight: var(--font-weight-bold);
}

.spark-content a {
    color: var(--brand-color);
    border-bottom: 1px solid var(--brand-pale-bg-color);
}

.spark-content a:hover {
    border-bottom-color: var(--brand-active-color);
}

/* ============================================
   CATEGORIES
   ============================================ */

.event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: var(--brand-pale-bg-color);
    border-radius: var(--small-border-radius);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--brand-color);
    transition: var(--transition);
}

.category:hover {
    background-color: var(--brand-color);
    color: white;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1000px) {
    .title {
        font-size: 2.5rem;
    }
}

@media (max-width: 820px) {
    .title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    :root {
        --card-padding: 1.25rem;
        --card-content-padding: 1.25rem;
    }
}

@media (max-width: 650px) {
    .title {
        font-size: 2rem;
        line-height: var(--title-line-height);
    }
}

@media (max-width: 480px) {
    :root {
        --card-padding: 1rem;
        --card-content-padding: 1rem;
    }
}

@media (max-width: 450px) {
    .title {
        font-size: 1.75rem;
    }

    .icon-container,
    .icon-container-calendar {
        width: 2.75rem;
        /* Etwas kleiner auf mobile, aber größer als vorher */
        height: 2.75rem;
    }

    .icon-container svg {
        width: 1.375rem;
        height: 1.375rem;
    }

    .calendar-day {
        font-size: 0.9375rem;
    }
}

/**
 * DIZS Event System - Modal Styles
 * Füge das zu event-style.css hinzu
 */

/* ============================================
   MODAL SYSTEM
   ============================================ */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease;
}

.modal-content {
    background: white;
    border-radius: var(--card-border-radius);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--divider-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: var(--title-font-weight-bold);
    margin: 0;
}

.modal-close {
    font-size: 2rem;
    line-height: 1;
    color: var(--tint-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--small-border-radius);
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--opacity-light);
    color: var(--primary-color);
}

.modal-body {
    padding: 1.5rem;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.5rem;
    font-size: var(--font-size-sm);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--divider-color);
    border-radius: var(--border-radius);
    font-family: var(--font);
    font-size: var(--font-size-base);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--brand-color);
    box-shadow: 0 0 0 3px var(--brand-pale-bg-color);
}

.form-input::placeholder {
    color: var(--tint-color);
    opacity: 0.6;
}

textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    margin: 0;
    position: relative;
    top: 2px; /* Checkbox nach unten nudgen */
    cursor: pointer;
}

.checkbox-label .checkbox-text {
    margin-top: 0;
    line-height: 1.4;
}

.checkbox-label span {
    font-size: var(--font-size-sm);
}

.checkbox-label a {
    color: var(--brand-color);
    text-decoration: underline;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--tint-color);
    margin-top: 0.375rem;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .btn {
    flex: 1;
}

/* ============================================
   SUCCESS/ERROR MESSAGES
   ============================================ */

.modal-error {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.modal-error ul {
    margin: 0.5rem 0 0 1.5rem;
    padding: 0;
}

.modal-error li {
    margin: 0.25rem 0;
}

.success-content {
    text-align: center;
    padding: 1rem 0 5rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-title {
    font-family: var(--title-font);
    font-size: 1.5rem;
    font-weight: var(--title-font-weight-bold);
    margin-bottom: 1.5rem;
}

.booking-id-display {
    background: var(--brand-pale-bg-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.booking-id-label {
    font-size: 1.5rem;
    color: var(--tint-color);
    margin-bottom: 0.5rem;
}

.booking-id {
    font-family: 'Courier New', monospace;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--brand-color);
    letter-spacing: 0.25rem;
}

.booking-date {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
}

.success-details {
    margin-bottom: 1rem;
}

.success-details p {
    margin: 0.25rem 0;
    font-size: 1rem; 
}

.success-info {
    color: var(--tint-color);
    font-size: 1rem;
}

.event-status {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    padding: 0.25rem 0.75rem;
    border-radius: var(--small-border-radius);
    display: inline-block;
}

.event-status.available {
    background: #e8f5e9;
    color: #2e7d32;
}

.event-status.full {
    background: #ffebee;
    color: #c62828;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 480px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        max-height: 100vh; /* war 95vh */
        padding-bottom: 20px; /* NEU - Platz für Chrome Tabs */
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    .booking-id-label{
        font-size: 1.5rem;
    }
    
    .booking-id {
        font-size: 2.5rem;
    }
}