/* ─── Custom Fonts ───────────────────────────────── */
@font-face {
    font-family: 'Migraine Sans';
    src: url('../assets/fonts/migraine_sans.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Migraine Serif';
    src: url('../assets/fonts/migraine_serif.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ─── Design Tokens ─────────────────────────────── */
:root {
    --bg:          #f2ece3;
    --bg-alt:      #e8dfd3;
    --text:        #0f0f0f;
    --text-muted:  #555555;
    --accent:      #8b6344;
    --border:      #d9cfc4;
    --font-serif:  'Migraine Serif', Georgia, serif;
    --font-sans:   'Migraine Sans', system-ui, sans-serif;
    --page-gap:    1.5rem; /* einheitlicher Abstand zum Rand */
    --label-gap:   0.6rem; /* Abstand zwischen Section-Label und Inhalt */
    --section-gap: 3rem;  /* einheitlicher Abstand zwischen /-Kapiteln */
}

/* ─── Reset ─────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    max-width: 100%;
    overflow-x: hidden;
}

/* ─── Language Switcher ──────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: color 0.2s;
}

.lang-btn:hover {
    color: var(--text);
}

.lang-btn.active {
    color: var(--text);
}

.lang-divider {
    font-size: 0.8rem;
    color: var(--border);
    user-select: none;
}

/* ─── Navigation — Mobile only ──────────────────── */
@media (max-width: 639px) {
    .lang-switcher {
        gap: 0.15rem;
    }
}

/* ─── Navigation — Mobile ────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem var(--page-gap);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.02em;
}

nav ul {
    list-style: none;
    display: none;
}


/* ─── Hero — Mobile ─────────────────────────────── */
.hero {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: relative;
    width: 75%;
    height: 46svh;
    margin-left: auto; /* rechtsbündig */
    flex-shrink: 0;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* ─── Hero Slides ───────────────────────────────── */
.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 8%;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.hero-slide.active {
    opacity: 1;
}

/* Zweites Bild (ohne Brille) höher positionieren damit Jacke nicht sichtbar */
.hero-slide:nth-child(2) {
    object-position: center top;
}

.hero-placeholder {
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.hero-dots {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.4rem;
}

.hero-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-muted);
    opacity: 0.4;
    transition: opacity 0.3s;
    cursor: pointer;
}

.hero-dot.active {
    opacity: 1;
    background: var(--text);
}

/* Gradient links: kein harter Bildrand */
.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 45%;
    background: linear-gradient(to right, var(--bg), transparent);
    z-index: 1;
}

/* Gradient unten: Bild läuft in Hintergrund aus */
.hero-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 55%;
    background: linear-gradient(to bottom, transparent, var(--bg));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    margin-top: calc(-1.76 * clamp(4rem, 18cqw, 13rem));
    padding: 0 var(--page-gap) 0;
    display: flex;
    flex-direction: column;
}

.hero-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.hero h1 {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 18cqw, 13rem);
    font-weight: 300;
    line-height: 0.88;
    letter-spacing: -0.02em;
    margin-left: -0.05em;
    margin-bottom: 2rem;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.2;
    margin-bottom: var(--section-gap);
}

.cta-btn {
    display: inline-block;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    padding: 0.85rem 2rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.3s, color 0.3s;
    align-self: flex-start;
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

.hero-scroll {
    display: none;
}

/* Hero — Tablet */

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(10px); }
}

/* ─── Shared ─────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--page-gap);
}

.section-label {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--text);
}

/* ─── About — Mobile ────────────────────────────── */
.about {
    padding: 0;
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: var(--label-gap);
}

.about-content {
    overflow-wrap: break-word;
    word-break: break-word;
}

.about-content > .section-label {
    display: block;
    margin-bottom: var(--label-gap);
}

.about-content > p.about-lead {
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text);
    margin-bottom: 1rem;
    hyphens: auto;
}

.about-content > p:not(.about-lead) {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 300;
    line-height: 1.3;
    font-size: 0.95rem;
}

.about-focus {
    color: var(--text) !important;
    font-size: 0.95rem !important;
    font-weight: 300 !important;
    text-align: center;
}

.about-content > span.section-label:not(:first-child) {
    display: block;
    margin-top: 0;
}


/* ─── Expertise — Mobile ────────────────────────── */
.expertise {
    padding: 0;
}

.section-header {
    margin-bottom: var(--label-gap);
    padding-left: var(--page-gap);
}

/* ─── Skills Carousel ────────────────────────────── */
.skills-carousel {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scroll-padding-left: var(--page-gap);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.75rem;
    padding-left: var(--page-gap);
}

.skills-carousel::-webkit-scrollbar {
    display: none;
}

