/* Special CSS fuer die main_? Seite bei WiMo */
/* AdW und son Kram */
/* (c) WiMo 2013 */

body {
    margin: 0px;
    padding: 0px;
    width: 100%;
}


div#teaserlistflex {
    max-width: 800px; /* 4x 188 + 3x 20 */
    min-width: 800px;
    margin: 0 auto;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-direction: normal;
       -moz-box-direction: normal;
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-orient: horizontal;
       -moz-box-orient: horizontal;
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    -webkit-box-pack: justify;
       -moz-box-pack: justify;
    -webkit-justify-content: space-between;
            justify-content: space-between;
    -ms-flex-pack: center;
    -webkit-align-content: stretch;
    -ms-flex-line-pack: stretch;
    align-content: stretch;
    -webkit-box-align: stretch;
    -moz-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    clear: left;
    position: relative;
}

/* Überschrift besondere Messages */
div#teaserlistflex > h1 {
    width: 100%;
    text-align: center;
    margin: 5px 0px;
    font-size: 12pt;
}

/* Überschrift */
div#teaserlistflex > h2 {
    width: 100%;
    text-align: center;
    margin: 5px 0px;
    font-size: 11pt;
    font-weight: bold;
    letter-spacing: 0.25em;
    background-color:#FFA500;
}

/* Teaser */
div#teaserlistflex > div {
    width: 170px;
    max-width: 170px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 4px;
}

/* Teaser BF */
div#teaserlistflex > div.bfday {
    width: 170px;
    max-width: 170px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 4px;
    background: #404040;
    color: #d0d0d0;
}

div#teaserlistflex > div.bfday > h2 {
    background: inherit;
    color: inherit;
    font-weight: bold;
}

div#teaserlistflex > div.bfday > h3 {
    background: red;
    color: black;
    font-weight: bold;
}

div#teaserlistflex > div.bfday > p {
    background: inherit;
    color: inherit;
}

div#teaserlistflex > div.bfday > p.bfoffer {
    background: #707070;
    margin: 5px auto;
    width: 95%;
    color: #fff;
    border: solid 1px #eee;
    border-radius: 5px;
}

div#teaserlistflex > div.bfday > a {
    background: inherit;
    color: inherit;
    display: inline;
}


/* Teaser mit link über alles */
div#teaserlistflex > div > a,
div#teaserlistflex > div.doublewidth > a {
    margin: 0px -4px;
    padding: 0px;
    color: #444;
    text-decoration: none;
    text-align: center;
    display: block;
    padding: 0 4px;
}

div#teaserlistflex > div *,
div#teaserlistflex > div.doublewidth  *{
    clear: both;
}


div#teaserlistflex > div  > a > h2,
div#teaserlistflex > div.doublewidth > a > h2 {
    margin: 0px -4px 2px -4px;
    font-size: 10pt;
    font-weight: normal;
    background-color:#263B8C;
    border-bottom: none;
}


div#teaserlistflex > div > a > h3,
div#teaserlistflex > div.doublewidth > a > h3 {
    margin: 0px -4px 2px -4px;
    font-size: 9pt;
    font-weight: normal;
    border-bottom: none;
    color: #444;
}

div#teaserlistflex > div img {
    max-width: 178px; /* 170 + 2x4 */
    max-height: 85px;
}

div#teaserlistflex > div > a > img,
div#teaserlistflex > div.doublewidth > a > img {
    display: block;
    max-width: 380px;
    max-height: 140px;
    margin: 0px auto;
}


/* Correct pos for img only teaser without h2/h3 */
div#teaserlistflex > div > a > img:first-child ,
div#teaserlistflex > div.doublewidth > a > img:first-child  {
    position: relative;
    left: -4px;
    max-height: none;
}

/* Correct pos for img only teaser with h2 */
div#teaserlistflex > div > a > h2 + img,
div#teaserlistflex > div.doublewidth > a > h2 + img {
    position: relative;
    max-height: none;
    top: -2px;
    left: -4px;
}

