/* OCTAGON v2 — Design */

@font-face {
    font-family: "Sequel";
    src: url('/static/font/Sequel_Demo.ttf') format('truetype');
    font-display: swap;
}
@font-face {
    font-family: "Odachi";
    src: url('/static/font/Odachi.woff') format('woff'),
         url('/static/font/Odachi.otf') format('opentype');
    font-display: swap;
}

:root {
    --accent: #7c3aed;          /* Violett — passt zum 💜 der Texte */
    --accent-strong: #6d28d9;
    --accent-light: #ede9fe;
    --dark: #171321;            /* dunkles Violett-Schwarz für Header/Hero/Footer */
    --dark-soft: #221c31;
    --text: #221e2e;
    --text-muted: #5d5870;
    --on-dark-muted: #b6aecc;
    --bg: #ffffff;
    --bg-soft: #f7f5fb;
    --border: #e6e2f0;
    --radius: 14px;
    --shadow: 0 4px 24px rgba(35, 20, 70, 0.10);
    --shadow-hover: 0 10px 32px rgba(35, 20, 70, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

main {
    max-width: 1020px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 5rem;
}

h1, h2, h3 {
    font-family: "Sequel", system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 {
    font-size: 1.6rem;
    margin-top: 3rem;
    padding-bottom: 0.4rem;
    position: relative;
}
h2::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 3.5rem; height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), #c4b5fd);
}

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

.lead { font-size: 1.18rem; color: var(--text-muted); max-width: 46rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.7rem 1.5rem;
    background: rgba(23, 19, 33, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #fff;
    text-decoration: none;
}
.brand img { height: 2.2rem; width: auto; }

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.site-header nav a {
    color: #e9e5f5;
    text-decoration: none;
    font-size: 1.02rem;
    position: relative;
}
.site-header nav a:not(.cta)::after {
    content: "";
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.2s ease;
}
.site-header nav a:not(.cta):hover::after { width: 100%; }

/* ---------- Buttons ---------- */
.cta, .button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff !important;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(124, 58, 237, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover, .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.45);
}

.button.secondary {
    background: var(--accent-light);
    color: var(--accent-strong) !important;
    box-shadow: none;
}

/* ---------- Hero (volle Breite) ---------- */
.hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -1.5rem;
    padding: clamp(4rem, 12vw, 8rem) 1.5rem;
    background:
        linear-gradient(rgba(23, 19, 33, 0.78), rgba(23, 19, 33, 0.62)),
        url('/static/images/website_header_01.png') center/cover no-repeat;
    color: #fff;
    text-align: center;
}
.hero h1 {
    margin: 0 0 1rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.hero .lead {
    color: var(--on-dark-muted);
    margin: 0 auto 2rem;
}
.hero .button.secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #fff !important;
    backdrop-filter: blur(4px);
}

/* ---------- Räume ---------- */
.rooms-grid {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.4rem;
}

.room-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.room-card img {
    width: 100%;
    border-radius: calc(var(--radius) - 4px);
    aspect-ratio: 4/3;
    object-fit: cover;
}
.room-card h3 { margin: 0.7rem 0 0.15rem; }

.rooms-list { list-style: none; padding: 0; }
.room-detail {
    display: flex;
    gap: 1.75rem;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding: 2rem 0;
}
.room-detail img {
    width: 340px;
    max-width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    align-self: flex-start;
    box-shadow: var(--shadow);
}
.room-detail .room-info { flex: 1; min-width: 260px; }
.room-detail h2 { margin-top: 0; }
.room-detail h2::after { display: none; }

.size { color: var(--text-muted); }
.note { color: var(--text-muted); font-style: italic; }

.features {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.features li {
    background: var(--accent-light);
    color: var(--accent-strong);
    border-radius: 999px;
    padding: 0.18rem 0.75rem;
    font-size: 0.9rem;
}

/* ---------- Tabellen ---------- */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 1.25rem 0;
}
table th, table td {
    border-bottom: 1px solid var(--border);
    padding: 0.65rem 0.85rem;
    text-align: left;
    vertical-align: top;
}
table tr:last-child th, table tr:last-child td { border-bottom: none; }
table thead th {
    background: var(--dark);
    color: #fff;
    font-family: "Sequel", sans-serif;
    font-weight: 500;
}
table tbody tr:nth-child(even) { background: var(--bg-soft); }
.occupancy td.today, .occupancy th.today { background: var(--accent-light); }

.slot {
    display: block;
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 0.3rem 0.45rem;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}
.slot.private {
    background: var(--bg-soft);
    border-left-color: var(--border);
    color: var(--text-muted);
}

.week-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
}

/* ---------- Veranstaltungen ---------- */
.event-list { list-style: none; padding: 0; }
.event-list li {
    display: flex;
    gap: 1.25rem;
    padding: 0.5rem 0;
}
.event-list .date { color: var(--text-muted); min-width: 11rem; }
.event-list.big li {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}
.event-list.big h2 { margin: 0 0 0.25rem; font-size: 1.3rem; }
.event-list.big h2::after { display: none; }
.event-list .room { color: var(--accent-strong); font-size: 0.95rem; }

/* ---------- Formulare ---------- */
.inquiry-form { max-width: 38rem; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 200px; }
.field.checkbox { flex-direction: row; align-items: center; gap: 0.5rem; }
.field label { font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field input[type="date"],
.field input[type="number"], .field select, .field textarea {
    font: inherit;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}
.field .error { color: #b91c1c; font-size: 0.9rem; }

/* ---------- Preise ---------- */
.tier-explain {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin: 1.75rem 0;
}
.tier-explain > div {
    background: var(--bg);
    border: 1px solid var(--border);
    border-top: 4px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.1rem 1.25rem;
}

.calc-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
}
.calc-form .field { margin-bottom: 0; }
.calc-form input[type="number"] { width: 9.5rem; }

.quote {
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    padding: 1.4rem;
    margin-top: 1.4rem;
}
.quote h3 { margin-top: 0; }
.quote table { box-shadow: none; }

/* ---------- FAQ ---------- */
.faq { margin-top: 3.5rem; }
.faq details {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1.2rem;
    margin-bottom: 0.6rem;
    transition: box-shadow 0.15s ease;
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
    cursor: pointer;
    font-weight: 600;
    font-family: "Sequel", sans-serif;
}
.faq details p { color: var(--text-muted); }

/* ---------- Miteinander ---------- */
.miteinander-teaser {
    background: linear-gradient(135deg, var(--dark), var(--dark-soft));
    color: var(--on-dark-muted);
    border-radius: var(--radius);
    padding: 2rem;
    margin-top: 3rem;
}
.miteinander-teaser h2 { color: #fff; margin-top: 0; }
.miteinander-teaser a { color: #c4b5fd; }

.page-list { list-style: none; padding: 0; font-size: 1.1rem; }
.page-list li { padding: 0.45rem 0; }
.page-list.small { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 2.5rem; font-size: 1rem; }
.content-page { max-width: 46rem; }
.content-page h1 { font-size: 2rem; }

/* ---------- Backend ---------- */
.flash {
    background: var(--accent-light);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 0.7rem 1rem;
}
.active-filter { font-weight: 700; }
.status-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.25rem 0; }
.linklike {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--accent-strong);
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--dark);
    color: var(--on-dark-muted);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.95rem;
}
.site-footer a { color: var(--on-dark-muted); }
