/* QuadCMS: dunkles Vereinsdesign mit grünen, von der Mitte ausfahrenden Hover-Linien. */
:root {
    color-scheme: dark;
    --bg: #111517;
    --panel: #23292d;
    --border: #394348;
    --text: #f0f5f1;
    --muted: #aebcb6;
    --green: #83f542;
    --shadow: 0 0 18px #76ff3970;
    font-family: system-ui, -apple-system, Segoe UI, sans-serif
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(ellipse at 75% 0%, #223329 0%, var(--bg) 55%);
    color: var(--text);
    min-height: 100vh
}

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

a:hover {
    color: #c0ff9a
}

header {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 17px max(24px, calc((100vw - 1240px)/2));
    background: #191e21;
    border-bottom: 1px solid #34413a
}

header .brand {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px
}

header .brand span {
    color: var(--green)
}

nav {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: wrap
}

nav a {
    position: relative;
    padding: 11px 13px;
    color: #e5eae6;
    transition: color .2s
}

nav a:after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform .32s ease;
    box-shadow: var(--shadow)
}

nav a:hover:after,
nav a:focus-visible:after {
    transform: scaleX(1)
}

nav a:hover {
    color: var(--green);
    text-shadow: 0 0 12px #83f54288
}

.account {
    display: flex;
    gap: 10px;
    align-items: center
}

.site-layout,
.admin-layout {
    max-width: 1240px;
    margin: 32px auto;
    padding: 0 20px;
    display: grid;
    gap: 24px
}

.site-layout {
    grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr)
}

.admin-layout {
    grid-template-columns: 1fr;
    max-width: 1040px
}

main {
    min-width: 0
}

.panel {
    background: linear-gradient(160deg, #262d30, #1e2427);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 6px 25px #0004
}

h1,
h2,
h3 {
    margin-top: 0
}

h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem)
}

h2 {
    font-size: 1.4rem
}

h3 {
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px
}

p {
    line-height: 1.65;
    color: var(--muted)
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid #4a6848;
    border-radius: 14px;
    background: #1e3027 url('/assets/hero.svg') center/cover;
    margin-bottom: 22px
}

.hero video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover
}

.hero:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #08100de8, #08100d40)
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 60px 42px;
    max-width: 630px
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.06;
    margin: 15px 0
}

.hero em {
    font-style: normal;
    color: var(--green);
    text-shadow: 0 0 25px #76ff3955
}

.eyebrow {
    color: #b2ff92;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: .75rem
}

.button,
button {
    background: #4b9b2c;
    color: #fff;
    border: 1px solid #87fa55;
    padding: 10px 17px;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 700;
    transition: box-shadow .2s, transform .2s
}

.button:hover,
button:hover:not(:disabled) {
    box-shadow: var(--shadow);
    color: white;
    transform: translateY(-1px)
}

button:disabled {
    opacity: .4;
    cursor: not-allowed
}

button.danger {
    background: #612f33;
    border-color: #a8555b
}

.inline {
    display: inline
}

.inline button {
    padding: 5px 10px
}

label {
    display: block;
    margin: 14px 0;
    color: #d6e1d8
}

input:not([type=checkbox]),
textarea,
select {
    display: block;
    width: 100%;
    background: #11191a;
    border: 1px solid #536158;
    color: white;
    padding: 12px;
    border-radius: 7px;
    margin-top: 6px;
    font: inherit
}

textarea {
    resize: vertical;
    min-height: 110px
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-right: 16px
}

.entry {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding: 13px 0
}

.entry strong {
    min-width: 130px
}

.entry select {
    width: auto
}

.notice {
    padding: 15px;
    border: 1px solid #f2a26a;
    border-radius: 7px;
    margin-bottom: 16px
}

table {
    width: 100%;
    border-collapse: collapse
}

td,
th {
    text-align: left;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border)
}

footer {
    text-align: center;
    color: #80948b;
    padding: 30px
}

.prose {
    white-space: normal;
    line-height: 1.7
}

@media(max-width:800px) {
    .site-layout {
        grid-template-columns: 1fr
    }

    .hero-content {
        padding: 38px 24px
    }

    header {
        padding: 16px 20px
    }

    nav {
        order: 3;
        flex-basis: 100%
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        transition: none !important;
        animation: none !important
    }

    .hero video {
        display: none
    }
}

/* Bilder automatisch an den Content-Bereich anpassen */
.prose img {
    max-width: 100%;
    height: auto;
}

/* Zentrierte Bilder */
.prose img[style*="margin-left: auto"][style*="margin-right: auto"],
.prose img[style*="margin-left:auto"][style*="margin-right:auto"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Linksbündige Bilder mit Textumfluss */
.prose img[style*="float: left"],
.prose img[style*="float:left"] {
    float: left;
    margin: 0 15px 10px 0;
}

/* Rechtsbündige Bilder mit Textumfluss */
.prose img[style*="float: right"],
.prose img[style*="float:right"] {
    float: right;
    margin: 0 0 10px 15px;
}

/* Bild links: Text fließt rechts vorbei */
.prose img.bild-links {
    float: left;
    margin: 15px 20px 15px 0;
}

/* Bild rechts: Text fließt links vorbei */
.prose img.bild-rechts {
    float: right;
    margin: 15px 0 15px 20px;

}

/* Bild mittig: kein Textumfluss */
.prose img.bild-mittig {
    display: block;
    float: none;
    margin: 15px auto;
}

/* Verhindert, dass nachfolgende Bereiche
   von umflossenen Bildern überlappt werden */
.prose::after {
    content: "";
    display: block;
    clear: both;
}

/* Tabellen automatisch an den Content-Bereich anpassen */
.prose table {
    width: 100% !important;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.prose th,
.prose td {
    overflow-wrap: anywhere;
    word-break: normal;
}
/* Tabellenrahmen auf der fertigen Webseite */
.prose table {
    border: 1px solid #777;
    border-collapse: collapse;
}

.prose table th,
.prose table td {
    border: 1px solid #777;
    padding: 10px;
    box-sizing: border-box;
    /* QuadCMS: Erfolgsmeldung mittig anzeigen */
#qc-toast {
    position: fixed !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;

    background: #173d2b;
    color: #ffffff;
    border: 1px solid #4ebd80;
    border-radius: 12px;
    padding: 20px 28px;

    box-shadow: 0 12px 45px #0009;
    font-size: 16px;
    font-weight: 600;
    text-align: center;

    max-width: 90vw;
    pointer-events: none;
}
}
/* QuadCMS Erfolgsmeldung */
#qc-toast {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;

    z-index: 99999 !important;
    background: #173d2b !important;
    color: #ffffff !important;
    padding: 20px 28px !important;
    border: 1px solid #4ebd80 !important;
    border-radius: 12px !important;
    box-shadow: 0 12px 45px #0009 !important;

    text-align: center !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    max-width: 90vw;
    pointer-events: none;
}