div#teaserlistflex > div > a > ul {
    margin:  5px 0px;
    padding-left: 10px;
    text-align: left;
    font-size: 90%;
}

div#teaserlistflex > div > a > ul li {
    margin-left: 2px;
}



/* Teaser mit mehreren Einzellinks */
div#teaserlistflex > div > h2 {
    margin: 0px -4px 2px -4px;
    font-size: 10pt;
    font-weight: normal;
    background-color: #263B8C;
    border-bottom: none;
}

/* Hervorhebung für Neu usw. */
div#teaserlistflex > div > h2 span,
div#teaserlistflex > div h3 span {
    color: #d22;
    font-weight: bold;
}

/* es sei denn, es hat den style neu */
div#teaserlistflex > div > h2 span.neu,
div#teaserlistflex > div h3 span.neu {
    color: #fff;
    font-weight: bold;
}



div#teaserlistflex > div > h3 {
    margin: 0px -4px 2px -4px;
    font-size: 9pt;
    font-weight: normal;
    border-bottom: none;
    color: #444;
}




/* Teaser doppelte breite */
div#teaserlistflex > div.doublewidth {
    width: 376px;
    max-width: 376px;
    text-align: center;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0 4px;
}


div#teaserlistflex > div.doublewidth > h2 {
    background-color:#263B8C;
    color: #fff;
}

div#teaserlistflex > div.doublewidth > img {
    float: left;
    margin-right: 5px;
}

div#teaserlistflex > div.doublewidth > table {
    text-align: left;
    clear: none;
    margin-bottom: 20px;
}
div#teaserlistflex > div.doublewidth > table > tr > th {
    text-align: left;
    background-color: #eee;
}


/* Teaser vierfache breite */
div#teaserlistflex > div.quadwidth {
    width: 974px;
    max-width: 974px;
    text-align: center;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

div#teaserlistflex > div.quadwidth > h2 {
    background-color:#ccc;
    color: #802B0F;
    letter-spacing: 3px;
}

div#teaserlistflex > div.quadwidth > h3 {
    margin:  0px;
    background-color:#fff;
    color: #040404;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 130%;
}

div#teaserlistflex > div.quadwidth > p {
    margin:  0px;
    background-color:#fff;
    padding: 2px 2em;
}

div#teaserlistflex > div.quadwidth img {
    max-width: none;
    max-height: none;
}



div#teaserlistflex > div p {
    margin: 3px auto;
}





/* box vor teaser, z.B. hausmesse, genauso breit wie teaserlistflex*/
div#hausmesse {
    width: 800px;
    margin: 2px auto 2px auto;
    text-align: center;
}

div#hausmesse > h1 {
    margin-top: 0px;
    margin-bottom: 4px;
    background-color: #f22;
    color: #fd0;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
}


/* Störer mit pos abs irgendwo hin */
div#hausmessestoerer {
    width: 220px;
    text-align: center;
    background: red;
    color: yellow;
    border: solid 1px lightred;
    border-radius: 5px;
    position: absolute;
    top: 160px;
    left: 200px;
    transform: rotate(-35deg);
    z-index: 101;
}

div#hausmessestoerer > a {
    text-decoration: none;
    color: yellow;
}

div#hausmessestoerer > a > p {
    width: 95%;
    margin: 0px auto 0px auto;
    border: none;
    font-size: 140%;
    font-weight: bold;
    color: yellow;
}





p.validdate {
    font-weight: bold;
}


p#teaserfooter {
    clear: both;
    font-size: 90%;
    width: 30%;
    text-align: center;
    margin: 0px auto 20px auto;
}











/* Linke Spalte, nur im Zusammenhang mit rechter Spalte aendern, siehe unten bei div#adw_col_right */
/* alles ausgelegt auf min 1024 breite */

