@charset "UTF-8";

:root {
    --hd-color: #2F5D50; /* #2F5D50, #3E6B4E */
    --bg-color: #faf7f0;
    --tx-bk: #333;    
    --tx-wh: #fff;
    --tx-hover: #e6c88a;/* #deb887, #e6c88a; */
    --tx-active: gold;
    --ak-rd: #B23A48; /* #9e2a2b, #B23A48, #7A1E24 */
    --btn-hover: #3e7566; /* #3e7566;*/
}

@font-face {
    font-family: 'Alan Sans';
    src: url('../fonts/AlanSans-Bold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Alan Sans';
    src: url('../fonts/AlanSans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

/*
GENERAL STYLING
================================================ */
html {
    font-size: 100%;
    scroll-behavior: smooth;
}
body {
	color: var(--tx-bk);
	font-family: sans-serif;
    background-color: var(--bg-color);
}

h2 {
    font-family: "Alan Sans", sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    text-align: center;
    margin: 3.5rem 0 2rem;
    padding-top: 2.5rem;
}

section, address {
    scroll-margin-top: 100px;
}

/*
COMMON
================================================ */
p {
    line-height: 1.7;
}

img {
    max-width: 100%;
}

.wrapper {
    max-width: 880px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.link-details {
    text-decoration: underline;
    text-decoration-color: var(--hd-color);
    text-decoration-thickness: 2px;
}

/*
HEADER
================================================ */
header {
    background: var(--hd-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1;
}
header .wrapper {
    display: flex;
    justify-content: space-between;
}

.btn-menu {
    position: absolute; /* ref. to body (display) */
    top: 8px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 2px solid var(--tx-wh);
    border-radius: 10px;
    padding: 1px;
    gap: 7px;
    background: transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.btn-menu span {
    display: block;
    width: 22px;
    height: 3px;
    background: #fff;
    transition: 0.4s ease;
}

.btn-menu span:nth-child(2){
    width: 18px;
}

.btn-menu.open span:nth-child(1){
    transform: translateY(10px) rotate(45deg);
}

.btn-menu.open span:nth-child(2){
    opacity: 0;
}

.btn-menu.open span:nth-child(3){
    transform: translateY(-10px) rotate(-45deg);
}

.btn-menu:hover{
    background: var(--bg-color);
}

.btn-menu:hover span{
    background: var(--hd-color);
}

/* navi-nav -> class name of <ul> for navigation buttons (Kurse/Lehrerin/Preise/Kontakt) inside the ul list */
.main-nav { 
    background: var(--hd-color);
    opacity: 0.9;
    width: 0;
    position: absolute; /* ref. to body (display)  */
    z-index: 2;
    top: 3.5rem;
    right: 0;
    overflow: hidden;
    transition: .5s ease;
}

.logo {
    color: var(--tx-wh);
    font-family: "Alan Sans", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 1.6rem;
}

.main-nav li{
    color: var(--tx-wh);
    font-family: "Alan Sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    text-align: center;
    margin: 1.2rem;
}

header a {
    transition: color 0.25s ease, transform 0.25s ease; 
}

header a:hover {
    color: var(--tx-hover);
    transform: translateY(-2px);
}

header a:active {
    color: var(--tx-active);
}

.main-nav a {
    display: block;
}

.main-nav.open-menu {
    width: 100%;
}

/*
Main
================================================ */

main {
    padding-top: 2.5rem;
}

/* Hero */

#hero {
    background-image: url('../images/hero-s.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 75vh;
}

#hero h1 {
    font-family: "Alan Sans", sans-serif;
    font-size: 4.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--tx-wh);
    padding-top: 30vh;
    margin-bottom: 1rem;
    text-shadow: 0 1px 0 rgba(255,255,255,0.1), 0 8px 24px rgba(0,0,0,1);
}

.hero-header {
    color: var(--ak-rd);
}

/* Kurse */

#kurse > p {
    text-align: center;
    margin-bottom: 2rem;
}

.grid-item {
    min-height: 200px;
    background-color: var(--tx-wh);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 .35rem rgba(0, 0, 0, .2);
}

.grid-item {
    transition: transform 0.25s ease;
}

.grid-item:hover {
    transform: scale(1.01);
}

#kurse h3 {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem; 
}

#kurse ul {
    margin: 0.5rem;
}

#kurse li {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: .5rem;
}

#kurse li::marker {
    color: var(--hd-color);
    font-size: 1.2rem;
}

/* Lehrerin */

#lehrerin > p {
    text-align: center;
    margin-bottom: 2rem;
}

#lehrerin img {
    display: block;
    margin: 0 auto;
    margin-bottom: 1.5rem;
    height: 300px;
    object-fit: cover;
    border-radius: 50% / 33%;
}

.name {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
}
.name + p {
    text-align: center;
    margin-bottom: 2rem;
}

#lehrerin h3 {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

#lehrerin ul {
    max-width: 600px;
    margin: 2.5rem auto 3.5rem;
}

#lehrerin li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}
#lehrerin li::before {
    content: "✓";
    color: var(--hd-color);
    font-size: 20px; 
    font-weight: 600;
    margin-right: 10px;
    flex-shrink: 0;
}

#lehrerin li::marker {
    color: var(--hd-color);
    font-size: 1.2rem;
}

/* Preise */

