@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

:root{
    --text-color: #000;
    --secondary-text: #666;
    --dashed-color: #888;
    --hover-color: #4361ee;
    --primary-color: #2d6a4f;
    --accent-color: #db7c26;
    --background-color: #f8f8fa;
    --secondary-background: #fff;
    --content-accent: #fff2b2;
    --nth-child2: #f72585;
    --nth-child3: #4361ee;
    --header-color: #ffffff;
    --icon: #eaf4f4 ;
    --footer: #ccc;
}

.darkmode {
    --text-color: #fff; /* Weiß für guten Kontrast */
    --secondary-text: #aaa; /* Hellgrau für sekundären Text */
    --dashed-color: #666; /* Grautöne für dezente Elemente */
    --hover-color: #4cc9f0; /* Helle Variante des Hover-Farbtons */
    --primary-color: #52b788; /* Angepasstes Grün für Dunkelmodus */
    --accent-color: #a17400; /* Kräftigeres Orange für Akzente */
    --background-color: #121212; /* Sehr dunkles Grau als Basis */
    --secondary-background: #1e1e1e; /* Etwas helleres Grau für Kontraste */
    --content-accent: #f7df83; /* Angepasst für angenehmen Kontrast */
    --nth-child2: #f72585; /* Beibehalten, da kräftig und gut sichtbar */
    --nth-child3: #4361ee; /* Auch beibehalten für Konsistenz */
    --header-color: #1e1e1e; /* Dunkelgrau für Kopfbereich */
    --icon: #d8fdfd; /* Helleres Blaugrün für Icons */
    --footer: #333; /* Gedämpftes Dunkelgrau */
    --strong: #ddd; /* Helleres Grau für hervorgehobenen Text */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Lato', sans-serif;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--hover-color);
}

a img{
    transition: all 0.5s ease;
}

a img:hover{
    transition: all 0.5s ease;
    transform: scale(1.1);
}

body {
    background-color: var(--background-color);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    height: 80px;
    background-color: var(--secondary-background);
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
}

nav ul{
    width: 100%;
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  nav li{
    height: 50px;
  }
  nav a{
    height: 100%;
    padding: 0 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    display: flex;
    gap: 20px;
    font-size: 15px;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  nav a:hover{
    color: var(--hover-color);
  }
  nav li:first-child{
    margin-right: auto;
  }
  .sidebar{
    position: fixed;
    font-family: 'Lato', sans-serif;
    display: flex;
    gap: 20px;
    font-size: 15px;
    font-weight: bold;
    top: 0; 
    left: 0;
    height: 45vh;
    width: 175px;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
    list-style: none;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    row-gap: 5px;
    z-index: 200;
  }
  .sidebar li{
    width: 100%;
  }
  .sidebar a{
    width: 100%;
    font-size: 17px;
  }
  .menu-button{
    display: none;
    height: 40px;
    width: 40px;
  }

  nav .left ul li a i{
    padding-top: 20px;;
    height: 60px;
    width: 60px;
  }

nav .left {
    display: flex;
    align-items: center;
    gap: 20px;
}

nav .left .logo img {
    width: 48px;
    height: 48px;
    object-fit: cover;
}

nav .left .links {
    display: flex;
    gap: 10px;
    font-size: 15px;
    font-weight: bold;
}

nav .buttons {
    display: flex;
    gap: 14px;
}

nav .buttons a {
    background-color: var(--icon);
    padding: 10px;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 18px;
}

#theme-switch{
    padding: 0;
    border-radius: 50%;
    background-color: var(--icon);
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
}
#theme-switch a{
    fill: var(--primary-color)
}

