/* =============== CSS VARIABLES =============== */
:root {
    /* Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    
    --text-color: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: #ffffff;
    
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xl: 3.5rem;
    --font-size-lg: 2.5rem;
    --font-size-md: 1.5rem;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Spacing */
    --header-height: 4rem;
    --section-padding: 5rem 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============== RESET & BASE =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

input, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* =============== REUSABLE CLASSES =============== */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.section {
    padding: var(--section-padding);
}

.section__header {
    text-align: center;
    margin-bottom: 3rem;
}

.section__title {
    font-size: var(--font-size-lg);
    margin-bottom: 1rem;
    position: relative;
}

.section__line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

.section__description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.button {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    border-radius: 0.5rem;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.button__primary {
    background: var(--primary-color);
    color: white;
}

.button__primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button__secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.button__secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.button__full {
    width: 100%;
}

/* =============== HEADER & NAVIGATION =============== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    box-shadow: var(--shadow-sm);
    z-index: 100;
    transition: all var(--transition-normal);
}

.header.scroll-header {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
}

.nav__logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav__list {
    display: flex;
    gap: 2rem;
}

.nav__link {
    font-weight: var(--font-weight-medium);
    color: var(--text-color);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--primary-color);
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    cursor: pointer;
}

.nav__toggle span {
    width: 1.5rem;
    height: 2px;
    background: var(--text-color);
    transition: all var(--transition-normal);
}

/* =============== HOME SECTION =============== */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-secondary) 100%);
    padding-top: var(--header-height);
}

.home__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.home__title {
    font-size: var(--font-size-xl);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home__description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.home__buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.home__visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual__circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid;
    animation: pulse 3s ease-in-out infinite;
}

.visual__circle:nth-child(1) {
    width: 340px;
    height: 340px;
    border-color: rgba(37, 99, 235, 0.3);
    background: radial-gradient(circle, transparent 0%, transparent 79%, rgba(37, 99, 235, 0.25) 79%, rgba(37, 99, 235, 0.25) 100%);
    opacity: 0.3;
}

.visual__circle--2 {
    width: 270px;
    height: 270px;
    border-color: rgba(37, 99, 235, 0.5);
    background: radial-gradient(circle, transparent 0%, transparent 74%, rgba(37, 99, 235, 0.15) 74%, rgba(37, 99, 235, 0.15) 100%);
    opacity: 0.5;
    animation-delay: 0.5s;
}

.visual__circle--3 {
    width: 200px;
    height: 200px;
    border-color: rgba(37, 99, 235, 0.7);
    background: white;
    opacity: 1;
    animation-delay: 1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual__logo {
    width: 120px;
    height: auto;
    object-fit: contain;
    z-index: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* =============== ABOUT SECTION =============== */
.about {
    background: var(--bg-color);
    padding-top: 3rem;
}

.about__content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.about__image {
    position: static;
}

.about__img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-normal);
    object-fit: cover;
    aspect-ratio: 2/3;
    border: 1px solid var(--border-color);
}

.about__img:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.about__subtitle {
    font-size: var(--font-size-md);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about__text {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about__text--mission {
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    padding: 0.875rem 1rem;
    border-left: 3px solid var(--primary-color);
    border-radius: 0.375rem;
    margin-bottom: 1.5rem;
}

.about__text--emphasis {
    font-size: 1.125rem;
    color: var(--text-color);
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0.5rem;
}

.about__link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.about__link:hover {
    border-bottom-color: var(--primary-color);
}

.about__skills {
    display: none;
}

.skill__tag {
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-color);
    border-radius: 2rem;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.skill__tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* =============== SERVICES SECTION =============== */
.services {
    background: var(--bg-secondary);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    align-items: start;
}

.service__card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}

.service__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12), 0 6px 12px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-color);
}

.service__icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
}

.service__icon svg {
    width: 100px;
    height: 100px;
}

.service__icon circle {
    stroke: white;
}

.service__icon text {
    fill: white;
}

