/* =============================================================================
   INDEX.CSS – Mühlentor Bernau
   Styles ausschließlich für index.html: Einleitung, Geschichte, Timeline,
   Kontaktformular, Bildviewer-Modal und seitenspezifische Breakpoints.
   Ladereihenfolge: nach site.css.
   ============================================================================= */


/* ── Einleitungs-Abschnitt ────────────────────────────────────────────────── */

.section-intro {
    padding: 6rem 0 4.5rem;
}

.section-intro h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111;
}

.section-intro h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.125rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7a7a7a;
    margin-bottom: 2.5rem;
}

.section-intro p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #2b2b2b;
    max-width: 760px;
    margin: 0 auto 2.5rem auto;
}

/* Info-Box (Kurzinfos) */
.info-box {
    max-width: 760px;
    margin: 2rem auto 0;
    background: #fafafa;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.info-table {
    margin: 0;
}

.info-table th,
.info-table td {
    border: none !important;
    padding: .5rem .75rem;
    font-family: 'Montserrat', sans-serif;
}

.info-table th {
    width: 42%;
    text-transform: uppercase;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .05em;
    color: #555;
}

.info-table td {
    font-size: .98rem;
    color: #222;
}


/* ── Geschichte-Abschnitt ─────────────────────────────────────────────────── */

.section-geschichte {
    position: relative;
    padding: 8rem 0 9rem;
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 60%);
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, .06);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.section-geschichte::before,
.section-geschichte::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 2px;
    background: rgba(0, 0, 0, .08);
    border-radius: 2px;
}

.section-geschichte::before {
    top: 24px;
}

.section-geschichte::after {
    bottom: 24px;
}

.section-geschichte p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #2b2b2b;
    max-width: 760px;
    margin: 0 auto 2.75rem;
}


/* ── Story-Bilder (Geschichte-Abschnitt) ──────────────────────────────────── */

.story-image {
    position: relative;
    max-width: 980px;
    margin: 3.5rem auto;
    cursor: zoom-in;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
    transform: translateY(36px);
    opacity: 0;
    transition: transform .9s ease, opacity .9s ease;
}

.story-image.in-view img {
    transform: none;
    opacity: 1;
}

/* (entfernt) gesonderte Notiz-Stile – Text normal integriert */

@media (min-width: 992px) {
    .story-image.left {
        transform: translateX(-6%);
    }

    .story-image.right {
        transform: translateX(6%);
    }
}


/* ── Timeline-Abschnitt ───────────────────────────────────────────────────── */

.section-timeline {
    position: relative;
    padding: 8rem 0;
    background: #fff;
}

.timeline-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.tl-eyebrow {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #7a7a7a;
    text-align: center;
    margin: 0 0 1rem;
}

.tl-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1.15;
    text-align: center;
    color: #111;
    margin: 0 0 3rem;
}

.tl-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3.5rem;
}

.timeline {
    position: relative;
    margin: 2rem auto 0;
    padding-left: 28px;
}

.timeline:before {
    content: "";
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, .08);
}

.tl-item {
    position: relative;
    margin: 0 0 2.6rem 0;
    padding-left: 56px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}

.tl-item.in-view {
    opacity: 1;
    transform: none;
}

.tl-dot {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #111;
    box-shadow: 0 0 0 6px rgba(0, 0, 0, .06);
}

.tl-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: .9rem;
    color: #111;
    margin-bottom: .35rem;
}

.tl-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: #fafafa;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 14px;
    padding: 14px 16px;
}

.tl-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
    cursor: zoom-in;
}

.tl-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tl-content {
    font-family: 'Montserrat', sans-serif;
    color: #2b2b2b;
}

.tl-content h4 {
    margin: 0 0 .25rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: #111;
}

.tl-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}


/* ── Kontaktformular ──────────────────────────────────────────────────────── */

#kontakt .form-control {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .12);
    padding: .8rem 1rem;
    font-family: 'Montserrat', sans-serif;
}

#kontakt label {
    font-weight: 700;
}

#kontakt .btn-primary {
    background: #000;
    border-color: #000;
    padding: .8rem 1.5rem;
    font-weight: 600;
}

#kontakt .btn-primary:hover {
    background: #333;
    border-color: #333;
}

#kontakt .form-check-input {
    position: static !important;
    opacity: 1 !important;
    margin-right: .5rem;
}

#kontakt .form-check-sign {
    display: none !important;
}