#theme-switch a:last-child{
    display: none;
}
.darkmode #theme-switch a:first-child{
    display: none;
}
.darkmode #theme-switch a:last-child{
    display: flex;
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
    justify-content: center;
    text-align: center;
    gap: 26px;
    background-color: var(--secondary-background);
    opacity: 0.8;
    background-image: radial-gradient(var(--primary-color) 0.75px, transparent 0.75px), radial-gradient(var(--primary-color) 0.75px, var(--header-color) 0.75px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

header .info h1 {
    font-weight: 900;
    background: transparent;
    color: var(--text-color)
}

header .info p {
    color: var(--secondary-text);
    font-size: 18px;
    margin-top: 14px;
    font-weight: bold;
    background: transparent;
}

header .info p a{
    color: var(--secondary-text);
    font-size: 18px;
    margin-top: 14px;
    font-weight: bold;
    background: transparent;
    word-spacing: 0px;
}

header .info p a:hover{
    color: var(--hover-color);
    word-spacing: 3px;
}

header .search {
    position: relative;
    width: 30%;
    margin-top: 10px;
}

header .search input {
    width: 100%;
    padding: 18px 20px;
    border: none;
    border-radius: 18px;
    box-shadow: 0px 4px 70px -10px rgba(0, 0, 0, 0.6);
    outline: none;
}

header .search button {
    position: absolute;
    right: 0;
    padding: 12px;
    font-size: 24px;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

.content {
    background-color: var(--background-color);
    padding: 100px 80px 0;
}

.content .separator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.content .separator h2{
    color: var(--text-color)
}

.content .separator a,
.content .articles .item .bottom a {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--primary-color);
    font-size: 14px;
}

.content .separator a i,
.content .articles .item .bottom a i {
    font-size: 18px;
}

.content .courses,
.content .podcasts {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    row-gap: 20px;
    margin-bottom: 100px;
}

.content .courses .item,
.content .podcasts .item {
    width: 30%;
}

.content .podcast-search{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    row-gap: 20px;
    margin-bottom: 100px;
}
.content .podcast-search .item{
    width: 30%;
}
.content .podcast-search .item .top,
.content .podcast-search .item .bottom{
    display: flex;
    gap: 10px;
    background-color: var(--secondary-background);
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    border-bottom: 1px dashed var(--dashed-color);
}
.content .podcast-search .item .top i {
    font-size: 40px;
    background-color: var(--accent-color);
    padding: 12px;
    color: var(--secondary-background);
    border-radius: 10px;
}
.content .podcast-search .item .top .info a {
    display: block;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.4rem;
}
.content .podcast-search .item .top .info p {
    color: var(--secondary-text);
    font-size: 13px;
    margin-bottom: 2px;
}
.content .podcast-search .item .bottom{
    border-bottom: none;
    justify-content: space-between;
    border-top: 1px dashed var(--dashed-color);
}
.content .podcast-search .item .bottom .duration p,
.content .podcast-search .item .bottom .duration i{
    color: var(--secondary-text)
}
.content .podcast-search .item .bottom h5{
    font-weight: 500;
    background-color: var(--content-accent);
    color: var(--accent-color);
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
}
.content .podcast-search .item .bottom h5 span{
    font-weight: bold;
}
.content .podcast-search .item:nth-child(2) .top i {
    background-color: var(--nth-child2);
}

.content .podcast-search .item:nth-child(3) .top i {
    background-color: var(--nth-child3);
}

.content .podcast-search .item .bottom h5 {
    background-color: var(--content-accent);
    color: var(--accent-color);
}

.content .article-search{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    row-gap: 20px;
    margin-bottom: 100px;
}
.content .article-search .item{
    width: 32%;
}
.content .article-search .item .top,
.content .article-search .item .bottom{
    display: flex;
    gap: 10px;
    background-color: var(--secondary-background);
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    border-bottom: 1px dashed var(--dashed-color);
}
.content .article-search .item .top {
    flex-direction: column;
}
.content .article-search .item .top a img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.5s ease;
}
.content .article-search .item .top a img:hover {
    transform: scale(1.05);
    transition: all 0.5s ease;
}
.content .article-search .item .bottom a i {
    font-size: 18px;
}
.content .article-search .item .bottom a {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--primary-color);
    font-size: 14px;
}
.content .article-search .item .bottom {
    border-bottom: none;
    justify-content: space-between;
    border-top: 1px dashed var(--dashed-color);
}
.content .article-search .item .bottom h5{
    font-weight: 500;
    background-color: var(--content-accent);
    color: var(--accent-color);
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
}
.content .article-search .item .bottom h5 span {
    font-weight: bold;
}

.content .courses-search{
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    row-gap: 20px;
    margin-bottom: 100px;
}

.content .courses-search .item{
    width: 50%;
}

.content .courses-search .item .top,
.content .courses-search .item .bottom{
    display: flex;
    gap: 10px;
    background-color: var(--secondary-background);
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    border-bottom: 1px dashed var(--dashed-color);
}

.content .courses .item .top,
.content .courses .item .bottom,
.content .podcasts .item .top,
.content .podcasts .item .bottom,
.content .articles .item .top,
.content .articles .item .bottom {
    display: flex;
    gap: 10px;
    background-color: var(--secondary-background);
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    border-bottom: 1px dashed var(--dashed-color);
}

