/*
 * Die Farben, die ich auf meiner Homepage nutze.
 *
 * Hintergrund-Grau: #f0f0f0
 *
 * Gelb: #ffcc00
 *
 * Blau: #156cbf
 * Dunkles Blau: #0263bf
 * Helles Blau: #7099bf
 * Sehr helles Blau: #e1eefb
 * Sehr sehr helles Blau: #f7f9fb
 *
 * Rot: #ba0000
 *
 */

/*
 * ------------------------------------------------------------------------
 * Layout
 * In diesem Bereich wird der grundsaetzliche Aufbau der Website definiert, d.h.
 * wo welche Elemente liegen und welche Groessen sie haben. Unten kommt dann
 * noch das Design fuer die einzelnen Elemente.
 * ------------------------------------------------------------------------
 */

/*
 * Grundsaetzlich kleben erstmal alle Teile aneinander!
 */
* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0 15px;
}

/*
 * Header
 */
#header {
    height: 130px;
    margin: 0;
}

#homename {
    padding: 20px 0;
    margin-left: 20px;
}

#logo {
    float: right;
    padding: 10px 20px;
}

/*
 * Mittelteil
 */
#main {
    padding-top: 10px;
}

/*
 * Navigation
 */
#navigation-box {
    float: left;
    width: 150px;
}

#impressum {
    width: 100%;
    text-align: right;
    margin: 5px 0;
}

/*
 * Hauptbereich
 */
#content {
    margin-left: 160px;
    overflow: hidden;
}

/*
 * Hilfskomponente, damit alles richtig aussieht
 */
#clearer {
    clear: left;
    height: 0;
}

/*
 * Tweet
 */
#twitter {
    float: right;
}

/*
 * Banner-Bereiche
 */
/* Google-Banner */
#banner {
    width: 100%;
    text-align: center;
    margin: 10px 0;
}

/* Banner-Bilder unten in der Seite */
ul.banner {
    float: right;
    margin: 0;
    padding: 0;
    width: 780px;
}

ul.banner li {
    float: right;
    list-style: none;
    padding: 0 3px;
    margin: 0;
}

/*
 * Footer
 */
#footer {
    margin: 10px 0 0 0;
}

#copyright {
    float: left;
    font-size: 80%;
}

/*
 * Blogbereiche
 */
#blogcontent {
}

#bloglinks {
    float: right;
    width: 150px;
    background-color: white;
    border: solid 1px #156cbf;
    padding: 3px;
    font-size: 90%;
    padding-bottom: 10px;
    margin-left: 5px;
    margin-bottom: 5px;
}

/*
 * Debug-Bereich
 * FIXME: Daran denken, diesen Bereich im Zweifelsfall wieder rauszunehmen.
 */
#debug {
    display: none;
}

#gallery {
    width: 100%;
}

#gallery .gallerycr {
    clear: left;
    display: block;
    font-size: 80%;
}

#galimages {
    margin: 10px 0;
}

#galmore {
}

#galimages .galimage {
    float: left;
    width: 133px;
    height: 150px;
    display: inline;
    margin: 0 10px 10px 0;
    text-align: center;
}

/*
 * ------------------------------------------------------------------------
 * Design
 * ------------------------------------------------------------------------
 */

/*
 * Erstmal die grundsaetzlichen Sachen definieren.
 */
* {
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    color: black;
}

body {
    background-image: url('/pics/background.png');
    background-repeat: repeat-x;
    background-color: #f0f0f0;
}

p {
    line-height: 18px;
    margin: 0 0 10px 0;
}

img {
    border: 0;
}

a { font-size: 100%; text-decoration: none; }
a:link { color: #156cbf; }
a:visited { color: #0263bf; }
a:focus { color: #ba0000; }
a:hover { color: #ba0000; }
a:active { color: #7099bf; }

h1, h2, h3 {
    display: block;
    background-color: #e1eefb;
    border-top: solid 1px #156cbf;
    padding: 3px 10px;
    margin: 0 0 10px 0;
    font-weight: bold;
}

h1 {
    font-size: 150%;
}

h2 {
    font-size: 140%;
}

h3 {
    font-size: 120%;
}

ul {
    margin: 0;
    padding: 0 0 10px 20px;
}

ol {
    margin: 0;
    padding: 0 0 10px 30px;
}

li {
    line-height: 18px;
}

tt {
    font: 14px monospace;
    padding: 0 3px;
    background-color: #f7f9fb;
}

pre {
    border: solid 1px #156cbf;
    background-color: #f7f9fb;
    margin: 10px;
    padding: 5px;
    overflow: auto;
}

table {
    margin: 0 10px 10px 10px;
    border: 1px solid black;
    border-collapse: collapse;
    border-spacing: 0;
}

tr {
}

th {
    color: white;
    padding: 3px;
    background-color: #ba0000;
}

td {
    padding: 3px;
    background-color: #f7f9fb;
    border: 1px solid #156cbf;
}

dl {
    margin: 0 0 10px 0;
}

dt {
    font-weight: bold;
}

dd {
}

input {
    border: 1px solid black;
    background-color: #e1eefb;
    margin: 2px;
}

.big {
    font-size: 140%;
}

/*
 * ------------------------------------------------------------------------
 * Spezielle Design-Einstellungen fuer einzelne Bereiche
 * ------------------------------------------------------------------------
 */

/* Zusatz-Inhalt auf der Homepage unten */
p.additional {
    background-color: #e1eefb;
    border: 1px solid #156cbf;
    text-align: center;
    padding: 10px;
}

/* Header */

#header {
    background-color: #ffcc00;
    background-image: url('/pics/header-background.png');
    background-repeat: no-repeat;
}

#homename h1 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 60px;
    line-height: 60px;
    border: 0;
    background-color: transparent;
    color: #ba0000;
}

#homename a, #homename a:link, #homename a:visited, #homename a:focus, #homename a:hover, #homename a:active {
    color: #ba0000;
}

#homename h2 {
    margin: 0 0 0 10px;
    padding: 0;
    font-size: 20px;
    line-height: 20px;
    border: 0;
    background-color: transparent;
    color: #ba0000;
}

/* Navigation */

#navigation {
    background-color: #ffcc00;
    width: 150px;
}

