/* ==========================================================================
   Hochzeit Sophia & Daniel - Stylesheet
   Farbpalette:
   - Hintergrund: #FAF7F2 (Cremeweiß)
   - Akzentfarbe: #C08497 (Altrosa)
   - Akzent dunkel: #A66B7E
   - Akzent zart: #F4EBEF
   - Text Hauptfarbe: #3A3A3A (Dunkelgrau)
   - Text Gedämpft: #6E6864
   - Rahmen / Linien: #E8E0D7
   ========================================================================== */

:root {
    --bg-main: #FAF7F2;
    --bg-card: #FFFFFF;
    --text-main: #3A3A3A;
    --text-muted: #6E6864;
    --accent: #C08497;
    --accent-hover: #AA6F82;
    --accent-light: #F6EEF1;
    --border-color: #E8E0D7;
    --border-focus: #C08497;
    --danger: #B84A58;
    --danger-bg: #FDF2F2;
    --success: #437A5B;
    --success-bg: #EFF8F3;
    --shadow-soft: 0 4px 20px rgba(70, 50, 60, 0.05);
    --shadow-card: 0 8px 30px rgba(70, 50, 60, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typografie */
h1, h2, h3, h4, .serif-font {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text-main);
    font-weight: normal;
    line-height: 1.3;
}

h1 {
    font-size: 2.1rem;
    margin-bottom: 0.8rem;
    text-align: center;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

h2 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Layout Container */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-header {
    padding: 2rem 1rem 1rem;
    text-align: center;
}

.monogram {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-style: italic;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 0.25rem;
}

.wedding-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem 1rem 3rem;
}

.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
}

.container-wide {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Karten & Boxen */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.card-center {
    text-align: center;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Hero-Bild */
.hero-image-wrapper {
    margin: -2.5rem -2rem 2rem -2rem;
    overflow: hidden;
    max-height: 380px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero-image {
    width: 100%;
    height: 100%;
    max-height: 380px;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.6s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Text-Elemente */
.lead-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    text-align: center;
}

.text-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem 0;
    color: var(--border-color);
}

.text-divider::before,
.text-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.text-divider span {
    padding: 0 1rem;
    color: var(--accent);
    font-size: 1.2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-soft);
    line-height: 1.4;
}

.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(192, 132, 151, 0.35);
    transform: translateY(-1px);
}

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

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

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

.btn-danger:hover {
    background-color: var(--danger-bg);
}

.btn-large {
    font-size: 1.1rem;
    padding: 0.9rem 2.2rem;
    width: 100%;
    margin-top: 1rem;
}

.btn-small {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
}

/* Formulare */
.form-group {
    margin-bottom: 1.8rem;
}

.form-label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.required-badge {
    color: var(--accent);
    margin-left: 0.25rem;
    font-weight: bold;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-main);
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(192, 132, 151, 0.18);
}

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

/* Radio & Checkbox Optionen */
.options-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.4rem;
}

.option-choice {
    display: flex;
    align-items: center;
    padding: 0.65rem 0.9rem;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.option-choice:hover {
    border-color: var(--accent);
    background-color: var(--accent-light);
}

.option-choice input[type="radio"],
.option-choice input[type="checkbox"] {
    margin-right: 0.75rem;
    accent-color: var(--accent);
    width: 1.15rem;
    height: 1.15rem;
    cursor: pointer;
}

.option-choice.is-selected {
    border-color: var(--accent);
    background-color: var(--accent-light);
}

/* Benachrichtigungen & Fehler */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-error {
    background-color: var(--danger-bg);
    border: 1px solid rgba(184, 74, 88, 0.3);
    color: var(--danger);
}

.alert-success {
    background-color: var(--success-bg);
    border: 1px solid rgba(67, 122, 91, 0.3);
    color: var(--success);
}

.alert-info {
    background-color: var(--accent-light);
    border: 1px solid rgba(192, 132, 151, 0.35);
    color: var(--text-main);
}

.error-list {
    margin-left: 1.25rem;
    margin-top: 0.5rem;
}

/* Admin Dashboard */
.admin-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
}

.stat-card.stat-highlight {
    background-color: var(--accent-light);
    border-color: rgba(192, 132, 151, 0.4);
}

.stat-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-family: Georgia, serif;
    color: var(--accent);
    line-height: 1.1;
}

.stat-breakdown {
    list-style: none;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.stat-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    border-bottom: 1px dashed var(--border-color);
}

.stat-breakdown li:last-child {
    border-bottom: none;
}

