/* ==========================================================
   de Likedeeler – Langeoog
   Version 2
   ========================================================== */

:root {
    --navy: #173852;
    --navy-dark: #0f2637;
    --gold: #f4d35e;
    --paper: #f7f7f7;
    --line: #dfe4e9;
    --text: #222;
    --muted: #5b6570;
}

/* Grundlayout */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Kopfbereich mit Banner */

.header {
    position: relative;
    text-align: center;
    color: white;
}

.header-banner {
    width: 100%;
    height: 260px;
    background-image: url("bilder/banner.jpg");
    background-size: cover;
    background-position: center;
}

.header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
}

.header-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.header-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.header-subtitle {
    margin-top: 0.4rem;
    font-size: 1rem;
}

/* Logo oben links im Banner */

.header-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 5;
}

.header-logo img {
    height: 70px;
    width: auto;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Navigation */

.navbar {
    background: var(--navy);
    color: white;
}

.nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.25rem 1rem 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    border-color: var(--gold);
}

/* Burger-Menü (mobil) */

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    color: white;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
}

/* Inhalt */

.main {
    max-width: 960px;
    margin: 1.5rem auto 2.5rem;
    padding: 0 1rem;
}

.card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card h1 {
    margin-top: 0;
    font-size: 1.6rem;
}

.card h2 {
    margin-top: 1.8rem;
    font-size: 1.2rem;
}

.card h2::after {
    content: "";
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.4rem;
    background: var(--gold);
    border-radius: 2px;
}

/* Aufklappbare Textbereiche */

.details {
    margin-top: 1rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    overflow: hidden;
}

.details summary {
    padding: 0.75rem 1rem;
    background: #f0f4f8;
    cursor: pointer;
    font-weight: 600;
}

.details summary::-webkit-details-marker {
    display: none;
}

.details summary::after {
    content: "▾";
    float: right;
    opacity: 0.7;
}

.details[open] summary::after {
    content: "▴";
}

.details-content {
    padding: 0.75rem 1rem 1rem;
    background: white;
}

/* ==========================================================
   Bilder-Slider
   ========================================================== */

.slider {
    position: relative;
    margin-top: 1.25rem;
    border-radius: 10px;
    overflow: hidden;
    background: #e8ecef;
    box-shadow: 0 4px 14px rgba(23, 56, 82, 0.12);
}

.slider-viewport {
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slider-slide {
    flex: 0 0 100%;
    min-width: 100%;
}

.slider-slide img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: contain;
    background: #0f2637;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(23, 56, 82, 0.7);
    color: white;
    border: none;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 2;
}

.slider-btn:hover {
    background: var(--navy);
}

.slider-btn:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.slider-prev {
    left: 0.75rem;
}

.slider-next {
    right: 0.75rem;
}

/* Verlauf unten, damit Punkte und Zähler immer lesbar bleiben */
.slider::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.45), rgba(0,0,0,0));
    pointer-events: none;
    z-index: 1;
}

.slider-dots {
    position: absolute;
    bottom: 0.85rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    z-index: 2;
}

.slider-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.85);
}

.slider-dot.active {
    background: var(--gold);
    transform: scale(1.25);
}

.slider-counter {
    position: absolute;
    bottom: 0.85rem;
    right: 1rem;
    color: white;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    z-index: 2;
}

/* ==========================================================
   Kontaktformular
   ========================================================== */

.contact-form {
    display: block;
    margin-top: 1.5rem;
    max-width: 560px;
}

.field {
    display: block;
    margin-bottom: 1.1rem;
}

.field > label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--navy);
}

.field input,
.field textarea {
    display: block;
    width: 100%;
    font: inherit;
    color: var(--text);
    padding: 0.7rem 0.85rem;
    background: #fbfcfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field textarea {
    resize: vertical;
    min-height: 9rem;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    background: white;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(244, 211, 94, 0.45);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9aa4ad;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    background: var(--navy);
    color: white;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.form-submit:hover {
    background: var(--navy-dark);
}

.form-submit:active {
    transform: translateY(1px);
}

.form-submit:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.form-note {
    margin-top: 0.9rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.form-note a {
    text-decoration: underline;
}

/* Spam-Schutz: bleibt für Menschen unsichtbar */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Rückmeldung nach dem Absenden */

.form-status {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
}

.form-status.success {
    background: #e9f5ec;
    color: #1e6b34;
    border: 1px solid #b6e3c3;
}

.form-status.error {
    background: #fdeceb;
    color: #9b2226;
    border: 1px solid #f3c2c0;
}

/* ==========================================================
   Footer
   ========================================================== */

.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 1rem 0.75rem;
    font-size: 0.85rem;
}

.footer a {
    border-bottom: 1px solid rgba(244, 211, 94, 0.5);
    padding-bottom: 1px;
}

.footer a:hover {
    border-bottom-color: var(--gold);
    color: white;
}

/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 700px) {
    .nav-links {
        position: absolute;
        inset-inline: 0;
        top: 100%;
        background: var(--navy);
        flex-direction: column;
        padding: 0.5rem 1rem 0.75rem;
        display: none;
        z-index: 10;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
    }

    .nav-inner {
        position: relative;
    }

    .slider-btn {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.95rem;
    }

    .header-logo img {
        height: 50px;
    }

    .form-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slider-track {
        transition: none;
    }
}