#navigation input {
    font-size: 11px;
    border: 1px solid white;
    width: 120px;
    background-color: #ffdb4d;
    padding: 2px;
}

#navigation input.nowidth {
    width: auto;
    border: 0;
    background-color: transparent;
    padding: 0;
}

#navigation form {
    margin: 0;
    padding: 10px;
}

#navigation ul {
    list-style-type: none;
    margin: 0;
    padding: 10px;
}

#navigation a {
    border: white solid 1px;
    text-align: center;
    width: 120px;
    text-decoration: none;
    display: block;
    padding: 2px;
    margin: 4px 0;
    font-weight: bold;
}

#navigation a:hover, #navigation a:focus {
    background-color: #ffe788;
}

/* Content-Bereich */
#content {
    background-color: white;
}

/* Footer */
#footer {
    border-top: 1px dotted black;
}

/* Design im Blog-Bereich */

#bloglinks h1 {
    font-size: 100%;
    line-height: 100%;
    border: 0;
    border-bottom: solid 1px black;
    background-color: transparent;
    margin: 8px 0 4px 0;
    padding: 0;
}

#bloglinks #calendar .calendarhead {
    font-size: 11px;
}

#bloglinks #calendar table {
    border: 0;
    margin: 0 0 10px 0;
}

#bloglinks #calendar tr {
}

#bloglinks #calendar th {
    border: 0;
    background-color: transparent;
    padding: 2px;
}

#bloglinks #calendar td {
    border: 0;
    padding: 2px;
    background-color: transparent;
}

/* Die folgenden zwei brauche ich wirklich nur, damit die Schriftgroesse
 * korrekt ist. */
#bloglinks #calendar span.calendarday {
    font-size: 11px;
    font-weight: bold;
}

#bloglinks #calendar span.calendar {
    font-size: 11px;
}

/* die folgenden zwei sind fuer die Ueberschrift jedes Eintrags zustaendig. */
#blog h2.date {
    float: right;
    background-color: transparent;
    border: 0;
    margin: 5px 0;
    font-size: 120%;
}

#blog h3.title {
    font-size: 140%;
    margin-bottom: 10px;
}

/* Wenn ich innerhalb eines blog-Eintrages bin, dann sollen die Ueberschriften
 * nicht diese ganze Farbenpracht mitmachen, wie sonst. */
#blog h1 {
    background-color: transparent;
    border: 0;
    padding-left: 0;
}

#blog h2 {
    background-color: transparent;
    border: 0;
    padding-left: 0;
}

#blog .posted {
    margin: 0 0 10px 0;
}

/* Design im Links-Bereich */

#links ul {
    padding: 5px 0;
}

#links li.linkfolder {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

#links li.linkfolder div.folderheader {
    background-color: #e1eefb;
    font-size: 14px;
    font-weight: bold;
    line-height: 30px;
    margin-left: -20px;
    padding-left: 10px;
}

#links li.linkbm {
    list-style: none;
    background-color: white;
    font-size: 12px;
    font-weight: normal;
    line-height: 16px;
    padding-left: 5px;
}

/* Design im Galerie-Bereiche */

#galmore p {
}

#galmore a {
    float: left;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    width: 133px;
}

#galmore a:hover, #galmore a:focus {
    background-color: #e1eefb;
}

#gallery #galnav {
    padding: 10px;
}

#gallery .rightlink {
    float: right;
}

#gallery .leftlink {
    float: left;
}

#gallery #image {
    width: 100%;
    text-align: center;
}

/* Kommentare */

#usernotes h1 {
    background-color: transparent;
    border: 0;
    border-top: dashed 1px black;
    padding: 10px 0 0 0;
    margin: 10px 0;
}

#usernotes td {
    vertical-align: top;
}

#usernotes .note {
    border: 1px solid black;
    margin: 10px 0;
    padding: 5px;
}

#usernotes .copyright {
    font-size: 80%;
}

/* Programme-Bereich */

#github-badge {
    float: right;
    width: 150px;
    border: 1px solid #156cbf;
    margin-left: 5px;
}

/* Shop-Bereich */

#shop {
    text-align: center;
    margin-top: 10px;
}

/* Abschliessend noch ein paar Einstellungen fuer Mobile User.  Bisher nur
 * getestet auf IPhone und noch nicht vollstaendig!
 * */
@media only screen and (max-device-width:480px) {
    body {
        margin: 0 10px;
        -webkit-text-size-adjust: none;
    }

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

    #homename h1 {
        font-size: 30px;
        line-height:30px;
    }

    #homename h2 {
        margin: 0;
    }

    #navigation-box {
        display: none;
    }

    #bloglinks {
        display: none;
    }

    #content {
        margin-left: 0;
    }

    #content > center {
        display: none;
    }

    #github-badge {
        display: none;
    }
    script {
        border: 10px solid green;
    }

    #twitter {
        display: none;
    }

    #banner {
        display: none;
        width: 0;
    }

    ul.banner {
        display: none;
        width: 0;
    }

    h2.date > a {
        display: none;
    }
}

