@charset "utf-8";

@font-face {
    font-family: 'Core Slab';
    src: url('CoreSlabM65Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Core Slab';
    src: url('CoreSlabM65Bold-Italic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* Reset & Basis */
body {
    font-family: 'Core Slab', Arial, sans-serif;
    background-color: #f4f6f8;
    margin: 0;
    padding: 0;
}

/* Banner oben */
.top-banner {
    width: 100%;
    height: 217px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-logo {
    height: 156px;
    width: auto;
    display: block;
}

/* Container */
.container {
    width: 550px;
    max-width: calc(100% - 40px);
    margin: 100px auto;
    padding: 35px 40px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
}

/* Überschrift */
h2 {
    font-family: 'Core Slab', Arial, sans-serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.5px;
    margin-bottom: 25px;
    color: rgb(215, 34, 66);
}

/* Formularbereich mittig halten */
#trackingForm {
    width: 560px;
    max-width: 100%;
    margin: 0 auto;
}

/* Input */
input[type="text"] {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
    border-color: #0072c6;
    box-shadow: 0 0 0 3px rgba(0,114,198,0.15);
    outline: none;
}

/* Button */
button {
    margin-top: 15px;
    padding: 12px;
    width: 100%;
    background-color: #0072c6;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

button:hover {
    background-color: #005fa3;
}

/* Ergebnisbereich */
#result {
    margin-top: 50px;
    text-align: left;
}

/* Bereichsüberschriften mit Linien */
.result-section-title {
    font-family: 'Core Slab', Arial, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #222;
    margin: 0 0 22px 0;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 15px;
}

/* Linien links & rechts */
.result-section-title::before,
.result-section-title::after {
    content: "";
    flex: 1;
    height: 2px;
    background: #000;
    opacity: 0.15;
}

.history-title {
    margin-top: 50px;
}

/* Statusblock */
.status-block,
.history-entry {
    text-align: left;
}

/* Kompakter Zeilenabstand innerhalb eines Blocks */
.status-block p,
.history-entry p {
    margin: 0 0 6px 0;
    line-height: 1.25;
    font-size: 16px;
    color: #222;
}

.status-block p:last-child,
.history-entry p:last-child {
    margin-bottom: 0;
}

/* Abstand zwischen den einzelnen History-Blöcken */
.history-entry {
    margin-top: 28px;
}

.history-entry:first-of-type {
    margin-top: 0;
}

/* Labels */
.result-label {
    font-weight: 700;
    display: inline-block;
    min-width: 140px;
}

/* Links */
#result a {
    color: #0072c6;
    text-decoration: none;
}

#result a:hover {
    text-decoration: underline;
}

/* Meldungen */
.result-message {
    text-align: left;
    margin: 0;
    font-size: 16px;
    color: #222;
}

/* Responsive */
@media (max-width: 768px) {
    .top-banner {
        height: 160px;
    }

    .banner-logo {
        height: 110px;
    }

    .container {
        width: auto;
        margin: 40px 20px;
        padding: 25px 20px;
    }

    #trackingForm {
        width: 100%;
    }

    #result {
        margin-top: 40px;
    }

    .history-title {
        margin-top: 40px;
    }

    .result-label {
        min-width: 120px;
    }
}