div#teaserlist {
    max-width: 776px; /* 116 + 630 + 210 (4 kasten, ist aber zu breit, also nur 3 ) */
    min-width: 776px; /* 116 + 630 +30 margin-left col_right (3 kasten) */
    margin: 0 auto;
}

div#teaserlist h2.titel {
    font-family:verdana,sans-serif;
    font-size:16px;
    background-color:#000250;
    border:solid #888;
    color:#fff;
    border-width:0px 0px 2px 0px;
    padding: 5px;
    text-align: center;
    margin: 1em 0 0.5em 0;
    clear: both;
}






div#adw_grid_left {
    /* max-width: 642px; = 3 schmale kaestchen oder 1 schmales (190+24px) 1 breites (404+24px) */
    max-width: 630px; /* war 642 */
    min-width: 630px;
    float: left;
    /* jetzt wieder null, max width braucht das nicht.*/
    /* margin-left: -18px; /* Default Margin im maincontent weg, fehlt mir hier, sonstwo ok */
}



/* Rechte Spalte, nur im Zusammenhang mit linker Spalte div#adw_grid_left aendern, siehe oben */
div#adw_col_right {
    float: left;
    width: 116px;
    min-width: 116px;
    margin: 0px 0px 0px 30px; /* li 30px nur wenn col left nur 3 kasten breit. bei 4 breit reduzieren */
    padding: 0px;
}

div#adw_col_right > a {
    display: block;
    text-decoration: none;
    text-align: center;
    border: solid 1px #888;
    border-radius: 5px;
    margin: 0px 0px 24px 0px;
    padding: 3px;
    overflow: hidden;
    min-width: 108px;
}

div#adw_col_right a:hover {
    background: #eef;
}

div#adw_col_right a b {
    font-size: 140%;
    font-weight: bold;
    text-align: center;
}

div#adw_col_right a span.fettgross {
    font-size: 140%;
    font-weight: bold;
    background: #000000;
    color: #ff0;
    padding: 2px 1em;
}

div#adw_col_right a span.preis {
    color: #444;
    background: #ff6600;
    font-weight: bold;
    padding: 0px 1em;
    border-radius: 2000px 10px 2000px 10px;
}

span.preishuebsch {
    color: #444;
    background: #ff6600;
    font-weight: bold;
    padding: 0px 1em;
    border-radius: 2000px 10px 2000px 10px;
    font-size: 130%;
}


/* Banner oben in div left */
div#winterbanner {
    width: 600px;
    height: 100px;
    min-height: 100px;
    margin: 3px auto;
    padding: 5px;
    background-repeat: no-repeat;
    background-position: 0px 0px;
    background-image:url('../images/winterbanner_bg.png');
    color: #ddd;
    font-size: 120%;
    text-align: center;
}

div#winterbanner h2 {
    color: #ddd;
    background: none;
    border: none;
    margin: 0px auto 5px auto;
    padding: 0px;
    font-weight: bold;
    font-size: 120%;
}


div#winterbanner span {
    margin-top: 5px;
    float: left;
    width: 80%;
    font-size: 90%;
    color: #ff8;
}


/* DB0WIM Status */
span.db0wimoff {
    font-size: 90%;
    color: #f00;
    display: block;
}

span.db0wimon {
    font-size: 90%;
    color: #2a2;
    display: block;
}

span.db0wimunknown {
    font-size: 90%;
    color: #aa2;
    display: block;
}

span.minus10 {
    background: #f44;
    color: #ee0;
    font-weight: bold;
    padding: 0 2px;
}

/* Neues Layout ab 20. Feb. 2014 */
div.teaser, div.teaser_graphic {
    float: left;
    width: 188px;
    margin: 0 20px 20px 0;
    border: 1px solid #bbc;
    border-radius: 5px;
    padding: 0px;
    text-align: center;
}

div.teaser {
     height: 206px;
}

div.teaser.doublewidth {
    width: 398px;
}

