/*
Theme Name: Basecamp - Selbsthilfegruppe
Author: Frank Hempel
Author URI: https://frank-hempel.de
Description: A classic basic theme with header resizing and back-to-top button
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basic-2025
Domain Path: /languages
Tags: blog, custom-header, custom-menu, featured-images, flexible-header, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* open-sans-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    src: url('inc/fonts/open-sans-v40-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* oleo-script-regular - latin */
@font-face {
  font-family: 'Oleo Script';
  font-style: normal;
  font-weight: 400;
  src: url('inc/fonts/oleo-script-v14-latin-regular.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('inc/fonts/oleo-script-v14-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('inc/fonts/oleo-script-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('inc/fonts/oleo-script-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('inc/fonts/oleo-script-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('inc/fonts/oleo-script-v14-latin-regular.svg#OleoScript') format('svg'); /* Legacy iOS */
}

/* oleo-script-700 - latin */
@font-face {
  font-family: 'Oleo Script';
  font-style: normal;
  font-weight: 700;
  src: url('inc/fonts/oleo-script-v14-latin-700.eot'); /* IE9 Compat Modes */
  src: local(''),
       url('inc/fonts/oleo-script-v14-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('inc/fonts/oleo-script-v14-latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('inc/fonts/oleo-script-v14-latin-700.woff') format('woff'), /* Modern Browsers */
       url('inc/fonts/oleo-script-v14-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('inc/fonts/oleo-script-v14-latin-700.svg#OleoScript') format('svg'); /* Legacy iOS */
}


/* Basic formatting */

h1 {
    font-size: 1.6em;
    margin: 0 0 0.5em 0;
}
h2 {
    font-size: 1.3em;
    margin: 0 0 0.5em 0;
}
h3 {
    font-size: 1.1em;
    margin: 0 0 0.5em 0;
}
h4 {
    font-size: 1em;
    margin: 0 0 0.5em 0;
}

main, header, nav, div, section, article, dl, dt, footer {
    box-sizing: border-box;
}

p {
    margin: 0.5rem 0 1rem 0;
}

a {
    text-decoration: none;
    color: #333;
}
a[target="_blank"]:after {
            content: "";
            background-image: url(inc/pics/external_link_icon.png);
            background-repeat: no-repeat;
            background-size: contain;
            width: 0.6em;
            height: 0.6em;
            margin-bottom: 0.2em;
            margin-left: 0.2em;
            display: inline-block;
        }


a[href^="tel"],
a[href^="tel"]:hover {
    text-decoration: none;
    border:none;
    cursor: text;
}

nav a[href=""], nav a[href=""]:hover {
    cursor: text;
}

ul, ol {
    margin-left: 1em;
    margin-top: 0.5em;
    margin-bottom:0.5em;
}
ul ul, ul ol, ol ol, ol ul {
    margin-top: 0;
    margin-bottom:0;
}

img {
    max-width: 100%;
    height:auto;
}

iframe {
    max-width: 100%;
}

pre {
 white-space: pre-wrap;
}

.clearfloat {
    clear: both;
    display:block;
    float:none;
}


/* styling */

body {
    box-sizing: content-box;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 1rem;
    border-bottom: 1px solid transparent; /* always display vertical scrollbar */
    font-family: Verdana, Geneva, sans-serif;

/* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#f8ed2f+0,f7931d+100 */
background: linear-gradient(to bottom,  #f8ed2f 0%,#f7931d 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */

    background-attachment: fixed;
    scroll-behavior: smooth;
}

.wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    }

.inner,
.main-nav > div  {
    max-width:1064px;
    margin:auto;

}

header {

    position: sticky;
    top:0;
    z-index: 9999;
    border-bottom: 5px solid #00AEEF;

}

header .inner {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF;
}

header .inner .title {
    text-align: center;
}
header .inner .logo {
    padding-right: 1em;
}

header .inner h1 {
    font-size: 2.8em;
    line-height: 1em;
    margin:0;
    font-weight: normal;
    font-family: 'Oleo Script';
    color: #BE1E2D;
}
header .inner h1 a {
    color: #BE1E2D;
}
header .inner h2 {
    font-size: 1.4em;
    line-height: 1em;
    margin:0;
    font-weight: normal;
    font-family: 'Oleo Script';
    color: #679D34;
}
header .inner h2 a {
     color: #679D34;
}


header .inner a {
    cursor: pointer;
    border-bottom: none;
}
header .inner a:hover {
    border-bottom: none;
}

.home header .inner a {
    cursor: default;
}

header .inner h2 {
    margin:0;
    font-size: 1.8em;
}

/* Header resizing */

header.size-header .inner {
    padding: 0.5em 0;
}

@keyframes size-logo {
    from {height:180px;}
    to {height: 100px;}
}

header.size-header  img {
    animation-name: size-logo;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    width: auto;
}

@keyframes logo-size {
    from {height:100px;}
    to {height: 180px;}
}

header img {
    animation-name: logo-size;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    width: auto;
}

header .logo-rechts {
    margin-left: 1em;
}



@keyframes size-headings {
    from {font-size: 1rem;}
    to {font-size: 0.6rem;}
}

header.size-header .inner {
    animation-name: size-headings;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes headings-size {
    from {font-size: 0.6rem;}
    to {font-size: 1rem;}
}
header .inner {
    animation-name: headings-size;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}



header.size-header .main-nav .inner {
    padding: 0;
}
header.size-header .main-nav li {
    font-size: 1.2rem;
}
header .main-nav li {
    font-size: 1.2rem;
}



/* Menu */
.main-nav {
    border-top: 1px solid #00AEEF;
    background-color: rgba(100,70,100,0.1) ;
}


.main-nav .inner {
    padding:0;
    display: block;

}
.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    margin:0;
    padding:0;
    position: relative;
}
.main-nav li {
    list-style: none;
    font-size: 1.2em;
}

.main-nav a {
    display:block;
    text-decoration: none;
    padding: 0.1em 1em;
    transition: color 0.5s;
    border-bottom: none;
}
.main-nav a:hover {
    color: #0083B2;
}

/* Submenu */

.main-nav .sub-menu {
    font-size: 0.9em;
    display:block;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #999;
    background-color: #fff;
}
.main-nav .sub-menu li {
    border: none;
}

.main-nav li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

.main-nav  .sub-menu .sub-menu {
    position: absolute;
    left: 96%;
    margin-top: -1.2em;
    white-space: nowrap;
    border-top: 1px solid #ccc;
}

.main-nav .menu > li:last-child  .sub-menu .sub-menu .sub-menu{
left: -50%;
}

main .inner {
    padding: 1rem;
    line-height: 1.3em;
    height: 100%;
    background-color: #fff;
}

h2.article-headline {
    font-size: 1.7em;
    line-height: 1em;
    font-weight: normal;
}

article {
    background-color: rgba(255,255,255,0.8);
    padding: 2rem;
    margin: 0 0 1rem 0;
    border-radius: 0.7rem;
}
article h3 {
    font-family: 'Oleo Script';
    font-size: 1.5em;
    line-height: 1em;
    font-weight: normal;
    color: #666;
}

.hinweis {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1em;
    border: 1px solid #cc0000;
    box-shadow: 0.2em 0.2em 1em rgba(0,0,0,0.4);
}
.hinweis a {
    display:block;
    text-align:center;
    font-style: italic;
    line-height: 1.2em;
    padding: 1em;
    border: none;
    text-decoration: underline;
}
.hinweis a:hover {
    border:none;
}

.page-template-wenig-text article {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100% - 2.5rem);
}

.home.page-template-wenig-text article {
    min-height: 100% ;
}



.blog article {
    border-bottom: 1px solid #666;
}

.wp-post-image {
    float: left;
    margin-right: 1em;
}

article p {
    margin: 0 0 0.3em 0;
}

article h2 {
    font-weight: normal;
}

.article-date {
    margin:0;
    font-size:0.85em;
    text-align: right;
}

.blog article {
    padding: 1rem;
}

.blog .article-date {
    float:right;
}

article h4  {
    float:none;
    clear:both;
    display:block;
    margin-top: 0.5em;
    border-top: 1px solid #999;
    padding-top: 0.5em;
}

article a {
    border-bottom: 1px dotted #333;
}
article a:hover {
    border-bottom: 1px solid #333;
}

.video-block{
    position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
    }
.video-block iframe,
.video-block object,
.video-block embed,
.video-block video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    }

.wenig-text article {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 7em;
}

.read-more, .read-more p, .comments-link {
    text-align: right;
    margin:0;
    padding:0;
    clear:both;
    float:none;
    font-size: 0.85em;
}
.read-more, .read-more p {
    font-weight: bold;
}

p.read-more {
    margin: 2em 0 0 0;
    font-size: 1em;
}
p.read-more a {
    border: none;
}

/* Comments */
#respond {
    margin-top:2em;
    padding-top: 0.5em;
    border-top: 1px solid #999;
}

#comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #999
}

#commentform label {
    display:block;
    font-size: 0.85em;
    }