.content .courses .item .top img,
.content .courses-search .item .top img{
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.content .courses .item .top .info a,
.content .courses-search .item .top .info a,
.content .podcasts .item .top .info a {
    display: block;
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 8px;
    line-height: 1.4rem;
}

.content .courses .item .top .info p,
.content .courses-search .item .top .info p,
.content .podcasts .item .top .info p {
    color: var(--secondary-text);
    font-size: 13px;
    margin-bottom: 2px;
}

.content .courses .item .bottom,
.content .courses-search .item .bottom,
.content .podcasts .item .bottom,
.content .articles .item .bottom {
    border-bottom: none;
    justify-content: space-between;
    border-top: 1px dashed var(--dashed-color);
}

.content .courses .item .bottom .price p,
.content .courses-search .item .bottom .price p {
    color: var(--secondary-text);
    font-size: 13px;
}

.content .courses .item .bottom .price h5{
    color: var(--secondary-text)
}

.content .podcasts .item .bottom .duration p,
.content .podcasts .item .bottom .duration i{
    color: var(--secondary-text)
}

.content .courses .item .bottom h5.tag,
.content .courses .item .bottom .discount>h5,
.content .courses-search .item .bottom h5.tag,
.content .courses-search .item .bottom .discount>h5,
.content .podcasts .item .bottom h5,
.content .articles .item .bottom h5,
.content .about .item .bottom a {
    font-weight: 500;
    background-color: var(--content-accent);
    color: var(--accent-color);
    padding: 10px;
    border-radius: 12px;
    font-size: 13px;
}

.content .courses .item .bottom h5.tag span,
.content .courses .item .bottom .discount>h5 span,
.content .courses-search .item .bottom h5.tag,
.content .courses-search .item .bottom .discount>h5,
.content .podcasts .item .bottom h5 span,
.content .articles .item .bottom h5 span {
    font-weight: bold;
}

.content .comments {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 0 100px;
}

.content .comments>p {
    width: 65%;
    color: var(--primary-color);
    font-size: 20px;
}

.content .comments .right {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    row-gap: 14px;
}

.content .comments .right .item {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--secondary-background);
    padding: 8px;
    width: 32%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.content .comments .right .item img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
}

.content .comments .right .item p {
    font-size: 14px;
}

.content .podcasts .item .top i {
    font-size: 40px;
    background-color: var(--accent-color);
    padding: 12px;
    color: var(--secondary-background);
    border-radius: 10px;
}

.content .podcasts .item:nth-child(2) .top i {
    background-color: var(--nth-child2);
}

.content .podcasts .item:nth-child(3) .top i {
    background-color: var(--nth-child3);
}

.content .podcasts .item .bottom h5 {
    background-color: var(--content-accent);
    color: var(--accent-color);
}

.content .articles {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    flex-wrap: wrap;
    row-gap: 20px;
}

.content .articles .item {
    width: 23%;
}

.content .articles .item .top {
    flex-direction: column;
}

.content .articles .item .top h5{
    color: var(--secondary-text);
}

.content .articles .item .top a img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 8px;
    transition: all 0.5s ease;
}

.content .articles .item .top a img:hover {
    transform: scale(1.05);
    transition: all 0.5s ease;
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 100px 30px;
    background-color: var(--primary-color);
    color: var(--secondary-background);
    border-radius: 40px 40px 0 0;
}

footer .columns {
    display: flex;
    justify-content: space-around;
}

footer .columns .col {
    display: flex;
    flex-direction: column;
    flex: 2;
}

footer .columns .col.last {
    flex: 3;
}

footer .columns .col h5 {
    margin-bottom: 14px;
    font-size: 16px;
    color: var(--footer);
}

footer .columns .col a {
    margin-bottom: 4px;
    color: var(--footer);
    font-size: 14px;
}

footer .columns .col a:hover {
    color: var(--secondary-background);
}

footer .columns .col.last p {
    font-size: 14px;
    margin-bottom: 14px;
    color: var(--footer);
}

footer .columns .col.last .social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

footer .columns .col.last .social-links i {
    font-size: 20px;
    cursor: pointer;
    color: var(--footer);
}

footer .copyright {
    margin-top: 50px;
    font-size: 13px;
    color: var(--footer);
}

/* Pixelbook Go 1643x924*/
@media screen and (max-width:1643px) {
    
}

/* Pixel Tablet 1575x984px*/
@media screen and (max-width:1575px) {
    
}

