/*
 * Shop-nahe Darstellung der oeffentlichen phpList-Seiten.
 * Diese Datei muss nach der phpList-CSS eingebunden werden.
 */

:root {
    --shop-text: #555;
    --shop-text-dark: #333;
    --shop-accent: #6f7fcd;
    --shop-accent-dark: #525596;
    --shop-surface: #fafafa;
    --shop-line: #ddd;
    --shop-footer: #363839;
    --shop-footer-line: #444;
    --shop-footer-text: #aaa;
}

html {
    min-height: 100%;
    background: #fff;
}

body.fixed {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: #fff;
    color: var(--shop-text);
    font-family: "Poppins", Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 1.65;
}

body.fixed #container {
    width: 100%;
    flex: 1 0 auto;
}

/* Header und textbasierte Wortmarke */
body.fixed #header.navbar.navbar-inverse {
    min-height: 0;
    margin: 0;
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid #eee;
    border-radius: 0;
    background: #fff;
}

body.fixed #rack-functions {
    width: 100%;
    max-width: 1140px;
    padding-right: 25px;
    padding-left: 25px;
}

body.fixed h1#logo {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.35;
}

body.fixed #header.navbar-inverse h1#logo a,
body.fixed #header.navbar-inverse h1#logo a:visited {
    color: var(--shop-text-dark);
    text-decoration: none;
}

body.fixed #header.navbar-inverse h1#logo a:hover,
body.fixed #header.navbar-inverse h1#logo a:focus {
    color: var(--shop-accent);
    text-decoration: none;
}

body.fixed h1#logo img {
    display: block;
    width: 100%;
    max-width: 395px;
    height: auto;
}

/* Schmaler Inhaltsbereich wie eine Shop-Informationsseite */
body.fixed #wrapper {
    width: 100%;
    max-width: 760px;
    padding: 42px 20px 50px;
}

body.fixed #mainContent > .panel {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.fixed #mainContent > .panel > br {
    display: none;
}

body.fixed .content.well {
    margin: 0;
    padding: 30px;
    border: 1px solid var(--shop-line);
    border-radius: 2px;
    background: var(--shop-surface);
    box-shadow: none;
}

body.fixed .content h3 {
    margin: 0 0 22px;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--shop-line);
    color: var(--shop-text);
    font-size: 24px;
    font-weight: 300;
    line-height: 1.3;
}

/* Die vorhandenen Aktionsabsätze werden ohne zusätzliche Klassen zu Kacheln. */
body.fixed .content > p:not(.poweredby) {
    margin: 0 0 10px;
}

body.fixed .content > p:not(.poweredby) > a {
    position: relative;
    display: block;
    padding: 12px 44px 12px 15px;
    border: 1px solid var(--shop-line);
    border-radius: 2px;
    background: #fff;
    color: var(--shop-text);
    font-weight: 400;
    text-decoration: none;
    transition: border-color .18s ease, color .18s ease, background-color .18s ease;
}

body.fixed .content > p:not(.poweredby) > a::after {
    position: absolute;
    top: 50%;
    right: 16px;
    content: "\2192";
    color: var(--shop-accent);
    font-size: 18px;
    line-height: 1;
    transform: translateY(-50%);
}

body.fixed .content > p:not(.poweredby) > a:hover,
body.fixed .content > p:not(.poweredby) > a:focus {
    border-color: var(--shop-accent);
    background: #fff;
    color: var(--shop-accent-dark);
    text-decoration: none;
}

/* Die Anmeldung ist die primaere Aktion. */
body.fixed .content > h3 + p > a,
body.fixed .content > h3 + p > a:visited {
    border-color: var(--shop-accent-dark);
    background: var(--shop-accent-dark);
    color: #fff;
    font-weight: 600;
}

body.fixed .content > h3 + p > a::after {
    color: #fff;
}

body.fixed .content > h3 + p > a:hover,
body.fixed .content > h3 + p > a:focus {
    border-color: var(--shop-accent);
    background: var(--shop-accent);
    color: #fff;
}

/* Formulare auf Einstellungs-, Abmelde- und Bestaetigungsseiten */
body.fixed .content form {
    margin: 26px 0 0;
}

body.fixed .content form table {
    width: 100%;
    margin: 0 0 16px;
    border: 0;
    border-collapse: collapse;
    background: transparent;
}

