/* Stylesheet für die ultrakrasse Website von Christiane Haase */
:root {
    --color-1: #000;
    --color-2: whitesmoke;
    --color-3: #444;
    --text-color-1: whitesmoke;
    --text-color-2: #444;
    --text-color-3: #000;
    --text-color-4: #cf9904;
    --text-color-5: #5e1e00;
}

*
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/*Körper****************************************************/

html {
    color-scheme: dark light;
    scroll-behavior: smooth;
}
body {
    background-color: var(--color-1);
    color: var(--text-color-1);
    font-family: system-ui;
    font-size: 1.25rem;
    line-height: 1.5;
    margin: 0;
}
h1 {
    color: var(--text-color-5);
}
h2 {
    font-family: 'Rubik Glitch';
    color: var(--text-color-5);
}

/*Kopf****************************************************/

header {
    background-color: var(--color-1);
    padding: 0rem;
    width: 100%;
    height: 67px;
    position: fixed;
    top: 0;
    left: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 3;
}

header::after {
    content: '';
    display: table;
    clear: both;
}

/*Navi****************************************************/

.logo {
    float: left;
    margin-left: 20px;
    padding-top: 15px;
    text-decoration: none;
    text-transform: uppercase;
    color: #444;
    height: 40px;
}

nav {
    height: 60px;
    background-color: var(--color-1);
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.links-container {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
}
nav a {
    height: 100%;
    padding: 0 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color-1);
    text-transform: uppercase;
}
nav a:hover {
    color: var(--text-color-2);
}

nav .home-link{
    margin-right: auto;
}
nav svg{
    fill: var(--text-color-1);
}

#sidebar-active{
    display: none;
}
.open-sidebar-button, .close-sidebar-button{
    display: none;
}
@media(max-width:700px){
    .links-container{
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 250px;
        background-color: var(--color-1);
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }
    nav a{
        box-sizing: border-box;
        height: auto;
        width: 100%;
        padding: 20px 30px;
        justify-content: flex-start;
    }
    .open-sidebar-button, .close-sidebar-button{
        padding: 20px;
        display: block;
    }
    #sidebar-active:checked ~ .links-container{
        right: 0;
    }
    #sidebar-active:checked ~ #overlay{
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }
}

/*Körperteile****************************************************/

.wrapper {
   max-width: 50rem;
   margin-inline: auto;
   padding-inline: 1rem;
}

.site-title {
    font-size: 1.5rem;
    text-align: left;
}

.section-title {
    font-size: 2.25rem;
}
section {
    padding-block: 5rem;  
    max-width: 100%;
}
#home {
    min-height: 80svh;
}

.diagonal-left {
    --skew-angle: -5deg;
    --background: linear-gradient(
        45deg,
        #cf9904,
        #FCD751,
        #087750
    );

    position: relative;
    isolation: isolate;
}

.diagonal-left::after{
    content: '';
    background: var(--background);
    position: absolute;
    z-index: -1;
    inset: 0;
    transform: skewY(var(--skew-angle));   
}

.diagonal-right {
    --skew-angle: 5deg;
    --background: linear-gradient(
        45deg,
        #cf9904,
        #FCD751,
        #087750
    );

    position: relative;
    isolation: isolate;
}

.diagonal-right::after{
    content: '';
    background: var(--background);
    position: absolute;
    z-index: -1;
    inset: 0;
    transform: skewY(var(--skew-angle));   
}

/*Home****************************************************/

#home {
    background-image: url('img/goldener-pfau-kunst.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-origin: padding-box;
    max-width: 100%;
    height: auto;
    background-attachment: fixed;
}

@media screen and (max-width:668px){
    #home {
        background-image: url('img/goldener-pfau-kunst-kl.jpg');
    }
}

.vertical {
    font-family: 'Rubik Glitch';
    margin-top: -4em;
    writing-mode: vertical-lr;
    text-align: right; 
    color: var(--text-color-5);
    font-size: 1.8em;
    padding-left: 75%;
    text-transform: uppercase;
    text-shadow: 2px 2px 23px #ffffff; 
}

.rotate {
    font-family: 'Rubik Glitch';
    margin-top: 1em;
    font-size: 1.8em;
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    color: var(--text-color-3);
    padding-right: 65%;
    text-transform: uppercase;
    text-shadow: 2px 2px 23px #ffffff; 
}

/*Schriftarten****************************************************/

/* rubik-glitch-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: 'Rubik Glitch';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/rubik-glitch-v2-latin-regular.eot'); /* IE9 Compat Modes */
    src: url('../fonts/rubik-glitch-v2-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
         url('../fonts/rubik-glitch-v2-latin-regular.woff2') format('woff2'), /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
         url('../fonts/rubik-glitch-v2-latin-regular.woff') format('woff'), /* Chrome 5+, Firefox 3.6+, IE 9+, Safari 5.1+, iOS 5+ */
         url('../fonts/rubik-glitch-v2-latin-regular.ttf') format('truetype'), /* Chrome 4+, Firefox 3.5+, IE 9+, Safari 3.1+, iOS 4.2+, Android Browser 2.2+ */
         url('../fonts/rubik-glitch-v2-latin-regular.svg#RubikGlitch') format('svg'); /* Legacy iOS */
  }

  /*footer******************************************************/

footer {
    background-color:     var(--color-1)   ;
    color: antiquewhite;
    padding: 0.5rem;
    text-align: center;  
}
footer a {
    color: antiquewhite;
    font-size: smaller;
    text-decoration: none;
    
}

#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 13px;
    border: none;
    outline: none;
    background-color: var(--color-3);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
    opacity: 40%;
  }
  
  #myBtn:hover {
    background-color: var(--color-1);
  }

  /*Bildgalerie****************************************************/

.bildgalerie {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding-left: 0%;
    margin-left: 50;
    margin-right: 50;
}
.bild {
    text-align: center;
    list-style: none;
    padding: 0.5rem;
}
.bild h3 {
    background: var(--color-2);
    color: var(--color-1);
    font-size: 1.25rem;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Rubik Glitch';
}
.bild img {
    width: auto;
    height: 17rem;
  }

.bild img:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}
.bild2 img {
    width: 90%;
    height: auto;
  }

.bild2 img:hover {
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -o-transform: scale(1.1);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
}

.bild2 {
    text-align: center;
    list-style: none;
    padding: 0.5rem;
}
.bild2 h3 {
    background: var(--color-2);
    color: var(--color-1);
    font-size: 1.25rem;
    padding: 1rem;
    border-radius: 5px;
    font-family: 'Rubik Glitch';
}

#vita {
    background-image: url('img/werkstatt.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-origin: padding-box;
    max-width: 100%;
    height: auto;
    background-attachment: fixed;
}

@media screen and (max-width:668px){
    #vita {
        background-image: url('img/werkstatt-kl.jpg');
    }
}

#contact {
    text-align: center;
    color: var(--text-color-5);
}
#vitabeginn {
    text-align: center;
    color: var(--text-color-5);
}