#commentform input,
#commentform textarea {
    width: 60%;
}
.comment-form-cookies-consent {
    display:none;
}
#commentform input#submit {
    width: auto;
    font-size: 0.9em;
    padding: 0 1em;
}

/* Naechster - vorheriger Artikel */
.next-previous-post {
    display: flex;
    justify-content: space-around;
    margin-top: 1em;
}

.next-previous-post p {
    margin: 0;
}





/* Pfeil nach oben  */

#smoothup {
height: 45px;
width: 45px;
border-radius:45px;
position:fixed;
bottom:30px;
left:calc(50% + 560px);
text-indent:-9999px;
display:none;
background-image: url("inc/icons/top-icon-white.png");
background-color: #00AEEF;
background-size: 100%;
-webkit-transition-duration: 0.4s;
-moz-transition-duration: 0.4s; transition-duration: 0.4s;
outline: none;
border-bottom:none;
opacity: 0.8;
}

#smoothup::after {
        height: 100px;
}

#smoothup:hover {
-webkit-transform: rotate(360deg);
opacity: 1;

}
@media screen and (width < 1140px) {

#smoothup {
left:calc(100% - 50px);
}

}


/* Footer */

footer {

}
footer .inner {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.85rem;
    line-height: 1.2em;
    padding: 2em 0 1em;
    background-color: #fff;
    margin-top: 1px;
}
footer .inner div, footer .inner nav {
    margin: 0 1rem 1rem 0;
}
footer .inner div:first-child {
    margin: 0 1rem 1rem 1rem;
}