#preise > p {
    text-align: center;
    margin-bottom: 2rem;
}

.preise-item {
    min-height: 280px;
    background-color: var(--tx-wh);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0 .35rem rgba(0, 0, 0, .2);
}

.preise-item p {
    text-align: center;
    margin-bottom: 1rem;
}

.preise-item {
    transition: transform 0.25s ease;
}

.preise-item:hover {
    transform: scale(1.01);
}

.preise-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem; 
}

.preise-item a {
    text-align: center;
    margin-bottom: .75rem;
}

.preise-item ul {
    padding-left:1.2rem;
}

.preise-item li {
    line-height: 2rem;
    list-style-type: disc;
    list-style-position: outside;
    padding-left: .5rem;
}
.preise-item li::marker {
    color: var(--hd-color);
    font-size: 1.2rem;
}

.btn-align-center {
    text-align: center;
    margin-top: 3rem;
}

.btn-align-center .btn {
    display: inline-block;
    background-color: var(--btn-hover);
    border-radius: 12px;
    color: var(--tx-wh);
    font-size: 1.2rem;
    font-weight: 600;
    padding: .75rem 5.5rem .75rem;
    transition: color .25s ease, transform .25s ease;
}

.btn-align-center .btn:hover {
    color: var(--tx-hover);
    transform: scale(1.02);
}

/* Kontakt */

.info {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.5rem;
    padding: 0 1.5rem;
    border-spacing: 0;
}
.info th,
.info td {
    border-bottom: 1px solid var(--hd-color);
}
.info th {
    text-align: center;
    font-weight: bold;
    padding: 1.2rem;
}
.info td {
    padding: 1.2rem 0;
}

.anfahrt {
    background-color: #fafafa;
    max-width: 550px;
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.5rem;
    margin: 3.5rem auto 4rem;
    box-shadow: 0 0 .35rem rgba(0, 0, 0, .2);
}

.anfahrt h3 {
    font-weight: bold;
    margin-bottom: 1.6rem;
}

.anfahrt li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px; 
}

.anfahrt li::before {
    content: "";
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.tram::before {
  background-image: url("../images/icon_tram.svg");
}

.bus::before {
  background-image: url("../images/icon_bus.svg");
}

.car::before {
  background-image: url("../images/icon_car.svg");
}

.bicycle::before {
  background-image: url("../images/icon_bicycle.svg");
}

.map {
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}

.map iframe {
  width: 100%;
  height: 400px; 
  border: 0;
}

/* Impressum, Datenschütz, Kurse-Details*/

#impressum h1, #datenschutz h1, #jlpt-probetest h1 {
    font-family: sans-serif;
    font-size: 1.8rem;
    font-weight: 400;
    margin: 2rem 0;
    padding-top: 1.5rem;
}

#datenschutz h2 {
    font-family: sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    margin: 1.5rem 0 1rem 0;
    padding-top: 0;
}

#datenschutz ul {
    padding-left:2.2rem;
    margin-bottom: 1rem;
}

#datenschutz li {
    line-height: 2rem;
    list-style-type: disc;
    list-style-position: outside;
    padding-left: .5rem;
}
#datenschutz li::marker {
    color: var(--hd-color);
    font-size: 1.2rem;
}

#impressum .bold, #jlpt-probetest .bold {
    font-weight: bold;
}

#jlpt-probetest table{
    width:100%;
    border-collapse:collapse;
    margin:1.5rem 0;
}

#jlpt-probetest th,
#jlpt-probetest td {
    border: 1px solid var(--hd-color);
}
#jlpt-probetest th {
    text-align: center;
    vertical-align: middle;
    font-weight: bold;
    padding: 0.75rem;
}
#jlpt-probetest td {
    padding: 0.75rem 0.5rem;
}

#datenschutz, #jlpt-probetest {
    margin-bottom: 2.5rem;
}

#impressum {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
} 

#impressum main {
    flex: 1;
} 


/* Footer */

footer {
    background-color: var(--hd-color);
}

footer div {
    display: flex;
    justify-content: center;
    gap: 4rem;
    padding-top: 1rem;
    color: var(--bg-color);
}

footer a {
    transition: transform 0.25s ease;
}

footer a:hover {
    color: var(--tx-hover);
    transform: translateY(-2px);
}

footer p {
    margin-top: 1rem;
    padding-bottom: 0.5rem;
    text-align: center;
    color: var(--bg-color);
}


/* DESKTOP SIZE
================================================ */
@media (min-width: 600px) {


    /* Header */
    .btn-menu {
        display: none;
    }
    .main-nav {
        width: 100%;
        position: static;
        display: flex;
    }
    .main-nav li {
        margin: 0 0 0 1.5rem;
    }

    #hero {
    background-image: url('../images/hero-l.jpg');
    }

    #hero h1 {
    font-size: 5.5rem;
    font-weight: 600;
    }

    .grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(2,1fr);
    align-content: start;
    }
    
    .grid-item {
    margin-bottom: 0; 
    }

    .preise-box {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    }

    .preise-item {
        margin: 0;
        flex: 0 0 calc(50% - 15px);
    } 

    .preise-item:nth-child(3) {
    margin-left: auto;
    margin-right: auto;
}

}
@media (min-width: 850px) {
    #hero h1 {
    font-size: 6.8rem;
    font-weight: 600;
    }


}