.stat-count {
    font-weight: 600;
    color: var(--text-main);
}

/* Admin Tabelle */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    background-color: #FFFFFF;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
    white-space: nowrap;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background-color: var(--bg-main);
    font-family: Georgia, serif;
    font-weight: normal;
    color: var(--text-main);
    font-size: 0.95rem;
    position: sticky;
    top: 0;
}

.admin-table tbody tr:hover {
    background-color: var(--accent-light);
}

.admin-table td.text-wrap {
    white-space: normal;
    min-width: 180px;
    max-width: 300px;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

/* Footer */
.site-footer {
    padding: 2rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

/* Responsive Anpassungen */
@media (max-width: 640px) {
    .card {
        padding: 1.8rem 1.25rem;
    }

    .hero-image-wrapper {
        margin: -1.8rem -1.25rem 1.5rem -1.25rem;
        max-height: 260px;
    }

    .hero-image {
        max-height: 260px;
    }

    h1 {
        font-size: 1.65rem;
    }

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

    .admin-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Floating Logout / Session Widget (unten rechts) */
.floating-session-widget {
    position: fixed;
    bottom: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 5px 12px;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(70, 50, 60, 0.12);
    z-index: 9999;
    transition: all 0.2s ease;
    opacity: 0.85;
}

.floating-session-widget:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(70, 50, 60, 0.18);
    border-color: var(--accent);
}

.session-badge {
    color: var(--accent-hover);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    background: var(--accent-light);
    padding: 2px 7px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(192, 132, 151, 0.25);
}

.session-logout-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color 0.2s ease;
}

.session-logout-link:hover {
    color: var(--danger);
}

/* Info Grid & Karten (Ablauf, Schlafen, Kontakte, Fotos) */
.info-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.info-card-highlight {
    background-color: var(--accent-light);
    border-color: rgba(192, 132, 151, 0.4);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.info-card-header h2 {
    margin: 0;
    font-size: 1.25rem;
}

.info-card-icon {
    font-size: 1.4rem;
    line-height: 1;
}

/* Timeline */
.timeline-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.5rem;
    border-left: 2px solid var(--border-color);
}

.timeline-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 1.2rem;
}

.timeline-list li:last-child {
    margin-bottom: 0;
}

.timeline-list li::before {
    content: "";
    position: absolute;
    left: -0.85rem;
    top: 0.35rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent);
    border: 2px solid #FFFFFF;
}

.timeline-time {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.timeline-desc strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-main);
}

.timeline-desc p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0 0;
}

/* Hotels & Kontakte Sub-Karten */
.hotel-item, .contact-box {
    background-color: var(--bg-main);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.hotel-item:last-child, .contact-box:last-child {
    margin-bottom: 0;
}

.hotel-item strong, .contact-box strong {
    font-size: 0.95rem;
    display: block;
    color: var(--text-main);
}

.hotel-item p, .contact-box p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.2rem 0 0 0;
}

/* Hilfetexte & Upload */
.form-help-text {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: -0.3rem;
    margin-bottom: 0.6rem;
}

.file-input {
    padding: 0.5rem;
    cursor: pointer;
}

.badge-photo-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-light);
    color: var(--accent-hover);
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(192, 132, 151, 0.3);
}

.badge-photo-link:hover {
    background: var(--accent);
    color: #FFFFFF;
}

/* Foto Upload Seite & Galerie */
.photo-upload-container {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.8rem 1.5rem;
    margin-bottom: 2rem;
}

.photo-upload-container h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: center;
}

.drag-drop-zone {
    position: relative;
    border: 2px dashed var(--accent);
    background-color: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 2.2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.drag-drop-zone:hover, .drag-drop-zone.drag-active {
    background-color: var(--accent-light);
    border-color: var(--accent-hover);
    transform: scale(1.01);
}

.drop-zone-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.drop-zone-text {
    font-size: 1rem;
    color: var(--text-main);
}

.drop-zone-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-selection-badge {
    margin-top: 0.75rem;
    display: inline-block;
    background: var(--accent);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.dropbox-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--accent-light);
    border: 1px solid rgba(192, 132, 151, 0.4);
    border-radius: var(--radius-md);
    padding: 1.2rem 1.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.photo-card {
    background-color: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent);
}

.gallery-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-card:hover .gallery-thumbnail {
    transform: scale(1.04);
}

.photo-card-body {
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.photo-uploader {
    font-size: 0.9rem;
    color: var(--text-main);
}

.photo-comment {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-muted);
}

.photo-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
