﻿/* =========================================================
   layout.css
   Grundlegende gemeinsame Formatierung für alle Seiten
   norm.css ist in diese Datei integriert.
   ========================================================= */

/* ---------- Normalisierung ---------- */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

body {
    margin: 0 auto;
    padding: 6px;
    width: 100%;
    max-width: 900px;

    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: small;

    background-color: #FFF7E8;
}

div, dl, dt, dd, ul, ol, li,
h1, h2, h3, h4, h5, h6,
pre, form, fieldset, input, p,
blockquote, th, td {
    margin: 2px;
    padding: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-size: 100%;
}

ol {
    list-style: decimal;
}

ul {
    list-style: disc;
	padding-left: 25px;
}

address, caption, cite, code, dfn, em, strong, th, var {
    font-style: normal;
    font-weight: normal;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

fieldset, img {
    border: 0;
    vertical-align: bottom;
}

caption, th {
    text-align: left;
}

q:before,
q:after {
    content: '';
}

/* ---------- Grundelemente ---------- */

p {
    margin: 0 0 8px 0;
    padding: 0;
}

ul {
    margin-top: 4px;
    margin-bottom: 8px;
}

li {
    margin-bottom: 2px;
}

header {
    margin: 0 auto;
    padding: 0;
    border: 0;
    z-index: 2;
}

nav {
    margin: 0;
    padding: 0;
    border: 0;
    z-index: 1;
}

section {
    margin: 0 auto;
    padding: 0;
    border: 0;
    overflow: hidden;
    z-index: 3;
}

section article {
    position: relative;
    float: left;
    margin: 0;
}

section aside {
    position: relative;
    float: right;
    margin: 0;
}

#overfooter {
    border: 0;
}

footer {
    text-align: center;
    clear: both;
    margin: 0 auto;
    padding: 0;
    border: 0;
}

/* ---------- Allgemeine Bilder ---------- */

img {
    max-width: 100%;
    height: auto;
}

/* ---------- Links ---------- */

a {
    color: #8b0000;
    text-decoration: underline;
}

a:hover {
    color: #fa3;
    text-decoration: underline;
}

/* ---------- Tabellen ---------- */

table {
    margin: 2px 3px 4px 0;
    width: 98%;
    border: 1px solid orange;
    table-layout: fixed;
}

td,
th {
    border: 1px solid orange;
    text-align: left;
    font-weight: normal;
    padding: 2px;
}

/* ---------- Überschriften ---------- */

h1 {
    font-size: xx-large;
    color: #800;
    padding: 20px 0 30px 0;
}

h2 {
    font-size: x-large;
    color: #700;
    padding: 20px 0 10px 0;
}

h3 {
    font-size: large;
    color: #600;
    padding: 20px 0 10px 0;
}

h4 {
    font-size: medium;
    color: #500;
    padding: 10px 0 20px 0;
}

h5 {
    font-size: x-small;
    color: #400;
}

h6 {
    font-size: xx-small;
    color: #300;
}

/* ---------- Formulare ---------- */

label {
    padding: 15px 0 0 5px;
}

input {
    width: 60%;
    text-align: left;
}

textarea {
    width: 60%;
    height: 150px;
    text-align: left;
    vertical-align: text-top;
}

input#abschicken {
    margin-top: 5px;
    width: 20%;
}

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

.head {
    padding: 15px 0 0 20px;
    font-size: medium;
    font-style: italic;
    font-weight: bold;
}

.txt {
    padding: 10px 0 0 50px;
    font-size: small;
    font-style: normal;
    font-weight: normal;
}

.style_bold {
    font-weight: bold;
}

.style_italic {
    font-style: italic;
}

.rot {
    color: red;
    font-weight: bold;
    font-size: calc(1em + 5px);
}

.indexBodyImg {
    width: 200px;
    height: auto;
}

/* ---------- Responsive Grundlayout ---------- */

@media (max-width: 700px) {

    body {
        padding: 4px;
    }

    section article,
    section aside {
        float: none;
        width: 100%;
        padding: 5px;
    }

    input,
    textarea {
        width: 100%;
    }

    input#abschicken {
        width: auto;
    }
}

@media (max-width: 450px) {

    body {
        padding: 3px;
    }

    h1 {
        font-size: x-large;
    }

    h2 {
        font-size: large;
    }

    h3 {
        font-size: medium;
    }
}
