* { box-sizing: border-box; }

:root {
    --accent: #ad275d;
    --text: #333333;
    --muted: #777777;
    --light: #f7f3ec;
    --border: #dddddd;
    --dark: #333333;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.container {
    width: min(1200px, calc(100% - 60px));
    margin: 0 auto;
}

.narrow {
    max-width: 850px;
}

.center { text-align: center; }

.site-header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand img {
    display: block;
    height: 64px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.main-nav a {
    text-decoration: none;
    font-size: 15px;
}

.main-nav a:hover { color: var(--accent); }

.nav-login {
    border: 1px solid var(--accent);
    padding: 8px 16px;
    border-radius: 4px;
}

.main-nav a.active {
    color: var(--accent);
    font-weight: 600;
	border-width: 2px;
}

.hero {
    width: 100%;
    background: #eee;
}

.hero img {
    width: 100%;
    height: min(68vh, 720px);
    min-height: 420px;
    object-fit: cover;
}

.intro {
    text-align: center;
    padding: 72px 0 80px;
}

.eyebrow {
    color: #ad275d;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.1;
    font-weight: 400;
    margin: 0 0 18px;
	 color: var(--accent);
}

h2 {
    font-size: clamp(28px, 4vw, 30px);
    line-height: 1.2;
    font-weight: 400;
    margin: 0 0 22px;
}

	.program-date {
    color: var(--accent);
}

.lead {
    max-width: 760px;
    margin: 0 auto;
    font-size: 20px;
    color: var(--muted);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 42px 0;
}

.countdown > div {
    min-width: 105px;
}

.countdown strong {
    display: block;
    font-size: 42px;
    line-height: 1;
    color: var(--accent);
    font-weight: 400;
}

.countdown span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.button {
    display: inline-block;
    background: #ad275d;
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 4px;
    padding: 13px 26px;
    font: inherit;
    cursor: pointer;
}

.button:hover { opacity: .88; }

.button-dark {
    background: var(--dark);
}

.section {
    padding: 55px 0;
}

.section-light {
    background: var(--light);
}

.status-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 35px;
}

.status-item {
    border: 1px solid var(--border);
    padding: 18px 20px;
    border-radius: 5px;
}

.status-item span {
    margin-right: 10px;
    color: var(--muted);
}

.status-item.done span { color: var(--accent); }

.photo-section img {
    width: 100%;
    height: min(55vh, 600px);
    object-fit: cover;
}

.section-accent {
    background: var(--light);
}

.form-page {
    padding: 70px 0 100px;
}

.form-card {
    margin-top: 35px;
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

label {
    display: block;
    margin-bottom: 22px;
    font-weight: 600;
}

input, select, textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 12px 13px;
    border: 1px solid #bbb;
    border-radius: 4px;
    background: #fff;
    font: inherit;
}

textarea { resize: vertical; }

.checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
}

.checkbox input {
    width: auto;
    margin-top: 5px;
}

.message {
    margin: 25px 0;
    padding: 20px 22px;
    border-radius: 5px;
}

.message.error {
    background: #fff0f0;
    border: 1px solid #e2bcbc;
}

.message.success {
    background: #f1f7ef;
    border: 1px solid #c4d8bd;
}

.site-footer {
    background: #ad275d;
    color: #fff;
    padding: 28px 0;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-inner a {
    margin-left: 20px;
}
@media (max-width: 800px) {

    .container {
        width: min(100% - 36px, 850px);
    }

    .header-inner {
        padding: 15px 0;
        flex-direction: column;
    }

    .main-nav {
        justify-content: center;
        gap: 12px 18px;
    }

    .hero img {
        height: 48vh;
        min-height: 300px;
    }

    .intro {
        padding: 55px 0 65px;
    }

    .countdown {
        gap: 8px;
    }

    .countdown > div {
        min-width: 72px;
    }

    .countdown strong {
        font-size: 30px;
    }

    .status-list,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 22px;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-inner a {
        margin: 0 20px 0 0;
      }

    /* Formular-Korrekturen */

    .remarks-group {
        margin-top: 25px;
    }

    .remarks-group label {
        margin-bottom: 7px;
    }

    .checkbox {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin: 20px 0 0;
        font-weight: 400;
    }

    .checkbox input {
        display: block;
        width: auto;
        flex: 0 0 auto;
        margin: 4px 0 0;
        padding: 0;
    }
	

}

.registration-status {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #777;
}


/* ==========================================
   COBURG FOTOGALERIE
   ========================================== */

.coburg-gallery {
    margin-top: 40px;
}

.gallery-main {
    position: relative;
    width: 100%;
    background: #eee;
    overflow: hidden;
}

.gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: contain;
    margin: 0 auto;
    cursor: pointer;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    width: 46px;
    height: 60px;

    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: white;

    font-size: 30px;
    line-height: 60px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.gallery-prev {
    left: 0;
}

.gallery-next {
    right: 0;
}

.gallery-caption {
    padding: 10px 0 15px;
    text-align: center;
    font-size: 0.95rem;
}


/* Vorschaubilder */

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
}

.gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 3px solid transparent;
    background: none;
    cursor: pointer;
    overflow: hidden;
}

.gallery-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.gallery-thumb:hover {
    opacity: 0.8;
}

.gallery-thumb.active {
    border-color: var(--accent);
}


/* ==========================================
   LIGHTBOX
   ========================================== */

.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;

    background: rgba(0, 0, 0, 0.92);

    align-items: center;
    justify-content: center;
}

.gallery-lightbox.open {
    display: flex;
}

.gallery-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;

    border: none;
    background: none;
    color: white;

    font-size: 42px;
    line-height: 1;

    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 55px;
    height: 70px;

    border: none;
    background: rgba(255,255,255,0.15);
    color: white;

    font-size: 36px;

    cursor: pointer;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;

    text-align: center;
    color: white;

    font-size: 16px;
}


/* Während der Lightbox kein Scrollen */

body.lightbox-open {
    overflow: hidden;
}


/* ==========================================
   GALERIE – MOBILE
   ========================================== */

@media (max-width: 800px) {

    .gallery-thumbnails {
        grid-template-columns: repeat(5, 1fr);
    }

    .gallery-main img {
        max-height: 450px;
    }

    .gallery-arrow {
        width: 38px;
        height: 50px;
        line-height: 50px;
        font-size: 24px;
    }

    .lightbox-arrow {
        width: 42px;
        height: 55px;
        font-size: 28px;
    }
}


@media (max-width: 500px) {

    .gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .gallery-caption {
        font-size: 0.9rem;
    }
}


/* Text neben der Checkbox */

.checkbox span {
    display: block;
    line-height: 1.5;
}


.hotel-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
    padding: 25px 0;
    border-top: 1px solid var(--border);
}

.hotel-info h2 {
    font-size: 30px;
    margin: 0 0 10px;
}

.hotel-info p {
    margin: 0 0 8px;
}

.hotel-distances {
    display: flex;
    gap: 35px;
    margin: 12px 0;
    padding: 5px 0;
}

.hotel-distances div {
    display: flex;
    flex-direction: column;
}

.hotel-distances strong {
    font-size: 18px;
    font-weight: 500;
}

.hotel-distances span {
    color: var(--muted);
    font-size: 13px;
}

.hotel-description {
    margin-top: 12px;
    color: var(--text);
}

.parking-list {
    margin: 25px 0;
}

.parking-item {
    padding: 15px 0;
    border-top: 1px solid var(--border);
}

.parking-item:last-child {
    border-bottom: 1px solid var(--border);
}

.parking-item strong {
    display: block;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 4px;
}

.parking-item span {
    display: block;
    color: var(--muted);
    font-size: 14px;
}

.train-connections {
    margin: 25px 0 30px;
    border-top: 1px solid var(--border);
}

.train-connection {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 30px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.train-connection strong {
    font-size: 17px;
    font-weight: 500;
}

.train-connection span {
    color: var(--muted);
    white-space: nowrap;
}

/* Umgebung / Hotels auf kleinen Bildschirmen untereinander */
@media (max-width: 700px) {
    .hotel-card {
        display: block;
    }

    .hotel-image {
        width: 100%;
    }

    .hotel-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .hotel-info {
        width: 100%;
    }
}