* {
    box-sizing: border-box;
    margin: 0;
    /* padding: 0;*/
}

/* source-sans-3-300 - latin */
@font-face {
    font-display: swap; 
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/source-sans-3-v18-latin-300.woff2') format('woff2'); 
}
/* source-sans-3-regular - latin */
@font-face {
    font-display: swap; 
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/source-sans-3-v18-latin-regular.woff2') format('woff2'); 
}
/* source-sans-3-500 - latin */
@font-face {
    font-display: swap; 
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/source-sans-3-v18-latin-500.woff2') format('woff2'); 
}
/* source-sans-3-600 - latin */
@font-face {
    font-display: swap; 
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/source-sans-3-v18-latin-600.woff2') format('woff2'); 
}
/* source-sans-3-700 - latin */
@font-face {
    font-display: swap; 
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/source-sans-3-v18-latin-700.woff2') format('woff2'); 
}
/* source-sans-3-800 - latin */
@font-face {
    font-display: swap; 
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/source-sans-3-v18-latin-800.woff2') format('woff2'); 
}

/* amatic-sc-regular - latin */
@font-face {
    font-display: swap; 
    font-family: 'Amatic SC';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/amatic-sc-v27-latin-regular.woff2') format('woff2'); 
}

html {
    scroll-behavior: auto !important;
}

body {
    font-family: 'Source Sans 3', sans-serif; 
    line-height: 1.6;
    background: #fdfdfd;
    color: #222;
    font-size: 1.1em;
    font-weight:400;
}
.page-wrapper {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 0px;
}


h1, h2, h3 {
    margin:0px 0px 5px 0px;
    font-family:'Amatic SC', cursive;
    font-weight:bold;
    color:#436479;
}
h1 {font-size:60px !important;padding: 0 10px;}
h1.white {color:#fff !important;padding: 0 10px;}
h2 {font-size:50px !important;margin-top:40px;}
h3 {font-size:2.1em; color:#222;}

h2 span {position:relative;}
h2 span:before {
    content:"";
    width:100px;
    height:100px;
    position:absolute;
    top: -43px;
    right: -94px;
    background-image:url('../images/pinsel_h2.png');
    background-repeat:no-repeat;
}

h2:after {
    content: "";
    border-top: 2px solid #405f73;
    width: 50px;
    display: block;    
    margin-top: 20px;
    margin: 50px auto;
}

strong {font-weight:600 !important;}

a, a:link{
    color:#f39c12;
    border-bottom:1px dotted #f39c12;
    display:inline-block !important;
    width: fit-content;
}

a:hover {
    color:#f39c12;
    border-bottom:1px solid #f39c12;
    text-decoration: none;
}

a.tel { 
    color: #222;
    border-bottom:none !important;
}
a.tel.white {color:#fff !important;}


#logo-area {
    position: absolute;
    top: 10px;
    left:30px;
    z-index: 1000;
    animation: floatBubble 2s;
    animation-fill-mode: forwards;       
}

@keyframes floatBubble {
    0% {
        top: -50px;
        -webkit-animation-timing-function: ease-in
    }

    33% {
        top: 10px;
        -webkit-animation-timing-function: ease-out
    }

    66% {
        top: -10px;
        -webkit-animation-timing-function: ease-in
    }

    100% {
        top: 10px;
        -webkit-animation-timing-function: ease-in
    }
}

@keyframes floatBubbleSm {
    0% {
        top: -100px;
        -webkit-animation-timing-function: ease-in
    }

    33% {
        top: -50px;
        -webkit-animation-timing-function: ease-out
    }

    66% {
        top: -60px;
        -webkit-animation-timing-function: ease-in
    }

    100% {
        top: -50px;
        -webkit-animation-timing-function: ease-in
    }
}

header {       
    padding: 1rem 2rem;   
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

nav a {
    color: #222 !important;
    text-decoration: none;
    transition: color 0.3s;
    border-bottom: none !important;
}

nav a:hover {
    color: #f39c12 !important;
    border-bottom:1px dotted #f39c12 !important;
}

.nav-item.active a {   
    color: #f39c12 !important;
    border-bottom:1px solid #f39c12 !important;
    cursor:default;
}

.hero {
    background: url('../images/malatelier.jpg') center/cover no-repeat;
    color: white;
    text-align: center;

}
.hero .background {
    background: url('../images/mal_bg_neu.png');
    padding: 8rem 2rem;
    background-position: bottom center;
    background-repeat: repeat-x;
    background-size: 70%;
}

.hero-text {
    background-color: rgba(0, 0, 0, 0.5);
    display: inline-block;
    padding: 2rem;
    border-radius: 10px;
}

.btn, btn:visited {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #f39c12;
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    transition: transform 0.3s ease, background-color 0.3s ease;      
}
.btn:hover {
    color:#fff;
    transform: scale(1.05);
}

section, header {
    background-image:url(../images/bg_pixel_neu.jpg);
    background-repeat:repeat;
}


.ferien {
    background: #dbe7db;
    text-align: center;
    background-image:url(../images/mal_bg_2.png);
    background-repeat:repeat !important;
    background-size:auto !important;
}

/* Kurse */

.kurse {    
    background: #dbe7db;
    text-align: center;
    background-image:url(../images/mal_bg_1.png);
    background-repeat:repeat !important;
    background-size:auto !important;
    padding:0 15px;
}

.kurse_bg {
    background-image:url(../images/mal_bg_neu_oben.png);
    background-repeat:repeat-x;
    background-position: top center;
    background-size:40%;
    padding: 4rem 0rem 2rem 0rem;
}

.kurs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    margin-left:10px;
    margin-right:10px;
}

.kurs-box, .themen-box {
    background: white;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 20%;
    min-width:300px;    
}

.kurs-box h3, .themen-box h3 {
    font-family: 'Amatic SC', cursive;
    font-weight: bold;
    font-size: 2.1em;
    text-align: center;
    display: block;
    margin-top: 10px; 
}


.kurs-box p, .themen-box p {
    min-height:80px;
}




/* nanogallery2 */

.galerie {
    padding: 4rem 2rem;
    background-color: #fff;
    text-align: center;
}

.nanogallery_gallerytheme_light_nanoGallery .nGY2GThumbnail {
    border-radius: 0px;
    background: #fff !important;
    border-color: #fff !important;
}



/* Über uns */

#ueber-uns {
    padding: 40px 20px;
    background-color: #f9f9f9;
}

#ueber-uns .ueberschrift {
    text-align:center;
}

