@font-face {
    font-family: 'Ma Shan Zheng';
    src: url('../fonts/MaShanZheng-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/NotoSans-VariableFont_wdth,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Sans';
    src: url('../fonts/NotoSans-Italic-VariableFont_wdth,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 125%;
    font-style: italic;
    font-display: swap;
}

:root {
    --primary-color: #4a4a4a;
    --secondary-color: #f9f9f9;
    --accent-color: #e74c3c;
    --text-color: #333;
    --card-bg-color: #ffffff;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    --max-width: 1200px;
    --header-height: 70px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
    padding-top: var(--header-height);
}

header {
    background-color: rgba(248, 248, 248, 0.95);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-container img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
}

.logo-text {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    height: 50px;
    margin-left: 10px;
}

nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style-type: none;
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 20px;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu li a:hover,
.nav-menu li a:focus {
    color: var(--accent-color);
    outline: none;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.impressum-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: left;
}

.impressum-container h1,
.impressum-container h2,
.impressum-container h3 {
    text-align: left;
}

.impressum-container p,
.impressum-container ul {
    margin-bottom: 1rem;
}

.impressum-container ul {
    padding-left: 1.25rem;
}

section {
    width: 100%;
    margin: 2rem auto;
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
}

h1, h2, h3 {
    color: #000000;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    margin-top: 1rem;
    border: none;
    cursor: pointer;
    font-family: 'Noto Sans', sans-serif;
}

.cta-button:hover,
.cta-button:focus {
    background-color: var(--accent-color);
    transform: translateY(-2px);
    outline: none;
}

#home {
    text-align: center;
    padding: 4rem 1rem;
    margin-top: 2rem;
    background-color: transparent;
    box-shadow: none;
}

#home h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
}

#home h1 .art-of-toa {
    font-family: 'Ma Shan Zheng', cursive;
}

#home p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

#home .highlight {
    font-weight: bold;
    color: var(--accent-color);
    text-decoration: underline;
}

.about-us {
    padding: 3rem 1rem;
    background-color: transparent;
    box-shadow: none;
}

.about-us-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-us-content p {
    margin-bottom: 1rem;
}

.trainer {
    padding: 3rem 1rem;
    margin: 2rem auto;
    background-color: transparent;
    box-shadow: none;
    max-width: 1000px;
}

.meister-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.trainer-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.meister-info {
    flex: 1;
}

.meister-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.meister-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

#angebot {
    background-color: transparent;
    box-shadow: none;
}

.angebot-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
}

.angebot-item {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(50% - 1rem);
    min-width: 300px;
    max-width: 500px;
    flex: 1 1 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.angebot-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #000000;
    border-bottom: 2px solid #000000;
    padding-bottom: 0.5rem;
}

.angebot-item p {
    margin-bottom: 1rem;
}

.angebot-item strong {
    color: var(--primary-color);
}

.angebot-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.angebot-item a:hover {
    color: var(--primary-color);
}

.carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
}

.carousel-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.carousel-arrow:hover,
.carousel-arrow:focus {
    background-color: var(--accent-color);
    outline: none;
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.carousel-dot.active {
    background-color: var(--accent-color);
    transform: scale(1.2);
}

#kontakt {
    background-color: transparent;
    box-shadow: none;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    width: 100%;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.contact-text {
    flex-grow: 1;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
}

.contact-item p {
    font-size: 1rem;
    color: var(--text-color);
}

.contact-item a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.contact-form-button {
    font-size: 1.1rem;
    padding: 12px 24px;
}

.kontakt-form-embed {
    flex: 1;
    min-width: 300px;
    text-align: left;
    background-color: var(--card-bg-color);
    box-shadow: var(--card-shadow);
    border-radius: 15px;
    padding: 2rem;
}

.kontakt-form-embed h3 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.contact-map-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f0f0f0;
}

.contact-map-container.contact-map-full {
    flex: none;
    width: 100%;
    height: 450px;
    margin-top: 2rem;
}

