/* ---------------------------------------------------------------------------
   ppwrapp - Design angelehnt an www.storch-ciret.com
   Primaerfarbe #0069B4, Grau #727777, Akzent #E3051B, Schrift Verdana/Arial
   --------------------------------------------------------------------------- */

:root {
    --sc-blue: #0069b4;
    --sc-blue-dark: #005694;
    --sc-red: #e3051b;
    --sc-grey: #727777;
    --sc-grey-dark: #4c4c4c;
    --sc-grey-light: #e5e5e5;
    --sc-grey-bg: #f4f4f4;
    --sc-text: #141414;
    --sc-white: #ffffff;
    --sc-font: Verdana, Arial, Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--sc-font);
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: 0.1px;
    color: var(--sc-text);
    background-color: var(--sc-white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- Kopfbereich -------------------------------------------------------- */

.site-header {
    background-color: var(--sc-white);
}

.header-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 20px 20px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 55px;
    width: auto;
    display: block;
}

.header-app-name {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--sc-grey);
}

.header-rule {
    height: 4px;
    background-color: var(--sc-blue);
}

/* --- Hauptbereich ------------------------------------------------------- */

.site-main {
    flex: 1 0 auto;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.search-stage {
    width: 100%;
    max-width: 680px;
    margin-top: 12vh;
    text-align: center;
}

.search-headline {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--sc-blue);
    margin: 0 0 10px;
}

.search-subline {
    font-size: 15px;
    color: var(--sc-grey);
    margin: 0 0 32px;
}

/* --- Suchfeld ----------------------------------------------------------- */

.search-form {
    margin: 0;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 0 18px;
    height: 52px;
    background-color: var(--sc-white);
    border: 1px solid var(--sc-grey-light);
    border-radius: 26px;
    box-shadow: 0 1px 6px rgba(20, 20, 20, 0.12);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.search-box:hover {
    box-shadow: 0 2px 10px rgba(20, 20, 20, 0.18);
}

.search-box:focus-within {
    border-color: var(--sc-blue);
    box-shadow: 0 2px 12px rgba(0, 105, 180, 0.28);
}

.search-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    fill: var(--sc-grey);
}

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--sc-font);
    font-size: 17px;
    letter-spacing: 0.5px;
    color: var(--sc-text);
}

.search-input::placeholder {
    color: #a5a9a9;
    letter-spacing: 0.3px;
}

/* Das Kreuz der Browser-Suchfelder ausblenden - wir haben ein eigenes. */
.search-input::-webkit-search-decoration,
.search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.search-clear {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
    color: var(--sc-grey);
    text-decoration: none;
}

.search-clear:hover {
    color: var(--sc-red);
}

.search-validation {
    display: block;
    min-height: 20px;
    margin-top: 12px;
    font-size: 13px;
    color: var(--sc-red);
}

/* --- Schaltflaechen ----------------------------------------------------- */

.search-actions {
    margin-top: 16px;
}

.btn {
    display: inline-block;
    font-family: var(--sc-font);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 13px 38px;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    background-color: var(--sc-blue);
    border-color: var(--sc-blue);
    color: var(--sc-white);
}

.btn-primary:hover {
    background-color: var(--sc-blue-dark);
    border-color: var(--sc-blue-dark);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--sc-blue);
    outline-offset: 3px;
}

/* --- Ergebnisbereich ---------------------------------------------------- */

.search-result {
    margin-top: 40px;
    padding: 20px;
    text-align: left;
    background-color: var(--sc-grey-bg);
    border-left: 4px solid var(--sc-blue);
}

.result-note {
    margin: 0;
    font-size: 14px;
    color: var(--sc-grey-dark);
}

.item-row {
    display: flex;
    gap: 24px;
}

.item-field {
    flex: 1 1 0;
    min-width: 0;
}

.item-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--sc-grey);
    margin-bottom: 6px;
}

.item-value {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--sc-grey-light);
    border-radius: 4px;
    background-color: var(--sc-white);
    font-family: var(--sc-font);
    font-size: 15px;
    color: var(--sc-grey-dark);
    cursor: default;
}

.item-value:focus {
    outline: 2px solid var(--sc-blue);
    outline-offset: 1px;
}

.item-infobox {
    margin-top: 24px;
}

.item-infotext {
    margin-top: 6px;
    padding: 18px 20px;
    background-color: var(--sc-white);
    border: 1px solid var(--sc-grey-light);
    border-radius: 6px;
    box-shadow: 0 1px 6px rgba(20, 20, 20, 0.08);
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.6;
    color: var(--sc-text);
}

/* --- Fussbereich -------------------------------------------------------- */

.site-footer {
    flex: 0 0 auto;
    margin-top: 60px;
    background-color: var(--sc-grey-bg);
    border-top: 1px solid var(--sc-grey-light);
}

.footer-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 18px 20px;
    font-size: 12px;
    color: var(--sc-grey);
}

.footer-sep {
    margin: 0 8px;
    color: var(--sc-grey-light);
}

/* --- Kleine Bildschirme ------------------------------------------------- */

@media (max-width: 640px) {
    .header-inner {
        padding: 15px;
    }

    .logo img {
        height: 42px;
    }

    .header-app-name {
        display: none;
    }

    .search-stage {
        margin-top: 8vh;
    }

    .search-headline {
        font-size: 30px;
    }

    .btn {
        width: 100%;
    }

    .item-row {
        flex-direction: column;
        gap: 16px;
    }
}