#kontakt .consent-wrap {
    margin: 10px 0 22px;
}

#kontakt .consent-label {
    display: flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
}

#kontakt #consent {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #111;
    appearance: auto !important;
    opacity: 1 !important;
    position: static !important;
}


/* ── Scroll-Reveal-Animation ──────────────────────────────────────────────── */

.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s cubic-bezier(.23, 1, .32, 1);
}

.reveal-item.in-view {
    opacity: 1;
    transform: none;
}


/* ── Bildviewer-Modal ─────────────────────────────────────────────────────── */

.modal-image .modal-dialog {
    max-width: 960px;
    margin: 2.5rem auto;
}

.modal-image .modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: none;
    background: #111;
}

.modal-image .modal-body {
    padding: 0;
    background: #000;
}

.modal-image img {
    display: block;
    width: 100%;
    height: auto;
}

.modal-image .modal-footer {
    border-top: none;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#imageModalCaption {
    font-size: .95rem;
    color: #555;
}

.modal-backdrop.show {
    opacity: .85;
}


/* ── Responsive – index-spezifisch ───────────────────────────────────────── */

@media (max-width: 991.98px) {
    .section-intro {
        padding: 4rem 0 3rem !important;
    }

    .section-geschichte {
        padding: 4rem 0 !important;
    }

    .section-timeline {
        padding: 4rem 0;
    }

    .sg-sub,
    .tl-sub {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .story-image {
        margin: 2.5rem auto;
    }

    .story-image.left,
    .story-image.right {
        transform: none !important;
    }
}

@media (max-width: 767.98px) {
    .section-intro {
        padding: 3rem 0 2.5rem !important;
    }

    .section-intro h1 {
        font-size: 1.6rem !important;
    }

    .section-intro h2 {
        font-size: .95rem;
        margin-bottom: 1.8rem;
    }

    .section-intro p {
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 1.8rem;
    }

    .section-geschichte {
        padding: 3rem 0 !important;
    }

    .section-geschichte p {
        font-size: 1.05rem;
        line-height: 1.75;
        margin-bottom: 2rem;
    }

    .sg-title,
    .tl-title {
        font-size: 1.6rem !important;
        margin-bottom: 1.5rem;
    }

    .sg-sub,
    .tl-sub {
        font-size: .95rem;
        margin-bottom: 2rem;
    }

    .sg-eyebrow,
    .tl-eyebrow {
        font-size: .72rem;
    }

    .story-image {
        margin: 2rem auto;
    }

    .story-image img {
        border-radius: 14px;
    }

    .section-timeline {
        padding: 3rem 0;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline:before {
        left: 14px;
    }

    .tl-item {
        padding-left: 42px;
    }

    .tl-dot {
        left: 7px;
        width: 14px;
        height: 14px;
    }

    #kontakt .form-row {
        margin-left: 0;
        margin-right: 0;
    }

    #kontakt .form-row > .form-group {
        padding-left: 0;
        padding-right: 0;
    }

    #unterstuetzung .card-body {
        padding: .8rem 0;
    }

    #unterstuetzung .card-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .tl-card {
        padding: 12px 14px;
    }

    .tl-thumb {
        flex: 0 0 80px;
        width: 80px;
        height: 80px;
    }

    .modal-image .modal-dialog {
        margin: 1.5rem;
    }
}

@media (max-width: 480px) {
    .section-intro h1 {
        font-size: 1.35rem !important;
        line-height: 1.3;
    }

    .section-intro h2 {
        font-size: .85rem;
        letter-spacing: .08em;
    }

    .section-intro p,
    .section-geschichte p {
        font-size: 1rem;
    }

    .sg-title,
    .tl-title {
        font-size: 1.35rem !important;
    }

    .tl-card {
        flex-direction: column;
    }

    .tl-thumb {
        flex: 0 0 auto;
        width: 100%;
        height: 180px;
        border-radius: 12px;
    }

    .tl-content h4 {
        font-size: .95rem;
        margin-top: .3rem;
    }

    .tl-content p {
        font-size: .92rem;
    }

    .page-header .motto h1 {
        font-size: 2.4em;
    }

    .page-header .motto h3 {
        font-size: 1.1em;
    }
}


/* ── Barrierefreiheit: Bewegungen reduzieren ─────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .reveal-item,
    .story-image img,
    .tl-item {
        transition: none !important;
        transform: none !important;
    }
}
