/*
 * Grundlagen: Reset, Typografie, Farben.
 *
 * Alle Werte sind der Vorgaengerseite entnommen (Joomla-Template
 * "uhrenrestaurator": template.css, 2018.css sowie die Reset-Regeln des
 * Hintergrund-Sliders). Die Darstellung soll unveraendert bleiben.
 */

* {
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    height: 100%;
    margin: 0;
    background: #111;
    font-family: "Lato", sans-serif;
    font-size: 13px;
    line-height: 18px;
    color: #f7f0d7;
}

/* ------------------------------------------------------------------ Verweise */

a {
    color: #f7f0d7;
    text-decoration: none;
    transition: all .25s ease-out;
}

a:hover,
a:focus {
    color: #fff;
    text-decoration: underline;
}

/*
 * Das Original setzt global ":focus { outline: none }". Fuer die
 * Tastaturbedienung wird der Fokus wieder sichtbar gemacht - allerdings nur
 * ueber :focus-visible, sodass sich fuer Mausnutzer nichts aendert.
 */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid #f7f0d7;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    a,
    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}

/* -------------------------------------------------------------- Ueberschriften */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 12px 0;
}

h1 {
    font-size: 26px;
    line-height: 28px;
}

h2 {
    font-size: 22px;
    line-height: 24px;
}

h3 {
    font-size: 18px;
    line-height: 20px;
}

h5 {
    font-size: 13px;
    line-height: 15px;
}

h6 {
    font-size: 12px;
    line-height: 14px;
}

/* Spaetere Regel der Vorgaengerseite; ueberschreibt die 14px-Angabe fuer h4. */
h4 {
    font-size: 160%;
    font-variant: small-caps;
    line-height: 18px;
}

/* --------------------------------------------------------------- Fliesstext */

p {
    margin: 0 0 9px;
}

ul,
ol {
    padding: 0;
    margin: 0 0 9px 25px;
}

ul ul,
ul ol,
ol ol,
ol ul {
    margin-bottom: 0;
}

li {
    line-height: 18px;
}

small {
    font-size: 85%;
}

strong {
    font-weight: bold;
}

em {
    font-style: italic;
}

cite {
    font-style: normal;
}

sub,
sup {
    position: relative;
    font-size: 75%;
    line-height: 0;
    vertical-align: baseline;
}

sup {
    top: -.5em;
}

sub {
    bottom: -.25em;
}

blockquote {
    padding: 0 0 0 15px;
    margin: 0 0 18px;
    border-left: 5px solid #eee;
}

hr {
    border: none;
    background: #0e0e0e;
    height: 1px;
    margin: 18px 0;
}

/*
 * Die Vorgaengerseite trennt Woerter per Hyphenator.js im Bereich .hyphenate.
 * Dieselbe Wirkung erreicht der Browser ueber CSS und das lang-Attribut.
 */
.hyphenate {
    -webkit-hyphens: auto;
    hyphens: auto;
}

::selection {
    background: #f7f0d7;
    color: #333;
}

::-moz-selection {
    background: #f7f0d7;
    color: #333;
}

/* ------------------------------------------------------------ Medien, Tabellen */

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

table {
    max-width: 100%;
    background-color: transparent;
    border-collapse: collapse;
    border-spacing: 0;
}

form {
    margin: 0;
}

/* --------------------------------------------------------------- Hilfsklassen */

.clearfix::before,
.clearfix::after {
    display: table;
    content: "";
    line-height: 0;
}

.clearfix::after {
    clear: both;
}

.pull-right {
    float: right;
}

.pull-left {
    float: left;
}

.hide {
    display: none;
}

.show {
    display: block;
}

/* Sprungmarke zum Inhalt: erst bei Tastaturfokus sichtbar. */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 10000;
    padding: 10px 15px;
    background: #f7f0d7;
    color: #333;
}

.skip-link:focus {
    left: 0;
    color: #333;
}
