/* =====================
   CSS-Variablen & Basis-Styles
   ===================== */
:root {
    --bg-color: #0f172a;
    --bg-color-alpha: rgba(15, 23, 42, 0.9);
    --bg-color-alpha-dark: rgba(15, 23, 42, 0.5);
    --card-bg: #1e293b;
    --card-bg-alpha: rgba(30, 41, 59, 0.7);
    --accent-color: #10b981;
    --accent-color-light: rgba(16, 185, 129, 0.5);
    --accent-color-glow: rgba(16, 185, 129, 0.15);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-color-light: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.5);
    --shadow-color-light: rgba(0, 0, 0, 0.3);
}

/* Global Body & Container */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes & Helper */
.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.button--full-width {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* =====================
   Kopfzeile & Navigation
   ===================== */
header {
    background-color: var(--bg-color-alpha);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

header h1 {
    margin: 0;
    font-size: 1.3rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

header h1 span {
    color: var(--accent-color);
}

.mini-logo {
    width: 30px;
    height: auto;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

.nav-menu {
    display: flex;
    gap: 0;
}

.nav-menu a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: color 0.3s;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-color);
}

/* =====================
   Willkommens-Bereich (Hero-Sektion)
   ===================== */
.hero-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.hero__subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero__title {
    font-size: 2.5rem;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 10px 0 20px;
}

.hero__description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.button-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

/* =====================
   Haupt-Layout & Über-Mich-Sektion
   ===================== */
.page-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.about-section {
    flex: 2;
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: 0 10px 25px var(--shadow-color-light);
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-color-light);
}

.about-section__content {
    animation: fadeInUp 0.8s ease-out;
}

.about-section__content h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.highlight {
    color: var(--accent-color);
}

.section-subtitle {
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    margin: 15px 0;
}

/* =====================
   Fähigkeiten-Bereich & Seitenleiste
   ===================== */
.skills-sidebar {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-title {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateX(8px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px var(--shadow-color-light);
}

.skill-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.skill-card__content {
    flex-grow: 1;
    min-width: 0;
}

.skill-card__content h4 {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
}

.skill-card__category {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: block;
}

.skill-card__content p {
    margin: 8px 0 5px 0;
    font-size: 0.9rem;
}

.progress-bar {
    background: #334155;
    border-radius: 10px;
    height: 6px;
    overflow: hidden;
}

.progress__fill {
    background: var(--accent-color);
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* =====================
   Code-Beispiel mit Glasmorphismus-Design
   ===================== */
.code-example {
    background: var(--card-bg-alpha);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color-light);
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 25px 50px -12px var(--shadow-color);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.code-example__header {
    background: var(--bg-color-alpha-dark);
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.color-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.color-dot--red {
    background: #ff5f56;
}

.color-dot--yellow {
    background: #ffbd2e;
}

.color-dot--green {
    background: #27c93f;
}

.code-example__content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
}

.code-line {
    display: block;
    margin-bottom: 5px;
    white-space: pre;
}

.code-line--indented {
    padding-left: 20px;
}

.keyword {
    color: #c678dd;
}

.class {
    color: #e5c07b;
}

.string {
    color: #98c379;
}

/* =====================
   Kontakt-Bereich & Eingabeformular
   ===================== */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

.contact__header {
    text-align: center;
    margin-bottom: 40px;
}

.contact__header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

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

.contact-container {
    padding: 0 20px;
}

.contact-form {
    background: var(--card-bg-alpha);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color-light);
    padding: 30px 20px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.input-group {
    margin-bottom: 25px;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-color-alpha-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color-light);
    background: rgba(15, 23, 42, 0.8);
}

/* Button-Stile */
.button--primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.button--primary:hover,
.button--primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.button--secondary {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 12px 25px;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1rem;
}

.button--secondary:hover,
.button--secondary:focus {
    background-color: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.button--primary.button--full-width {
    width: 100%;
}

/* =====================
   Atmosphärische Hintergrund-Effekte
   ===================== */
.bg-glow,
.bg-glow-2 {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
}

.bg-glow {
    top: -100px;
    right: -100px;
}

.bg-glow-2 {
    bottom: -100px;
    left: -100px;
}

/* =====================
   Animations-Definitionen
   ===================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================
   Fußzeile
   ===================== */
footer {
    text-align: center;
    padding: 40px 20px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border-color);
}

footer p {
    margin: 0;
    line-height: 1.6;
}

/* =====================
   Responsive Design & Mobile-Anpassungen
   ===================== */

/* Tablet (768px - 950px) */
@media (max-width: 950px) {
    .page-grid {
        flex-direction: column;
    }

    .about-section {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }

    .about-section__content h2 {
        font-size: 1.8rem;
    }

    .skills-sidebar {
        width: 100%;
    }

    .hero-section {
        min-height: auto;
        gap: 30px;
    }

    .hero__content {
        flex: 1;
    }

    .hero__title {
        font-size: 2rem;
    }

    .code-example {
        max-width: 100%;
    }
}

/* Mobile (480px - 768px) */
@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--bg-color-alpha);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-menu a:last-child {
        border-bottom: none;
    }

    .container {
        margin: 30px auto;
        padding: 0 15px;
    }

    .hero-section {
        min-height: auto;
        margin-top: 10px;
    }

    .hero__content {
        min-width: auto;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    .hero__description {
        font-size: 0.95rem;
    }

    .button-group {
        flex-direction: column;
        gap: 10px;
    }

    .button--primary,
    .button--secondary {
        width: 100%;
        padding: 12px 20px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .about-section {
        padding: 20px;
        border-radius: 12px;
    }

    .about-section__content h2 {
        font-size: 1.5rem;
    }

    .about-section__content p {
        font-size: 0.95rem;
    }

    .sidebar-title {
        font-size: 1.3rem;
    }

    .skill-card {
        padding: 12px;
        gap: 12px;
    }

    .skill-card__icon {
        font-size: 1.3rem;
    }

    .skill-card__content h4 {
        font-size: 0.9rem;
    }

    .contact__header h2 {
        font-size: 1.5rem;
    }

    .contact__header p {
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .input-group input,
    .input-group textarea {
        padding: 10px 12px;
        font-size: 16px;
    }

    .code-example__content {
        font-size: 0.75rem;
        padding: 15px;
    }

    .bg-glow,
    .bg-glow-2 {
        width: 300px;
        height: 300px;
        filter: blur(40px);
    }

    .bg-glow {
        top: -150px;
        right: -150px;
    }

    .bg-glow-2 {
        bottom: -150px;
        left: -150px;
    }

    header h1 {
        font-size: 1.1rem;
    }

    .mini-logo {
        width: 25px;
    }
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
    header {
        padding: 0.75rem 0;
    }

    .header-content {
        padding: 0 12px;
    }

    .logo-area {
        gap: 8px;
    }

    header h1 {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .mini-logo {
        width: 22px;
    }

    .hamburger {
        padding: 3px;
        gap: 4px;
    }

    .hamburger span {
        width: 20px;
        height: 2.5px;
    }

    .container {
        margin: 20px auto;
        padding: 0 12px;
    }

    .hero-section {
        margin-top: 5px;
    }

    .hero__subtitle {
        font-size: 0.85rem;
    }

    .hero__title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .hero__description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .button--primary,
    .button--secondary {
        padding: 11px 18px;
        font-size: 0.95rem;
    }

    .button-group {
        gap: 8px;
    }

    .about-section {
        padding: 18px;
        gap: 15px;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .about-section__content h2 {
        font-size: 1.3rem;
    }

    .about-section__content p {
        font-size: 0.9rem;
    }

    .sidebar-title {
        font-size: 1.1rem;
        padding-left: 10px;
    }

    .skill-card {
        padding: 10px;
        gap: 10px;
    }

    .skill-card__icon {
        font-size: 1.2rem;
    }

    .skill-card__content h4 {
        font-size: 0.85rem;
    }

    .skill-card__category {
        font-size: 0.7rem;
    }

    .skill-card__content p {
        font-size: 0.8rem;
    }

    .contact-section {
        padding: 0;
    }

    .contact__header h2 {
        font-size: 1.3rem;
    }

    .contact__header p {
        font-size: 0.9rem;
    }

    .contact-container {
        padding: 0 12px;
    }

    .contact-form {
        padding: 18px 12px;
        border-radius: 12px;
    }

    .input-group input,
    .input-group textarea {
        padding: 10px 10px;
        font-size: 16px;
    }

    .input-group label {
        font-size: 0.85rem;
    }

    footer {
        padding: 30px 12px 15px;
        font-size: 0.75rem;
    }

    .code-example {
        border-radius: 8px;
    }

    .code-example__content {
        font-size: 0.7rem;
        padding: 12px;
    }

    .color-dot {
        width: 8px;
        height: 8px;
    }
}