/* ==========================================================
   MatheGrafix Tutorial
   Zusatzformatierung für die Hilfeseiten im Verzeichnis /tutorial/

   Zweck:
   - keine Änderung der 166 HTML-Seiten nötig
   - vorhandene Klassen .post-title und .post-date werden wie eine
     moderne Hero-Box formatiert
   - Gestaltung angelehnt an .modern-hero aus med.htm
   ========================================================== */


/* Hero-Box aus vorhandener Überschrift und Unterüberschrift */
.post-title,
.post-date {
    box-sizing: border-box;
}

/* oberer Teil der Box: Überschrift */
.post-title {
    position: relative;
    margin: 0;
    padding: 26px 28px 6px 28px;

    border: 1px solid #D8E0EC;
    border-bottom: 0;
    border-radius: 0;

    background:#f4f7fb;
    box-shadow: 0px -8px 8px -8px rgba(57,82,110,0.08),  /* Kante OBEN */
				-8px 0px 8px -8px rgba(57,82,110,0.08),  /* Kante LINKS */
					8px 0px 8px -8px rgba(57,82,110,0.08);   /* Kante RECHTS */	
}

/* kleines Label wie .eyebrow in med.htm */
.post-title:before {
    content: "Online-Hilfe";
    display: block;

    color: #5F7DB1;
    font-size: 1.05em;
    font-weight: bold;
    letter-spacing: 0.05em;    
    text-transform: uppercase;

    margin: 0 0 6px 0;
}

/* Hauptüberschrift */
.post-title h1,
.post-title h2,
.post-title h3 {
    color: #003366;
    font-size: 2.15em;
    font-weight: normal;
    line-height: 1.15;

    margin: 0;
    padding: 0;
}

/* unterer Teil der Box: Unterüberschrift / Lead */
.post-date {
    color: #003366;
    font-size: 1.16em;
    line-height: 1.55;

    margin: 0 0 25px 0;                              /* Abstand Überschrift */
    padding: 0 28px 26px 28px;

    border-left: 1px solid #D8E0EC;
    border-right: 1px solid #D8E0EC;
    border-bottom: 1px solid #D8E0EC;
    border-radius: 0;

    background: #f4f7fb;
    box-shadow: 0 0px 8px 0 rgba(57,82,110,0.10);
}

/* Abstand zum nachfolgenden Inhalt stabilisieren */
.post-date + p,
.post-date + .post-body {
    margin-top: 0;
}

/* Falls Hilfeseiten zwischen post-date und post-body Videos/Bilder haben */
.post-date + p {
    margin-bottom: 18px;
}

/* Links in der Kopfbox */
.post-title a,
.post-date a {
    color: #003366;
    text-decoration: none;
}

.post-title a:hover,
.post-date a:hover {
    text-decoration: underline;
}

/* Responsive Anpassung */
@media screen and (max-width: 760px) {

    .post-title {
        padding: 20px 20px 6px 20px;
        border-radius: 12px 12px 0 0;
    }

    .post-date {
        padding: 0 20px 20px 20px;
        border-radius: 0 0 12px 12px;
        font-size: 1.05em;
    }

    .post-title h1,
    .post-title h2,
    .post-title h3 {
        font-size: 1.65em;
        line-height: 1.2;
    }
}