body.fixed .content form table td {
    padding: 5px 0;
    border: 0;
    vertical-align: middle;
}

body.fixed .content form table td:first-child {
    width: 155px;
    padding-right: 16px;
    color: var(--shop-text-dark);
    font-weight: 500;
}

body.fixed .content input[type="text"],
body.fixed .content input[type="email"],
body.fixed .content input[type="password"] {
    display: block;
    width: 100%;
    height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--shop-line);
    border-radius: 2px;
    background: var(--shop-surface);
    color: var(--shop-text-dark);
    font: inherit;
    box-shadow: none;
    transition: border-color .18s ease, background-color .18s ease;
}

body.fixed .content input[type="text"]:hover,
body.fixed .content input[type="email"]:hover,
body.fixed .content input[type="password"]:hover {
    background: #fff;
}

body.fixed .content input[type="text"]:focus,
body.fixed .content input[type="email"]:focus,
body.fixed .content input[type="password"]:focus {
    border-color: var(--shop-accent);
    background: #fff;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(111, 127, 205, .15);
}

body.fixed .content input[type="submit"] {
    min-height: 38px;
    padding: 9px 22px;
    border: 1px solid var(--shop-accent-dark);
    border-radius: 2px;
    background: var(--shop-accent-dark);
    color: #fff;
    font: inherit;
    font-weight: 600;
    line-height: 1.35;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}

body.fixed .content input[type="submit"]:hover,
body.fixed .content input[type="submit"]:focus {
    border-color: var(--shop-accent);
    background: var(--shop-accent);
    color: #fff;
    outline: 0;
}

body.fixed .content form > p {
    margin: 0;
}

body.fixed .content form > br {
    display: none;
}

body.fixed .content form > p:last-of-type {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

body.fixed .content form > p:last-of-type a,
body.fixed .content form > p:last-of-type a:visited {
    color: var(--shop-accent-dark);
    font-weight: 400;
    text-decoration: none;
}

body.fixed .content form > p:last-of-type a:hover,
body.fixed .content form > p:last-of-type a:focus {
    color: var(--shop-text);
    text-decoration: underline;
}

body.fixed .content .poweredby {
    margin: 24px 0 0;
    padding-top: 18px;
    border-top: 1px solid #eee;
    opacity: .65;
}

body.fixed .content .poweredby img {
    max-width: 100%;
    height: auto;
}

/* Impressum und Datenschutz unterhalb der Box */
body.fixed #mainContent > div:last-child {
    padding: 16px 2px 0;
    color: #aaa;
    text-align: center;
}

body.fixed #mainContent > div:last-child a,
body.fixed #mainContent > div:last-child a:visited {
    color: var(--shop-text);
    text-decoration: none;
}

body.fixed #mainContent > div:last-child a:hover,
body.fixed #mainContent > div:last-child a:focus {
    color: var(--shop-accent);
    text-decoration: underline;
}

/* Kompakter Footer in den Farben des Shop-Footers */
body.fixed #footer {
    width: 100%;
    min-height: 90px;
    margin: 0;
    padding: 20px 0;
    flex: 0 0 auto;
    border: 0;
    border-top: 1px solid var(--shop-footer-line);
    background: var(--shop-footer);
    color: var(--shop-footer-text);
}

body.fixed #footerframe {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

body.fixed #footer ul {
    margin: 0;
}

@media (max-width: 767px) {
    body.fixed #header.navbar.navbar-inverse {
        padding: 14px 0;
    }

    body.fixed #rack-functions {
        padding-right: 20px;
        padding-left: 20px;
    }

    body.fixed h1#logo {
        font-size: 20px;
    }

    body.fixed h1#logo img {
        max-width: 300px;
    }

    body.fixed #wrapper {
        padding: 24px 12px 34px;
    }

    body.fixed .content.well {
        padding: 20px 16px;
    }

    body.fixed .content h3 {
        font-size: 21px;
    }

    body.fixed .content form table,
    body.fixed .content form table tbody,
    body.fixed .content form table tr,
    body.fixed .content form table td {
        display: block;
        width: 100%;
    }

    body.fixed .content form table td:first-child {
        width: 100%;
        padding: 0 0 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.fixed .content > p:not(.poweredby) > a,
    body.fixed .content input {
        transition: none;
    }
}
