/* =========================================
   Browser-Korrekturen (iOS)
   ========================================= */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* =========================================
   Grundlayout
   ========================================= */

body {
    font-family: monospace;
    font-size: 15px;
    background: #f2f2f2;
    color: #000000;
    margin: 0;
    padding: 0;
    line-height: 1.55;
}

/* =========================================
   Papierfläche
   ========================================= */

.page {
    box-sizing: border-box;
    background: #ffffff;

    width: 88vw;
    max-width: 56em;

    margin: 22px auto;
    padding: 22px 22px;

    box-shadow: 0 0 0 1px rgba(0,0,0,0.04);
}

/* =========================================
   Kopfbereich
   ========================================= */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.2em;
}

.header h1 {
    font-size: 1.4em;
    font-weight: normal;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}

.header .logo {
    max-width: min(200px, 40vw);
    max-height: 2em;
    height: auto;
}

/* =========================================
   Überschriften & Text
   ========================================= */

h2 {
    font-size: 1em;
    font-weight: bold;
    margin-top: 1.6em;
    margin-bottom: 0.4em;
}

p {
    margin: 0.5em 0;
}

/* =========================================
   Trennlinien
   ========================================= */

hr {
    border: none;
    border-top: 1px solid #000000;
    margin: 1em 0;
}

/* =========================================
   Tabellen (Standorte)
   ========================================= */

.mini-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.4em 0 1.2em 0;
}

.mini-table td {
    vertical-align: top;
    padding-right: 2em;
}

/* =========================================
   Formulare
   ========================================= */

label {
    display: block;
    margin-top: 0.8em;
}

input[type="text"],
input[type="date"],
textarea {
    width: 100%;
    font-family: monospace;
    font-size: 1em;
    padding: 4px;
    border: 1px solid #000000;
    box-sizing: border-box;
}

input[type="file"] {
    width: 100%;
    font-family: monospace;
    font-size: 1em;
    padding: 4px;
    border: 1px solid #000000;
    box-sizing: border-box;
}

textarea {
    min-height: 7em;
    resize: vertical;
}

/* Datei-Upload Button (WebKit) */
input[type="file"]::-webkit-file-upload-button {
    font-family: monospace;
    font-size: 1em;
    padding: 4px 6px;
}

/* =========================================
   Buttons
   ========================================= */

button {
    margin-top: 1.6em;
    padding: 6px 14px;
    font-family: monospace;
    font-size: 1em;
    border: 1px solid #000000;
    background-color: #f5f5f5;
    color: #000000;
    cursor: pointer;
}

button:hover {
    background-color: #000000;
    color: #ffffff;
}

/* =========================================
   Kleintexte
   ========================================= */

.mini-info,
.mini-impressum {
    font-size: 0.85em;
    line-height: 1.3;
    margin-top: 0.8em;
}

/* =========================================
   Fehlermeldungen
   ========================================= */

.error p {
    margin: 0.4em 0;
}

.fullwidth-line {
    height: 1px;
    background: #e0e0e0;

    margin-left: -22px;
    margin-right: -22px;
    margin-top: 22px;
    margin-bottom: 22px;
}