.map-consent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    text-align: center;
    transition: opacity 0.3s ease-in-out;
}

.map-consent h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.map-consent p {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    max-width: 400px;
    line-height: 1.6;
}

.map-consent .cta-button {
    font-size: 1rem;
    padding: 10px 20px;
}

.map-frame {
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.3s ease-in-out;
}

.map-fade-in {
    opacity: 1;
}

.map-fade-out {
    opacity: 0;
    pointer-events: none;
}

footer {
    background-color:  var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 2rem;
    margin-top: auto;
    width: 100%;
}

footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

footer a:hover,
footer a:focus {
    color: #ddd;
    outline: none;
}

footer a.current {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.no-style-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.no-style-link:hover {
    text-decoration: none;
    color: inherit;
}

.back-icon {
    margin-right: 0.4rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal h2 {
    margin-top: 0;
    color: var(--primary-color);
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cta-button-secondary {
    background-color: #ccc;
    color: var(--text-color);
}

.cta-button-secondary:hover {
    background-color: #bbb;
}

.section-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
    margin: 2rem 0;
    width: 80%;
    max-width: 800px;
}

.contact-form-page {
    max-width: 700px;
    text-align: left;
    background-color: var(--card-bg-color);
    box-shadow: var(--card-shadow);
}

.contact-form-page h1 {
    text-align: center;
}

.contact-form-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.forminit-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: flex;
    gap: 1.25rem;
}

.form-row .form-field {
    flex: 1;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    border: none;
    padding: 0;
    margin: 0;
    min-width: 0;
}

.form-field legend {
    font-weight: bold;
    padding: 0;
    margin-bottom: 0.4rem;
}

.form-field label {
    font-weight: bold;
    font-size: 0.95rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
    width: 100%;
    min-width: 0;
    font-family: 'Noto Sans', sans-serif;
    font-size: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

.form-field input.field-invalid,
.form-field textarea.field-invalid {
    border-color: var(--accent-color);
}

.field-error {
    display: block;
    min-height: 1.1rem;
    font-size: 0.85rem;
    color: var(--accent-color);
}

.checkbox-field .field-error {
    margin-left: 1.7rem;
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.radio-option input,
.checkbox-option input {
    accent-color: var(--accent-color);
}

.checkbox-option {
    align-items: flex-start;
}

.checkbox-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.checkbox-option span {
    flex: 1;
}

.checkbox-field {
    font-size: 0.95rem;
}

.checkbox-option a {
    color: var(--accent-color);
}

.form-message {
    font-weight: bold;
    min-height: 1.2rem;
}

.form-message-success {
    color: #2e7d32;
}

.form-message-error {
    color: var(--accent-color);
}

.impressum-container a,
.about-us-content a {
    overflow-wrap: anywhere;
}

@media print {
    .no-print {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    header {
        height: 60px;
    }

    .logo-container img {
        width: 40px;
        height: 40px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: -100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: rgba(248, 248, 248, 0.95);
        width: 100%;
        text-align: center;
        transition: top 0.3s ease-in-out;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }

    .nav-menu.active {
        top: 60px;
    }

    .nav-menu li {
        margin: 25px 0;
    }

    .social-icons {
        margin-top: 25px;
    }

    main {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    #home {
        padding: 2rem 1rem;
    }

    #home h1 {
        font-size: 3rem;
    }

    .meister-content {
        flex-direction: column;
        text-align: center;
    }

    .trainer-image {
        width: 200px;
        height: 200px;
    }

    .angebot-item {
        width: 100%;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-map-container,
    .contact-map-container.contact-map-full {
        height: 300px;
        margin-top: 2rem;
    }

    .carousel-slide img {
        height: 320px;
    }

    .form-row {
        flex-direction: column;
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    #home h1 {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .trainer-image {
        width: 150px;
        height: 150px;
    }

    .carousel-slide img {
        height: 260px;
    }

    .carousel-arrow {
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .modal-content {
        width: 95%;
        padding: 15px;
    }
}