.service__title {
    font-size: 1.35rem;
    margin-bottom: 1.75rem;
    color: var(--secondary-color);
    text-align: center;
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

.service__intro {
    width: 100%;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    min-height: 180px;
    display: flex;
    flex-direction: column;
}

.service__description {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1rem;
    text-align: left;
    width: 100%;
}

.service__description:last-of-type {
    margin-bottom: 0;
}

.service__description--emphasis {
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    padding: 0.875rem 1rem;
    border-left: 3px solid var(--primary-color);
    border-radius: 0.375rem;
    margin-top: 1.0rem;
    margin-bottom: 2.0rem;
}

.service__benefit {
    font-size: 1.05rem;
    font-weight: var(--font-weight-semibold);
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
    padding: 0.875rem 1rem;
    border-left: 3px solid #14b8a6;
    border-radius: 0.375rem;
    margin-top: 1.5rem;
    margin-bottom: 0;
    text-align: left;
    flex-shrink: 0;
}

.service__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    width: 100%;
    flex: 1;
}

.service__list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: left;
}

.service__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    font-size: 1.1rem;
}

/* =============== CONTACT SECTION =============== */
.contact {
    background: var(--bg-color);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact__info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact__card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.contact__card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact__card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact__card-icon svg {
    width: 24px;
    height: 24px;
}

.contact__card-title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.contact__card-info {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    word-break: break-word;
}

.contact__form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-medium);
    color: var(--secondary-color);
}

.form__input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.form__input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__error {
    display: block;
    margin-top: 0.25rem;
    font-size: var(--font-size-sm);
    color: #ef4444;
}

.form__status {
    margin-top: 1rem;
    text-align: center;
    font-weight: var(--font-weight-medium);
}

.form__status.success {
    color: #10b981;
}

.form__status.error {
    color: #ef4444;
}

.required {
    color: #ef4444;
    font-weight: var(--font-weight-bold);
}

/* =============== FOOTER =============== */
.footer {
    background: var(--bg-secondary);
    color: var(--text-color);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
}

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

.footer__text {
    font-size: var(--font-size-sm);
    opacity: 0.8;
}

.footer__link {
    color: var(--primary-color);
    text-decoration: underline;
    transition: opacity var(--transition-fast);
}

.footer__link:hover {
    opacity: 0.7;
}

/* =============== IMPRESSUM PAGE =============== */
.impressum {
    min-height: calc(100vh - var(--header-height) - 8rem);
    padding-top: calc(var(--header-height) + 3rem);
}

.impressum__container {
    max-width: 800px;
}

.impressum__content {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
}

.impressum__section {
    margin-bottom: 2.5rem;
}

.impressum__section:last-of-type {
    margin-bottom: 0;
}

.impressum__subtitle {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: var(--font-weight-semibold);
}

.impressum__text {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.impressum__text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.impressum__text a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.impressum__back {
    margin-top: 3rem;
    text-align: center;
}

/* =============== ANIMATIONS =============== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============== RESPONSIVE DESIGN =============== */
@media screen and (max-width: 968px) {
    :root {
        --font-size-xl: 2.5rem;
        --font-size-lg: 2rem;
        --font-size-md: 1.25rem;
        --section-padding: 4rem 0;
    }
    
    .home__container {
        grid-template-columns: 1fr;
    }
    
    .home__visual {
        height: 300px;
    }
    
    .about__content {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column;
    }
    
    .about__data {
        display: contents;
    }
    
    .about__text--mission {
        order: 1;
    }
    
    .about__image {
        position: static;
        max-width: 250px;
        margin: 0 auto;
        order: 2;
    }
    
    .about__text:not(.about__text--mission) {
        order: 3;
    }
    
    .about__skills {
        display: none;
    }
    
    .contact__content {
        grid-template-columns: 1fr;
    }
    
    .services__grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --font-size-xl: 2rem;
        --font-size-lg: 1.75rem;
        --section-padding: 3rem 0;
    }
    
    .nav__menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        background: var(--bg-color);
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-normal);
    }
    
    .nav__menu.show-menu {
        left: 0;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .home__buttons {
        flex-direction: column;
    }
    
    .home__visual {
        display: none;
    }
    
    .button {
        width: 100%;
        text-align: center;
    }
    
    .footer__container {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

@media screen and (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .home__title {
        font-size: 1.75rem;
    }
    
    .home__description {
        font-size: 1rem;
    }
    
    .service__card,
    .contact__form {
        padding: 1.5rem;
    }
    
    .visual__circle:nth-child(1) {
        width: 250px;
        height: 250px;
    }
    
    .visual__circle--2 {
        width: 180px;
        height: 180px;
    }
    
    .visual__circle--3 {
        width: 110px;
        height: 110px;
    }
}
