/* Gestaltung der Flohmarktscheune-Landingpage. */

/* Reset, html, body, background-container */


/* Moderne CSS-Reset für konsistente Darstellung */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Basis-Styling für das Dokument */
html {
    --navigation-height: 60px;
    font-size: 16px;            /* Basis für rem-Werte */
    scroll-behavior: smooth;    /* Sanftes Scrollen zu Ankern */
    background-color: #2a2a2a;  /* Dunkler Fallback – verhindert weißen Streifen beim Overscroll auf Mobile */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: darkslategray;
    background-color: transparent;  /* Wichtig, damit der Container dahinter sichtbar ist */
    
    /* Platz für den fixierten Header */
    padding-top: var(--navigation-height);
    
    /* Verhindert horizontales Scrollen auf Smartphones */
    overflow-x: hidden;
    max-width: 100vw;
}


/* Workaround für mobiles Hintergrundbild – gemeinsamer Hintergrundcontainer */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;                  /* Nutzt die Höhe des Viewports */
    z-index: -1;                     /* Hinter allen anderen Inhalten */
    background-image: url('images/hintergrund.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* HEADER & NAVIGATION */


/* Fixierter schwarzer Header mit zentrierter Navigation */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;

    background-color: #000;
    color: #fff;

    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

    height: var(--navigation-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}


/* Desktop-Navigation */
.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}


/* Mobile-Navigation standardmäßig ausblenden */
.mobile-nav {
    display: none;
}


/* Gemeinsame Linkgestaltung */
.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;

    /* Touch-freundliche Mindestgröße */
    min-height: 44px;
    display: flex;
    align-items: center;
}


/* Hover- und Fokuszustände */
.nav-link:hover,
.nav-link:focus {
    background-color: rgba(255,255,255,0.1);
    outline: none;
}


/* Aktiver Navigationspunkt (wird bei Bedarf per JS/HTML gesetzt) */
.nav-link.active {
    background-color: rgba(255,255,255,0.2);
}


/* Pfeilbuttons (für mobile Seiten-Navigation) */
.nav-arrow {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 60%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
    transition: background-color 0.3s ease;

    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent; /* Entfernt das bunte Highlight auf Mobile */
}

.nav-arrow:hover {
    background: rgba(255,255,255,0.3);
}


/* Zustand, wenn ein Pfeil nicht gebraucht wird (z.B. erste/letzte Seite) */
.nav-arrow.hidden {
    visibility: hidden;
}


/* Fokus- und Aktivzustände der Pfeile */
.nav-arrow:focus,
.nav-arrow:active,
.nav-arrow:focus-visible {
    box-shadow: none !important;
    background: rgba(255,255,255,0.2);
}

.header-nav :focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}


/* RESPONSIVE NAVIGATION */