.skill-tile {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 78cqw;
    height: 56cqw;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.skill-tile-bg {
    position: absolute;
    inset: 0;
}

.skill-tile-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.skill-tile-overlay {
    position: absolute;
    inset: 0;
    background: rgba(80, 50, 20, 0.45);
}

.skill-tile:nth-child(1) .skill-tile-bg { background: #d4c8b6; }
.skill-tile:nth-child(2) .skill-tile-bg { background: #7a5535; }
.skill-tile:nth-child(3) .skill-tile-bg { background: #4e3d2e; }
.skill-tile:nth-child(4) .skill-tile-bg { background: #3a4a58; }
.skill-tile:nth-child(5) .skill-tile-bg { background: #3d5248; }
.skill-tile:nth-child(6) .skill-tile-bg { background: #5c4f3d; }

.skill-tile-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.skill-num {
    display: block;
    font-size: 0.65rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.skill-tile h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 0.95;
    color: var(--bg);
    margin: 0;
}

.skill-tile-label {
    display: block;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: -0.5rem;
}

.skill-tile:not(.skill-tile--ai) .skill-tile-label {
    color: rgba(242,236,227,0.65);
}


.skill-tile:not(.skill-tile--ai) h3 {
    font-size: 1.75rem;
    font-weight: 700;
}

.skill-tile--ai h3 {
    font-size: 1.75rem;
    color: var(--text-muted);
    font-weight: 700;
}

.skill-tile--ai .skill-expand-icon {
    color: var(--text-muted);
}

.skill-tile--ai .skill-tile-content {
    background: linear-gradient(to top, rgba(212,200,182,0.96) 0%, rgba(212,200,182,0.55) 40%, transparent 100%);
    padding-bottom: 1.0rem;
    transition: background 0.45s ease;
}

.skill-tile--ai.open .skill-tile-content {
    background: linear-gradient(to top, rgba(212,200,182,0.96) 0%, rgba(212,200,182,0.55) 40%, transparent 100%);
}

.skill-tile--ai .skill-tile-expand ul li {
    color: rgba(15,15,15,0.65);
}

/* AI tile */
.skill-tile--ai {
    cursor: pointer;
}

/* Expandable dark tiles */
.skill-tile--expandable {
    cursor: pointer;
}

.skill-tile--expandable .skill-tile-content {
    padding-bottom: 1.0rem;
    transition: background 0.45s ease;
}

.skill-tile--expandable.open .skill-tile-content {
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
}

.skill-tile--expandable .skill-expand-icon {
    color: rgba(242,236,227,0.65);
}

.skill-tile--expandable.open .skill-expand-icon {
    transform: rotate(-90deg);
}


.skill-tile--expandable.open .skill-tile-expand {
    max-height: 115px;
    opacity: 1;
}

.skill-tile--ai::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--border);
    border-radius: 20px;
    z-index: 10;
    pointer-events: none;
}

.skill-tile-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.5rem;
}

.skill-expand-icon {
    display: block;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-top: 0.3rem;
    transition: transform 0.5s ease;
    transform: rotate(90deg);
}

.skill-tile--ai.open .skill-expand-icon {
    transform: rotate(-90deg);
}

.skill-tile-expand {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.7s ease-in-out, opacity 0.5s ease;
}

.skill-tile--ai.open .skill-tile-expand {
    max-height: 115px;
    opacity: 1;
}

.skill-tile-expand ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-bottom: 0.85rem;
}

.skill-tile-expand ul li {
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(242,236,227,0.8);
    padding-left: 0.6rem;
    position: relative;
    line-height: 1.3;
}

.skill-tile-expand ul li::before {
    content: '/';
    position: absolute;
    left: 0;
    color: var(--accent);
}


/* ─── Quotes ─────────────────────────────────────── */
.quote {
    padding-left: 1rem;
    border-left: 2px solid var(--border);
}

.quote p {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 700;
    font-size: clamp(0.95rem, 3.5cqw, 1.1rem);
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.quote cite {
    display: block;
    font-style: normal;
    text-align: right;
}

.quote cite a {
    text-decoration: none;
}

.cite-name,
.cite-company {
    display: block;
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.quote--hero {
    margin: 0 0 1rem;
}


.about-content > blockquote:nth-of-type(2) {
    margin-top: 0.2rem;
}

.about-content > blockquote:nth-of-type(2) p {
    line-height: 1.4;
}

.quote--inline {
    margin: 1.5rem 0;
}

/* ─── Contact — Mobile ──────────────────────────── */
.contact {
    padding: 1rem 0;
    overflow: hidden;
}

.contact .container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 9cqw, 8rem);
    overflow-wrap: break-word;
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-top: 1rem;
}

.contact-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.6rem;
    margin-bottom: 0.75rem;
}

.contact-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-icon-btn:hover {
    opacity: 0.85;
}

.contact-icon-btn[aria-label="LinkedIn"] {
    background: #0A66C2;
}

.contact-icon-btn[aria-label="WhatsApp"] {
    background: #25D366;
}


/* ─── Footer ─────────────────────────────────────── */
footer {
    padding: 1.75rem var(--page-gap);
    font-size: 0.78rem;
    color: var(--text-muted);
}


/* ─── Einheitliche Zentrierung (alle Geräte) ── */
html {
    background: var(--bg-alt);
}

body {
    container-type: inline-size;
    max-width: 390px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 0 40px rgba(0,0,0,0.07);
}

nav {
    width: min(390px, 100vw);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}