div.teaser h2, div.teaser_graphic h2 {
    margin: 0px 0px 3px 0px;
    padding: 0px;
    font-size: 120%;
    font-weight: bold;
    color: #555;
    background: #eee;
    border: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-bottom: solid 2px #bbb;
}

div.teaser h3, div.teaser_graphic h3  {
    margin: 0px 0px 3px 0px;
    padding: 0px;
    font-size: 110%;
    color: #555;
    background: none;
    border: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    border-bottom: solid 1px #eee;
}

div.teaser.doublewidth h3 {
    margin: 0 0 10px 0; /* mehr platz unten, bei doublewidth ist genug da weil der text nichtso schnell umbricht */
}

div.teaser img {
    margin: 0px auto;
    padding: 2px;
    max-height: 94px;
    max-width: 150px;
}

div.teaser.doublewidth img {
    float: left; /* bei doublewidth soll der text links neben dem img floaten */
}

div.teaser p {
    margin: 5px auto;
}

div.teaser p.validdate {
    clear: both;
    width: 90%;
    margin: 8px auto 0px auto;
    font-size: 80%;
    font-weight: normal;
    border: solid 1px #ddd;
}

/*
div.teaser span.alterpreis
div.teaser span.neuerpreis
jetzt in content.css
*/



/* kleine Preistabelle im Kasten, moeglichst nur iin doublewidth anwenden */
div.teaser table {
    border-collapse: collapse;
    border-spacing: 0px;
    float: right;
    padding: 0px;
    margin: 0.2em 1em 10px 1em;
}

div.teaser tr th {
    background: #cce;
    padding: 0 1em;
}

div.teaser tr td {
    text-align: left;
    padding: 0 1em;
}

div.teaser tr td.pricecol {
    text-align: right;
    padding: 0 1em;
    background-color: #FFCC99;
    background: #FFCC99;
    font-weight:bold;
}

/* kleine Preistabelle im Kasten, moeglichst nur iin doublewidth anwenden */
div.teaser table.single {
    border-collapse: collapse;
    border-spacing: 0px;
    padding: 0 0 0 5px;
    font-size: 90%;
}

div.teaser table.single tr th {
    background: #cce;
    padding: 0 0.3em;
}

div.teaser table.single tr td {
    text-align: left;
    padding: 0 0.3em;
    white-space: nowrap;
}

div.teaser table.single tr td.pricecol {
    text-align: right;
    padding: 0 0.3em;
    background-color: #FFCC99;
    background: #FFCC99;
    font-weight:bold;
}




/* Fuer Hinweise auf Feiertage, Hausmesse usw. oben drüber */
div.teaserhinweis {
    border: #ccc solid 4px;
    padding: 0.5em 1em;
    border-radius: 5px;
    margin: 5px 0px 10px 0px;
    text-align: center;
}

div.teaserhinweis h3 {
    font-size: 15px;
    margin: 0 0 5px 0;
    color: #444;
}

div.teaserhinweishalblinks {
    border: #ccc solid 4px;
    padding: 0.5em 1em;
    border-radius: 5px;
    margin: 5px 5px 10px 0px;
    width: 45%;
    height: 110px;
    float: left;
}

div.teaserhinweishalblinks h1 {
    font-size: 15px;
    margin: 0px 0px 5px 0px;
    padding: 2px;
    color: #444;
    text-align: center;
}


div.teaserhinweishalbrechts {
    border: #ccc solid 4px;
    padding: 0.5em 1em;
    border-radius: 5px;
    margin: 5px 0px 10px 5px;
    width: 45%;
    height: 110px;
    float: right;
}

div.teaserhinweishalbrechts h1 {
    font-size: 15px;
    margin: 0px 0px 5px 0px;
    padding: 2px;
    color: #444;
    text-align: center;
}

div.teaserhinweisvollebreite {
    border: #ccc solid 4px;
    padding: 0.5em 1em;
    border-radius: 5px;
    margin: 5px 5px 10px 0px;
    width: 98%;
    height: 110px;
    float: left;
}