@media (max-width: 767px) {
    /* Bei ausgeschaltetem JavaScript bleiben alle Links auf zwei Zeilen erreichbar. */
    html:not(.nav-pager-ready) {
        --navigation-height: 96px;
    }

    .desktop-nav {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0 0.15rem;
    }

    .desktop-nav .nav-link {
        justify-content: center;
        padding: 0.25rem;
        font-size: 0.85rem;
        text-align: center;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    .nav-pager-ready .desktop-nav {
        display: none;
    }

    .nav-pager-ready .mobile-nav {
        display: block;
        width: 100%;
    }

    .fixed-header {
        padding: 0 0.5rem;
        width: 100%;        /* Explizit auf Viewport begrenzen */
        overflow: hidden;   /* Überlauf innerhalb des Headers verhindern */
    }

    .header-nav {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .nav-container {
        display: flex;
        align-items: center;
        width: 100%;
        justify-content: space-between;
    }

    .nav-links-container {
        display: flex;
        flex: 1;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        padding: 0 0.5rem;
    }

    /* Eine „Seite“ mit bis zu 3 Links */
    .nav-page {
        display: none;
        gap: 0.5rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .nav-page.active {
        display: flex;
    }

    /* Mobile-Links etwas kompakter */
    .nav-page .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        text-align: center;
        min-width: 0;
    }

    /* Linker Button spiegelt das ➩ nach links */
    .nav-arrow-left {
        transform: scaleX(-1);
    }
}

/* Schmale Desktop-/Tablet-Breite: fünf Menüpunkte bleiben einzeilig nebeneinander */
@media (min-width: 768px) and (max-width: 1023px) {
    .header-nav,
    .desktop-nav {
        gap: 0.25rem;
    }

    .desktop-nav .nav-link {
        padding-inline: 0.6rem;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .nav-links-container {
        padding-inline: 0.125rem;
    }

    .nav-page {
        gap: 0.125rem;
    }

    .nav-page .nav-link {
        padding-inline: 0.3rem;
        font-size: 0.8375rem;
    }
}


/* HERO-BEREICH (Startseite & Unterseiten) */


.hero-section {
    position: relative;              /* Für Glanz-Effekt & evtl. Logos */
    overflow: hidden;                /* Verhindert, dass der Glanz übersteht */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    min-height: 60vh;
    padding: 2rem 2rem 100px 2rem;   /* Unten Platz – auf der Index-Seite für Logos genutzt */
    margin-bottom: 2rem;

    /* "Glas"-Effekt */
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


/* Comic-Glanz-Effekt über den gesamten Hero-Bereich */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -85%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    z-index: 1;
}


/* Haupttitel der Seite */
.site-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;

    /* Mehrschichtiger Schatten: blaue Unterlegung + Tiefenschatten */
    text-shadow:
        4px 4px 0px #4682B4,
        6px 6px 10px rgba(0,0,0,0.9);

    margin-bottom: 1rem;
    z-index: 2;
}


/* dünne Trennlinie für optische Hierarchie */
.hero-divider {
    width: 80px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    margin-bottom: 1rem;
    z-index: 2;
}


/* Untertitel direkt unter dem Haupttitel */
.site-subtitle {
    font-size: 1.3rem;
    color: #fff;
    text-shadow:
        2px 2px 0px #4682B4,
        4px 4px 8px rgba(0,0,0,0.9);
    font-weight: 400;
    z-index: 2;
}


/* Zeilenumbruch nur auf Mobile sichtbar */
.mobile-break {
    display: none;
}


/* Größere Bildschirme – Hero wirkt etwas kompakter und typografisch größer */
@media (min-width: 768px) {
    .site-title {
        font-size: 4rem;
    }

    .site-subtitle {
        font-size: 1.5rem;
    }

    .hero-section {
        min-height: 55vh;
    }
}


/* Smartphones – kompakter, aber gut lesbar */
@media (max-width: 767px) {
    .site-title {
        font-size: 2.6rem;
        line-height: 1.2;
    }

    .mobile-break {
        display: block;
    }
}


/* CONTENT-GRUNDSTRUKTUR */


/* Haupt-Container für den Seiteninhalt */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;

    /* Hintergrund durchsichtig, damit der Body-/Hintergrund sichtbar bleibt */
    background-color: transparent;
    border-radius: 8px;
    margin-top: 1rem;
    margin-bottom: 2rem;

    /* Verhindert horizontales Überlaufen */
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;   /* Verhindert, dass Kinder den Viewport aufblähen (Filmkarten-Grid auf Mobile) */
}


/* Allgemeine Inhaltssektionen (weiße Karten) */
.content-section {
    margin-bottom: 4rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


/* Innenbereich einer Sektion – begrenzt die Textbreite */
.section-content {
    max-width: 800px;
    margin: 0 auto;
}


/* Überschriften von Inhaltssektionen */
.section-title {
    font-size: 2rem;
    color: darkslategray;
    margin-bottom: 1.5rem;
    text-align: center;
}


/* Zeilenumbruch innerhalb von Section-Titeln nur auf Mobile sichtbar */
.section-title .mobile-break {
    display: none;
}


/* Grund-Textgestaltung in Sektionen */
.section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: darkslategray;
}

.section-text h3 {
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    color: darkslategray;
}

.section-text p {
    margin-bottom: 1rem;
}

.section-text ul,
.section-text ol {
    margin: 1rem 0 1rem 2rem;
}

.section-text li {
    margin-bottom: 0.5rem;
}



/* Shop/Sortiment-ähnliche Sektionen (grünlicher Rahmen) – für die Rubriken der Startseite */
.shop-section {
    background-color: rgba(240, 255, 240, 0.90);
    padding: 2rem;
    border-radius: 12px;
    border: 4px solid lightgreen;
}


/* Responsive-Anpassungen für Inhalte */
@media (max-width: 767px) {
    .section-title .mobile-break {
        display: block;
    }
}

@media (min-width: 1024px) {
    /* Auf großen Bildschirmen etwas mehr Luft im Haupt-Container */
    .main-content {
        padding: 2rem;
    }

    /* Sektionen wirken höherwertig mit größerem vertikalem Abstand */
    .content-section {
        padding: 3rem 0;
    }
}

@media (min-width: 1440px) {
    /* Für übergroße Bildschirme */
    .main-content {
        max-width: 1400px;
    }
}

/* FOOTER */


/* Fußbereich der Seite – gemeinsame Gestaltung für alle Seiten */
.site-footer {
    background-color: darkslategray;
    color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-content h2 {
    margin-bottom: 1.5rem;
}


/* Impressums-/Rechtsblock im Footer */
.legal-info {
    font-style: normal;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.site-footer a {
    color: inherit;
}


/* Links im Impressum, die das Rechtstexte-Fenster öffnen */
.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.legal-links a {
    padding: 0.45rem 0.9rem;
    border: 2px solid #fff;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none;
}

.legal-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}


/* RECHTSTEXTE-FENSTER */

/* Solange das Fenster offen ist, scrollt die Seite dahinter nicht mit. */
html.legal-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

/* Fenster über der Seite: an den Rändern bleibt die abgedunkelte Seite sichtbar. */
.legal-dialog {
    width: min(860px, calc(100vw - 2rem));
    max-width: none;
    height: calc(100vh - 3rem);
    height: calc(100dvh - 3rem);
    max-height: none;
    margin: auto;
    padding: 0;
    border: 4px solid darkslategray;
    border-radius: 12px;
    background-color: #fff;
    color: darkslategray;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.legal-dialog[open] {
    display: flex;
    flex-direction: column;
}

.legal-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.55);
}

/* Kopfzeile bleibt stehen: Titel, Sprungmarken und oben rechts der Schließen-Knopf */
.legal-dialog-head {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.6rem 1rem;
    padding: 0.75rem 1rem;
    background-color: darkslategray;
    color: #fff;
    flex-shrink: 0;
}

.legal-dialog-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.legal-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: #fff;
    color: darkslategray;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.legal-close:hover {
    background-color: rgb(255, 224, 120);
}

.legal-dialog .legal-close:focus,
.legal-dialog .legal-jump a:focus {
    outline-color: rgb(255, 224, 120);
}

.legal-jump {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.legal-jump a {
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.legal-jump a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Nur dieser Bereich scrollt. */
.legal-dialog-body {
    position: relative;
    flex: 1;
    min-height: 0;
    padding: 0 1.5rem 1.5rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    font-size: 0.95rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.legal-dialog-body:focus {
    outline: none;
}

.legal-dialog [id] {
    scroll-margin-top: 0;
}

.legal-text {
    padding-top: 1.5rem;
}

.legal-text h3 {
    margin-bottom: 1rem;
    padding: 0.5rem 0.9rem;
    border-left: 6px solid darkslategray;
    border-radius: 4px;
    background-color: aliceblue;
    font-size: 1.35rem;
    line-height: 1.3;
}

.legal-text h4 {
    margin: 1.4rem 0 0.4rem 0;
    font-size: 1.1rem;
}

.legal-text h5 {
    margin: 1.1rem 0 0.4rem 0;
    font-size: 1rem;
}

.legal-text p {
    margin-bottom: 0.8rem;
}

.legal-text ul {
    margin: 0 0 0.8rem 1.25rem;
}

.legal-text li {
    margin-bottom: 0.3rem;
}

/* Leerzeile zum Ausfüllen im Muster-Widerrufsformular */
.legal-text .legal-line {
    height: 1.6rem;
    border-bottom: 1px solid darkslategray;
}

.legal-text .legal-stand {
    margin-top: 1.5rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .legal-dialog {
        width: calc(100vw - 1.5rem);
        height: calc(100vh - 2rem);
        height: calc(100dvh - 2rem);
    }

    .legal-dialog-body {
        padding: 0 1rem 1rem 1rem;
    }

    .legal-jump a {
        padding-inline: 0.5rem;
        font-size: 0.85rem;
    }
}


/* Copyright-Zeile unten */
.copyright {
    font-size: 0.9rem;
    color: lightgray;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1.5rem;
}


/* SCROLL-OFFSETS */


/* Abstand nach oben für Ankerziele unter dem fixierten Header. */
:root {
    --header-offset: calc(var(--navigation-height) + 10px);
}

/* Gilt für alle Elemente mit id – etwa #oeffnungszeiten und #paketshop. */
[id] {
    scroll-margin-top: calc(var(--header-offset) + 8px);
}


/* ACCESSIBILITY & PRINT */


/* Deutliche Fokus-Indikatoren für Tastaturnutzer */
a:focus,
button:focus {
    outline: 3px solid mediumblue;
    outline-offset: 2px;
}


/* Weniger Bewegung für Nutzer mit Bewegungsempfindlichkeit */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}


/* Hoher Kontrast – z.B. für Screen-Reader-/Kontrastmodus */
@media (prefers-contrast: high) {
    .nav-link {
        border: 1px solid #fff;
    }
}


/* Print-Styles für Ausdrucke */
@media print {
    .fixed-header {
        position: static;
        background: #fff;
        color: #000;
        box-shadow: none;
        border-bottom: 2px solid #000;
    }

    body {
        background: #fff;
        padding-top: 0;
    }

    /* Hintergrundgrafik im Druck ausblenden */
    .background-container {
        display: none;
    }
}


/* INDEX-SPEZIFISCHE STYLES (index.html) */
/* Kontaktkarte (.contact-info, .profile-picture, .contact-text) */
/* Öffnungszeiten (.hours-table, .vacation-info) */
/* Service-Boxen (.service-box, h4) */
/* Sortiment-Kacheln (.shop-category, .shop-textbox, .shop-text, .shop-separator, .separator-metal) */
/* Media Queries nur für diese Klassen */
/* Paketdienst-Logos im Hero (.parcel-logos, .parcel-logo) */


/* Farbig hervorgehobene Inhaltssektionen der Startseite */


/* Öffnungszeiten – priorisiert (gelb/gold) */
.priority-section {
    background-color: rgba(255, 255, 224, 0.90);
    padding: 2rem;
    border-radius: 12px;
    border: 4px solid gold;
}



/* Auf einen Blick – flieder: vier gleichartige Karten Was / Wann / Wie / Wo */
.overview-section {
    background-color: rgba(248, 240, 255, 0.90);
    padding: 2rem;
    border-radius: 12px;
    border: 4px solid mediumpurple;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.overview-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
    line-height: 1.55;
}

.section-text .overview-card h3 {
    margin: 0;
    padding: 0.6rem 1.25rem;
    background-color: darkslategray;
    color: #fff;
    font-size: 1.2rem;
}

.section-text .overview-card ul {
    list-style: none;
    margin: 0;
    padding: 0.5rem 1.25rem;
}

.section-text .overview-card li {
    margin: 0;
    padding: 0.55rem 0;
}

.section-text .overview-card li + li {
    border-top: 1px solid lightgray;
}

.section-text .overview-card p {
    margin: 0;
    padding: 0.75rem 1.25rem 0 1.25rem;
}

.section-text .overview-card p:last-child {
    padding-bottom: 1rem;
}

/* Gruppenzeile in „Was?“: trennt Paketshop (Blau der Paketdienste) und Secondhand-Laden (Grün des Sortiments) */
.section-text .overview-card .overview-group {
    padding: 0.3rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.section-text .overview-card .overview-group-paket {
    background-color: rgb(180, 220, 255);
}

.section-text .overview-card .overview-group-laden {
    background-color: lightgreen;
}

/* Sprunglink einer Überblickskarte zur ausführlichen Stelle weiter unten */
.overview-link {
    font-weight: 700;
}

.overview-link::after {
    content: " ↓";
}

@media (max-width: 767px) {
    .overview-section {
        padding-inline: clamp(.5rem, 3vw, 2rem);
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}


/* Über mich & Kontakt – aquamarin */
.ueber-mich-kontakt-section {
    background-color: rgba(186, 255, 249, 0.90);
    padding: 2rem;
    border-radius: 12px;
    border: 4px solid rgb(80, 229, 234);
}



/* Kontaktkarte im Über-mich/Kontakt-Bereich */
.contact-info {
    background-color: rgba(240, 248, 255, 1);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.contact-text {
    flex-grow: 1;
    min-width: 0;
    max-width: 100%;
    font-style: normal;
}

.contact-email {
    white-space: nowrap;
}



/* Öffnungszeiten-Tabelle */
.hours-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
}

.hours-table th,
.hours-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid lightgray;
}

.hours-table th {
    background-color: darkslategray;
    color: #fff;
    font-weight: 600;
}

.hours-table tbody th {
    background-color: aliceblue;
    color: darkslategray;
}

.hours-day {
    display: grid;
    grid-template-columns: minmax(0, 6em) max-content;
    column-gap: 0.5em;
    align-items: baseline;
}

.hours-day > span {
    overflow-wrap: anywhere;
}

.hours-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

@media (max-width: 480px) {
    .hours-table th,
    .hours-table td {
        padding: 0.65rem 0.5rem;
        font-size: 0.95rem;
    }
}

.hours-table tr:last-child th,
.hours-table tr:last-child td {
    border-bottom: none;
}


/* Urlaubs-Informationen */
.vacation-info,
.search-request-info {
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
}

.vacation-info {
    background-color: rgb(255, 202, 210);
}

.search-request-info {
    background-color: rgb(225, 221, 252);
}

/* Ein Urlaubszeitraum: helles Feld mit dem Hinweis des Inhabers (fett) und dahinter dem Zeitraum */
.vacation-info .vacation-note {
    margin-top: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.vacation-info p,
.search-request-info p,
.service-box p {
    margin: 0;
}

.vacation-info p + p,
.search-request-info p + p,
.service-box p + p {
    margin-top: 0.6em;
}

/* Listen in den Hinweis- und Service-Kästen: kompakt, ohne den großen Einzug der Fließtextlisten */
.search-request-info ul,
.search-request-info ol,
.service-box ul,
.service-box ol {
    margin: 0.6em 0 0 1.25rem;
}

.search-request-info li,
.service-box li {
    margin-bottom: 0.3em;
}

.search-request-info li:last-child,
.service-box li:last-child {
    margin-bottom: 0;
}

/* Hervorgehobener Satz direkt unter der Öffnungszeiten-Tabelle */
.section-text .hours-highlight {
    margin: -0.5rem 0 1.5rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: darkslategray;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
}

/* Warnhinweis unter den Öffnungszeiten: gleiche Form wie „Durchgehend geöffnet“, aber in Signalrot */
.section-text .payment-note {
    margin: -0.75rem 0 1.5rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: firebrick;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
}

/* Rote Hinweismarke für wichtige Informationen im Fließtext. */
.alert-tag {
    display: inline-block;
    margin: 0.15rem 0;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    background-color: firebrick;
    color: #fff;
    font-weight: 700;
    line-height: 1.4;
}

.section-text a.alert-tag {
    color: #fff;
    text-decoration: none;
}

/* „Geschlossen“ in der Öffnungszeiten-Tabelle */
.hours-table td.closed {
    color: firebrick;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Wichtiger Einzelsatz über den Sortimentkacheln: dunkler Balken wie „Durchgehend geöffnet“ */
.section-text .key-note {
    margin: 0 0 1.5rem 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background-color: darkslategray;
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
}

/* Bestellwege im Suchanfragen-Kasten: zwei weiße Felder nebeneinander */
.contact-ways {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 0.9rem;
}

.contact-way {
    padding: 0.75rem 1rem;
    background-color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
}

.search-request-info .contact-way p + p {
    margin-top: 0.15em;
}

.contact-way .way-title {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .contact-ways {
        grid-template-columns: 1fr;
    }

    .contact-way {
        padding: 0.6rem 0.6rem;
    }
}


/* Service-Boxen für den Paketshop – alle drei Dienste im selben Blau */
.service-box {
    background-color: rgb(180, 220, 255);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
}

/* Einzige farblich abgesetzte Karte: Lieferung an die Flohmarktscheune */
.delivery-box {
    background-color: rgb(255, 224, 120);
}

.service-box h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: darkslategray;
    margin-bottom: 0.5rem;
}

/* Paketshop-Block: eine blaue Fläche mit großer Überschrift, darin die vier Paketdienste als weiße Kacheln */
.carrier-panel {
    margin: 1rem 0;
    padding: 1.5rem;
    background-color: rgb(180, 220, 255);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
}

.carrier-panel h4 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.25;
    color: darkslategray;
    text-align: center;
}

.section-text .carrier-subline {
    margin: 0.4rem 0 0 0;
    text-align: center;
}

.section-text .carrier-grid {
    list-style: none;
    margin: 1.25rem 0 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.section-text .carrier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0.9rem 0.6rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.30);
    text-align: center;
}

.carrier-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid rgb(180, 220, 255);
    color: #2b3543;
    line-height: 1.15;
}

.carrier-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.carrier-role {
    font-size: 0.72rem;
    font-weight: 500;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.section-text .carrier-services {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.45;
}

.section-text .carrier-services li {
    margin: 0;
}

.section-text .carrier-services li + li {
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 1px solid rgba(47, 79, 79, 0.25);
}

/* „Seit …“-Zeile einer Paketdienst-Kachel: ruhiger als die Leistungen */
.section-text .carrier-services .carrier-since {
    font-weight: 400;
}

@media (max-width: 767px) {
    /* Mobil: eine Kachel pro Zeile, Schild links, Leistungen rechts */
    .section-text .carrier-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Wie in den anderen Abschnitten: am Handy weniger Seitenrand, damit Kacheln und Karten Platz haben */
    .priority-section {
        padding-inline: clamp(.5rem, 3vw, 2rem);
    }

    .carrier-panel {
        padding: 1.25rem 0.75rem;
    }

    .section-text .carrier-services {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .service-box .address-label {
        display: block;
        padding: 0.7rem 0.75rem;
        font-size: 0.95rem;
    }

    .carrier-panel h4 {
        font-size: 1.45rem;
    }

    .section-text .carrier-card {
        flex-direction: row;
        gap: 0.9rem;
        padding: 0.75rem;
        text-align: left;
    }

    .carrier-badge {
        width: 6.5rem;
        flex-shrink: 0;
        align-self: stretch;
        padding: 0 0.75rem 0 0;
        border-bottom: none;
        border-right: 3px solid rgb(180, 220, 255);
    }
}

/* Kleine Überzeile in der Lieferkarte */
.service-box .box-eyebrow {
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Lieferkarte: Schritte und Adress-Etiketten */
.delivery-box h4 {
    font-size: 1.25rem;
    line-height: 1.4;
}

.service-box .steps-title,
.search-request-info .steps-title {
    margin-top: 1.1em;
}

.service-box .delivery-steps {
    margin-top: 0.4em;
}

.service-box .address-label {
    display: inline-block;
    margin-top: 0.5em;
    padding: 0.85rem 1.25rem;
    background-color: #fff;
    border: 2px dashed darkslategray;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
}

.delivery-addresses {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0.75rem;
    margin: 0.5rem 0 0.75rem;
}

.delivery-addresses > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    grid-column: span 2;
}

.delivery-addresses > div:last-child {
    grid-column: 2 / span 2;
}

.delivery-addresses h5 {
    font-size: 1rem;
    text-align: center;
}

.delivery-box .delivery-addresses .address-label {
    display: block;
    flex: 1;
    margin-top: 0.25em;
    overflow-wrap: anywhere;
}

@media (max-width: 620px) {
    .delivery-addresses {
        grid-template-columns: minmax(0, 1fr);
    }

    .delivery-addresses > div,
    .delivery-addresses > div:last-child {
        grid-column: 1;
    }
}

/* Erste Zeile des Adress-Etiketts in der Kartenfarbe hervorheben. */
.address-label em {
    display: inline-block;
    padding: 0 0.4rem;
    margin-left: -0.4rem;
    border-radius: 3px;
    background-color: rgb(255, 224, 120);
    font-weight: 700;
}


/* Sortiment-Kacheln & Trennelement */
.shop-category {
    display: block;
    width: 100%;
    background-color: var(--cat-bg);
    border: 3px solid var(--cat-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: darkslategray;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
}

.shop-textbox {
    text-align: center;
    margin: 1rem 0;
    padding: clamp(.85rem, 3vw, 1.25rem);
    border-radius: 8px;
    background-color: var(--text-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.50);
    font-weight: 400;
}

.shop-textbox p {
    margin: 0;
}

.shop-textbox p + p {
    margin-top: .7rem;
}

/* Gegliederter Kachelinhalt: Einleitungssatz, fette Gruppenüberschrift, Stichworte mit Trennpunkt */
.shop-textbox .shop-group {
    margin: .9rem 0 .1rem 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: darkslategray;
}

.shop-textbox .shop-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.shop-textbox .shop-list li {
    display: inline-block;
    margin: 0;
}

.shop-textbox .shop-list li:not(:last-child)::after {
    content: "·";
    margin: 0 .45em;
    font-weight: 700;
}

@media (max-width: 767px) {
    .shop-textbox .shop-list li {
        display: block;
    }

    .shop-textbox .shop-list li:not(:last-child)::after {
        display: block;
        margin: 0;
        line-height: 1;
    }
}

.shop-textbox .shop-note {
    margin-top: .9rem;
}

/* Bestandszahlen einer Sortimentkachel: weiß abgesetzt, damit sie sofort auffallen */
.shop-textbox .shop-fact {
    display: inline-block;
    margin-top: .8rem;
    padding: .45rem .9rem;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    line-height: 1.6;
}

.shop-text {
    flex-grow: 1;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 700;
    color: darkslategray;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.25);
}

/* Container: zentriert das Silber-Karo */
.shop-separator {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 2rem 0;
}


/* Statisches 3D-Silber-Emblem */
.separator-metal {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    position: relative;
    display: inline-block;
    margin: 1.4rem 0;
    text-align: center;

    /* Grundfarbe: kühles Silber */
    color: #dfe3ea;

    /* Bevel / Emboss – Kanten oben hell, unten dunkel */
    text-shadow:
        0 -1px 1px rgba(255,255,255,0.9),
        -1px -1px 1px rgba(255,255,255,0.7),
        1px 1px 1px rgba(0,0,0,0.6),
        2px 2px 4px rgba(0,0,0,0.35);
}


/* Paketdienst-Logos im Hero der Startseite */
.parcel-logos {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;
    z-index: 2; /* über dem Glanz-Effekt */
}

.parcel-logo {
    height: 45px;
    max-width: 110px;
    object-fit: contain;
    background-color: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    border: 1px solid #ddd;
}

/* Designkonforme Text-Buttons in derselben Reihe (Alternative zu Logos).
   Optisch an .parcel-logo angelehnt: weiß, abgerundet, dezenter Schatten. */
.parcel-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-items: stretch;
    box-sizing: border-box;
    min-width: 136px;
    background-color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
    color: darkslategray;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    cursor: default;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Die Schilder springen zum Paketshop-Abschnitt. */
a.parcel-button { cursor: pointer; }
a.parcel-button:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(0,0,0,0.5); }
/* Oben der Name groß auf Weiß, unten ein Streifen im Blau des Paketshop-Abschnitts */
.parcel-button .parcel-button-label {
    padding: 0.5rem 1rem 0.4rem 1rem;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.2px;
}
.parcel-button .parcel-button-sub {
    padding: 0.3rem 1rem;
    background-color: rgb(180, 220, 255);
    font-weight: 700;
    font-size: 0.7rem;
    color: darkslategray;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}


/* Media Queries nur für Index-spezifische Elemente */
@media (max-width: 767px) {
    /* Kontaktkarte auf Mobile untereinander statt nebeneinander */
    .ueber-mich-kontakt-section {
        padding-inline: clamp(.5rem, 3vw, 2rem);
    }

    .contact-info {
        flex-direction: column;
        padding-inline: clamp(.375rem, 2vw, 1.5rem);
        text-align: center;
    }

    .contact-email {
        font-size: clamp(.8125rem, 3.75vw, 1rem);
    }

    /* Paketdienst-Schilder im Hero: am Handy zwei mal zwei, damit sie groß und gut antippbar bleiben */
    .hero-section {
        padding-bottom: 170px;
    }

    .parcel-logos {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
        bottom: 1rem;
        padding: 0 0.75rem;
    }

    .parcel-logo {
        height: 35px;
        min-width: 0;
    }

    .parcel-button {
        min-width: 0;
    }
    .parcel-button .parcel-button-label { padding: 0.45rem 0.4rem 0.35rem 0.4rem; font-size: 1.1rem; }
    .parcel-button .parcel-button-sub { padding: 0.25rem 0.4rem; font-size: 0.62rem; }
}


@media (max-width: 360px) {
    .ueber-mich-kontakt-section {
        margin-inline: -.5rem;
        padding-inline: .5rem;
    }

    .contact-info {
        padding-inline: .375rem;
    }
}

@media (max-width: 319px) {
    .contact-email {
        white-space: normal;
    }

    .contact-email a {
        overflow-wrap: anywhere;
    }
}

/* Größere Version der Kontaktkarte im Über-mich-Bereich auf großen Bildschirmen */
@media (min-width: 1024px) {
    .ueber-mich-kontakt-section .contact-info {
        align-items: center;
        padding: 4rem 3rem;
        gap: 2.25rem;
    }

    .ueber-mich-kontakt-section .profile-picture {
        width: 220px;
        height: 220px;
        margin-left: 0.35rem;
    }

    .ueber-mich-kontakt-section .contact-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}