footer .inner .textwidget p {
    margin: 0.2em 0;
}

footer .inner nav div {
    margin:0;
}

footer h2 {
    margin:0;
    font-size: 1.3em;
    font-weight: normal;
    margin-bottom: 0.2em;
}

footer p {
    margin:0.3em 0;
    line-height: 1.1em;
}

footer .menu {
    white-space: nowrap;
}

footer .menu li,
footer .copyright li {
    list-style: none;
}

footer a {
    color: #666;
    text-decoration: underline;
}
footer a:hover {
    color: #006DA3 ;
    text-decoration: underline;
}

footer ul, footer li {
    margin:0;
    padding:0;
}

@media screen and (width < 1140px) {

#smoothup {
left:calc(100% - 50px);
}

}



@media screen and (width<900px) {
#commentform input,
#commentform textarea {
    width: 70%;
}
header h1 {
     line-height: 1.2em;
}

}

@media screen and (width<640px) {
.menu-header-search {
display:none;
}
#commentform input,
#commentform textarea {
    width: 80%;
}
header .inner h1 {
    font-size: 2em;

}

header img {
    height: 120px;
    width: auto;
}
header .header-rechts img {
    width: auto;
    height: auto;
}

@keyframes size-logo {
    from {height:120px;}
    to {height: 90px;}
}

header.size-header img {
    animation-name: size-logo;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    width:auto;
}

}

@media screen and (width<480px) {
#commentform input,
#commentform textarea {
    width: 100%;
}

header h1 {
    font-size: 2.3rem;
    line-height: 1.2em;
    text-align: center;
}

header .inner {
    display: block;
}
.custom-logo, .logo-rechts img {
    display: block;
    margin: auto;
}


}