@media screen and (max-width:1200px) {

    nav {
        padding: 0 60px;
    }

    header .search {
        width: 50%;
    }

    .content {
        padding: 100px 60px 0;
    }

    .content .courses .item .top,
    .content .courses .item .bottom,
    .content .articles .item .bottom {
        flex-direction: column;
    }

    .content .courses .item .top a img {
        width: 100%;
        height: 180px;
        transition: all 0.5s ease;
    }

    .content .courses .item .top a img:hover {
        width: 100%;
        height: 180px;
        transform: scale(1.1);
        transition: all 0.5s ease;
    }

    .content .courses .item .bottom .price {
        text-align: center;
    }

    .content .courses .item .bottom h5.tag {
        text-align: center;
    }

}

@media screen and (max-width: 940px) {

    nav .left .logo {
        display: none;
    }

    .content .courses .item,
    .content .articles .item {
        width: 45%;
    }

    .content .podcasts .item .top,
    .content .podcasts .item .bottom {
        flex-direction: column;
    }

    .content .podcasts .item .top i {
        text-align: center;
        padding: 18px;
    }

    .content .podcasts .item .bottom {
        text-align: center;
    }

    .content .articles .item .top img {
        height: 220px;
    }

    footer {
        padding: 60px 70px 30px;
    }

    footer .columns {
        flex-wrap: wrap;
        row-gap: 20px;
    }

    footer .columns .col,
    footer .columns .col.last {
        width: 45%;
        flex: none;
    }

}

/* iPad Air 5 820x1180px */
@media screen and (max-width:820px) {
    .content .courses .item{
        width: 45%;
    }
}

@media(max-width: 800px){
    .hideOnMobile{
      display: none;
    }
    .menu-button{
      display: block;
    }
  }

@media screen and (max-width:768px) {

    nav {
        padding: 0 30px;
    }

    nav .left .links {
        font-size: 13px;
        gap: 14px;
    }

    header .info h1 {
        font-size: 26px;
    }

    header .info p {
        font-size: 16px;
    }

    header .search {
        width: 70%;
    }

    .content {
        padding: 100px 30px 0;
    }

    .content .courses .item .top {
        height: 324px;
    }

    .content .articles .item .top img {
        height: 160px;
    }

    footer {
        padding: 60px 50px 30px;
    }

}

/* iPad mini 608x926px */
@media screen and (max-width:608px) {
    .content .courses .item{
        width: 100%;
    }
}

/* iPad Pro 11 581x832px*/
@media screen and (max-width:581px) {
    .content .courses .item{
        width: 100%;
    }
}

/* iPad 575x767px */
/* iPad Air 4 573x824px */
@media screen and (max-width:575px) {

    nav .left .links a:nth-child(2),
    nav .left .links a:nth-child(3),
    nav .left .links a:nth-child(4) {
        display: none;
    }

    footer {
        padding: 60px 30px 30px;
    }
    .content .courses .item{
        width: 100%;
    }
}

/* Galaxy Tab S7 526x842px */
/* Pixel Slate 542x813px*/
@media screen and (max-width:542px) {
    .content .courses .item{
        width: 100%;
    }
}

/* Pixel 7 Pro 480x1040px*/
/* Pixel 6 pro 480x1040px*/
@media screen and (max-width:480px) {
    .content .articles .item{
        width: 100%;
    }
    .content .courses .item{
        width: 100%;
    }
}

/* iPhone 13 Pro Max 428x926px */
/* Pixel 7a 427x950px */
@media screen and (max-width:428px) {
    .content .articles .item{
        width: 100%;
    }
    .content .courses .item{
        width: 100%;
    }
}

/* iPhone 14 Pro 393x852px */
/* iPhone 14 390x844px */
/* iPhone 13 Pro 390x844px */
/* iPhone 13 390x844px */
/* Galaxy Note20 Ultra 390x830px */
@media screen and (max-width: 395px) {
    .sidebar{
        width: 100%;
    }
    .content .courses .item{
        width: 100%;
    }
    .content .articles .item{
        width: 100%;
    }
}

/*370px-380px*/
/* iPhone 12 Pro Max 379x820px */
/* iPhone 12 Mini 379x820px */
/* Pixel 5 376x815px*/
/* iPhone 11 Pro 375x812px */
/* iPhone SE 375x812px */
/* Pixel 2XL 375x750px*/
/* Pixel 2 375x667px*/
/* Pixel 4a 372x805px*/
/* Galaxy Note20 371x824px */
/* Galaxy A50 372x800px */
/* Galaxy S20 370x822px */
/* Pixel 4 370x781px*/
/* iPhone 13 mini 360x780px */
@media screen and (max-width: 380px) {
    .content .courses .item{
        width: 100%;
    }
    .content .articles .item .top h5{
        font-size: 13px;
    }
    .content .articles .item{
        width: 100%;
    }
}  