:root {
    --bg: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --accent: #dc2626;
    --max-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body::selection {
    background-color: var(--accent);
    color: white;
}

@media (hover: hover) and (pointer: fine) {
  .js * {
    cursor: none;
  }
}

.no-js * {
    cursor: auto;
}

@media (prefers-reduced-motion: reduce) {
    a,
    button,
    input,
    textarea,
    select,
    label,
    body {
        cursor: auto;
    }

    .ball {
        display: none;
    }
}

a {
    text-decoration: none;
    color: var(--accent);
}

h1 {
    font-size: 40px;
}

header {
    border-bottom: 3px solid #e5e7eb;
    padding: 1.5rem 2rem;
} 

.header-title {
    top: 1.5rem;
    display:inline-block;
    color: black;
    border-bottom: 3px solid var(--accent);
    transition: all .4s ease
}

.header-title:hover {
    border-bottom: 3px dashed var(--accent);
}

@media (max-width: 590px) {
   .header-title {
        display: none;
    }

    header {
        padding: 1rem;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    gap: 3.5rem;
    list-style: none;
    align-self: end;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    nav ul {
        margin: 0;
        gap: 1.5rem;
    }

    .header-socials {
        display: none;
    }
}

.header-socials {
    right: 2rem;
}

.header-socials a {
    color: var(--accent);
    margin: 0 0.5rem;
    display: inline-block;
    transition: transform 0.3s, color 0.3s;
}

.header-socials a:hover {
    transform: scale(1.2);
    color: black;
}

.hero {
    position: relative;
    min-height: 70svh;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero {
        min-height: 50svh;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url("/images/home_banner.png") center / cover no-repeat;
    filter: blur(4px) brightness(0.8);
    transform: scale(1.1);
    transition: all .1s ease-out;
    animation: fadeIn .5s ease-out ;
}

@keyframes fadeIn {
    from {
        filter: blur(30px) brightness(0.4);
    }
    to {
        filter: blur(4px) brightness(0.8);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-10vh) skew(5deg);
        opacity: 0;
    }
    to {
        transform: translateX(0), skew(0deg);
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    animation: slideInFromLeft 1s ease-out forwards;
}

.hero-content h1 {
    text-shadow: 1px 0px 3px black;
}

.hero-title {
    text-align: left;
    font-size: 3.2rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 2rem;
    text-align: left;
    color: white;
    font-style: italic
}

@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }
    .hero-title {
        text-align: left;
        font-size: 2.5rem;
    }
}

.section-title {
    position: relative;
    display: inline-block;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.section-title .title-bar {
    position: absolute;
    left: 0;
    bottom: -0.6rem;
    width: 48px;
    height: 4px;
    background: #dc2626;
    border-radius: 2px;
}

.container {
    display: grid;
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: auto;
    padding: 2rem;
}

.img-portrait {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
}

.img-portrait:hover {
    transform: scale(1.02);
    transition: transform .3s;
}

.highlight {
    font-weight: 800;
    color: black;
}

@media (max-width: 768px) {
    .img-portrait {
        aspect-ratio: 3/ 2;
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .img-portrait {
        display: block;
    }
}

@media (max-width: 600px) {
    .container {
            padding: 0 1rem;
    }
}

.erfolg-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.5);
    border: solid white 15px;
    transition: transform .3s ease-in-out;
}

.erfolg-img:hover {
    transform: scale(1.03);
    transition: all .3s;
}

@media (max-width: 1106px) {
    .erfolg-img {
        border: solid white 10px
    }
}

@media (max-width: 768px) {
    .erfolg-fig {
                margin: 0 20px;

    }
    .erfolg-img {
        border: solid white 5px;
        aspect-ratio: 3/ 2;
    }
}

.btn {
    display: block;
    width: 12rem;
    margin-top: 2rem;
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    transition: all .2s ease-out;
}

.btn:hover {
    transform: scale(1.02);
    filter: brightness(0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: scale(0.99) translateY(3px);
    transition: scale .4s;
    filter: brightness(0.99);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

section {
    padding: 4rem 1.5rem;
}

@media (max-width: 768px) {
    section {
        padding: 2rem 0;
    }
}

.grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 769px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

#about {
    background: linear-gradient(90deg,rgba(255, 255, 255, 1) 70%, var(--accent) 70%);
}

@media (max-width: 768px) {
    #about {
        background: linear-gradient(180deg,rgba(255, 255, 255, 1) 80%, var(--accent) 80%);
    }
}

.facts {
    width: 100%;
    position: relative;
    bottom: 10px;
    padding-top: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem 3rem;
    z-index: 10;
    margin: auto 0;
}

.facts__item {
    font-size: 1.1rem;
    color: white;
    opacity: 60%;
    font-weight: 800;
    border-radius: 5px;
}

.cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

@media (max-width: 700px) {
    .cards {
        grid-template-columns: repeat(auto-fill, minmax(280px, 350px));
        margin: 0 auto;
    }
}

.card {
    flex: 1 1 260px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);    
    min-height: 300px;
    transition: transform .2s ease-in-out;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 3px 15px var(--accent);
}
.underline {
  position: relative;
  display: inline-block;
}

.underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background-color: var(--accent);
  border-radius: 80% / 100%;
  transform: skew(0, .5deg) scaleX(1.1);
  transform-origin: center center;
}

.card__footer {
    margin-top: auto;
    padding-top: 10px;
    color: var(--accent);
}

.card__title {
        padding-bottom: 15px;
}

.ball {
    position: fixed;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff, #f0f0f0 30%, #cccccc 60%, #aaaaaa 100%);
    border: .1px solid #222222;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s linear;
    transform: translate(-50%, -50%) rotate(0deg);
}

.cursor-racket {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: url('/images/racket_small.png') no-repeat center center;
    background-size: contain;
    border: none;
    box-shadow: none;
    opacity: 80%;
    transition: transform 0.2s ease-out;
    transform-origin: bottom center;      
}

.success-list {
    list-style: none;
    padding-top: 2rem;
    padding-left: 0;
}

.success-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.5rem;
}

.success-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 17px;
    height: 17px;
    background: url("/images/svg/trophy.svg") no-repeat center / contain;
    filter: invert(72%) sepia(87%) saturate(1000%) hue-rotate(1deg) brightness(95%) contrast(102%);
}

#erfolge {
    padding-top: 5rem;
    transform: skewY(-6deg);
    color: rgb(250, 250, 250);
    background: #c5321b;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    #erfolge {
        transform: skewY(-6deg);
        color: rgb(250, 250, 250);
        background: #c5321b;
        margin-bottom: 30px;
    }
}

#contact {
    padding: 5rem 0 5rem 0 ;
}

.contact__facts {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer {
    background: #111827;
    color: #f9fafb;
    padding-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: auto;
}

.footer-content p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer__credits {
    margin-top: 3rem;
    color: #111827;
    background: white;
    padding: .5rem 0;
}
.social-icons a {
    margin: 0 0.5rem;
    display: inline-block;
    color: white;
    transition: transform 0.3s, color 0.3s;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #f9fafb;
}

.social-icons a {
    padding: .5rem 1.5rem;
}

#impressum {
    background: rgb(235, 235, 235);
}