.ueber-mich-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 50px auto;
    gap: 20px;
    align-items: flex-start;
}
.ueber-mich-bild {
    text-align:center;
    margin-bottom:10px;
}
.ueber-mich-bild img.bild {
    width: 200px;
    height: 200px;
    border-radius: 50%; /* macht das Bild rund */
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);    
}

.ueber-mich-bild p {
    text-align:left;
}

.ueber-mich-bild .name {
    font-family: 'Amatic SC', cursive;
    font-weight: bold;
    font-size: 2.5em;
    text-align: center;
    display: block;    
}

.ueber-mich-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.ueber-mich-text p {
    font-size: 1.1em;
    line-height: 1.6;
}

.slide-in-left, .slide-in-right {
    opacity: 0;
    transform: translateX(-100px); /* bzw. +100px für .slide-in-right */
    transition: all 1s ease-out;
}

.slide-in-right {
    transform: translateX(100px);
}

.slide-in-left.visible, .slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.ueberschrift-neu {
    position: relative;
    display: inline-block;
    text-align: center;
}

.ueberschrift-neu::after {
    content: "NEU";
    position: absolute;
    top: -10px;
    right: -50px;
    background-color: #c91829;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.text-box {
    background: white;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 10px;

}


/* FOOTER */

.footer-modern {
    background: #2c3e50;
    color: white;
    padding: 3rem 0 2rem 0;
    font-size: 0.95rem;    
}

.footer-modern a {
    color: #ffffff !important;
    text-decoration: none !important;
    margin: 0.25rem 0;
    border-bottom:1px solid transparent !important;
}

.footer-modern a:hover { 
    color: #f39c12 !important;
    border-bottom: 1px dotted #f39c12 !important;
}


.footer-modern a:hover {
    text-decoration: underline;
}

.footer-nav a {
    display: block;
}

/* Scoll-Up */

#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: #c91829;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: opacity 0.3s ease;
}

#scrollToTop:hover {
  background-color: #a31422;
}

#scrollToTop:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}



/* Media Queries */

@media (min-width: 1920px) {
    .page-wrapper {
        max-width: 1920px;
        margin: 0 auto;
    }
}


@media (max-width: 991.98px) {
    #logo-area img {
        width: 200px !important;
    }
    header {
        padding-left:0px !important;
        padding-right:0px !important;;
    }
}
@media (max-width: 768px) {    

    #logo-area img {
        width: 200px !important;
    }
    .footer-modern .flex-column {   
        align-items: center;
    } 
    
    header {
        padding:0;
        padding-right:20px !important;
        padding-left:20px !important;
    }
    header .container {padding:0 !important;}
    .navbar {padding:30px 0px 30px 0px;}
    nav ul {gap:0px;}
    .nav-item {
        text-align:right !important;
        border-bottom: 1px solid #f39c12 !important;
    }

    .nav-item.active a {       
        border-bottom: none !important;       
    }
    .nav-item a:hover {
        border-bottom: none !important;
    }
}
@media (max-width: 576px) {
    #logo-area img {
        width: 200px !important;
    }

    .footer-modern .flex-column {   
        align-items: center;
    }   

    h2 span:before { 
        top: -8px;
        right: -45px;
        background-size: 130%;
        width: 50px;
        height: 100px;
    }
    
    .hero .background {  
        background-size: 200%;
    }
    
    .ueberschrift-neu::after {    
        right: 0px;    
    }
    .themen-box {
        width:100%;    
        min-width:fit-content;
        text-align: center;
    }

}



