/* =========================================================
   Mustafa Karakilic – persönliche Website
   Schrift: San Francisco auf Apple-Geräten, Inter (lokal) auf allen anderen
   ========================================================= */
@font-face {
  font-family: "InterLocal";
  src: url("fonts/inter.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "InterLocal";
  src: url("fonts/inter-ext.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #ffffff;
  --tile: #f5f5f7;        /* Apple-Grau */
  --text: #1d1d1f;
  --soft: #6e6e73;        /* Sekundärtext */
  --line: #d2d2d7;
  --blue: #0071e3;        /* Aktion */
  --blue-dark: #0062c3;
  --night: #000000;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "InterLocal", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 980px;           /* Apple-typische Inhaltsbreite */
  --wide: 1200px;
  --gutter: clamp(1rem, 4vw, 1.5rem);
  --r-lg: 28px;
  --r-md: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--text); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: 48px;
  background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { color: var(--text); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text); font-size: 13px; opacity: .85; letter-spacing: -0.01em; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.lang { display: inline-flex; background: var(--tile); border-radius: 999px; padding: 2px; }
.lang button {
  font: inherit; font-size: 12px; font-weight: 600; border: 0; background: none; color: var(--soft);
  padding: 3px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.menu-btn { display: none; }

/* ---------- Typo-Bausteine ---------- */
.eyebrow-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--soft); margin: 0 0 14px; }
.eyebrow-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34c759; }
.headline, .subhead, .h2, .h2-sub, .intro { text-wrap: balance; }
.headline {
  font-size: clamp(40px, 7.5vw, 80px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em; margin: 0;
}
.subhead { font-size: clamp(24px, 3.4vw, 40px); line-height: 1.12; font-weight: 600; letter-spacing: -0.028em; margin: 8px 0 0; }
.subhead .soft { color: var(--soft); }
.intro { font-size: clamp(19px, 2vw, 21px); line-height: 1.43; color: var(--text); max-width: 640px; margin: 22px auto 0; letter-spacing: -0.016em; }
.h2 { font-size: clamp(32px, 5vw, 56px); line-height: 1.07; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.h2-sub { font-size: clamp(19px, 2vw, 21px); color: var(--soft); margin: 14px 0 0; line-height: 1.38; max-width: 640px; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin-top: 30px; }
.btn {
  display: inline-block; background: var(--blue); color: #fff; font-size: 17px; font-weight: 400;
  padding: 12px 22px; border-radius: 980px; letter-spacing: -0.02em;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.link { font-size: 17px; }
.link::after { content: " ›"; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: clamp(56px, 9vw, 96px) 0 0; }
.hero-photo { margin: clamp(40px, 6vw, 64px) auto 0; max-width: var(--wide); padding: 0 var(--gutter); }
.hero-photo .frame { border-radius: var(--r-lg); overflow: hidden; background: var(--tile); aspect-ratio: 3 / 2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-photo .frame { animation: rise 1.1s cubic-bezier(.2,.8,.2,1) both .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* ---------- Sektionen ---------- */
section { scroll-margin-top: 60px; }
.section { padding: clamp(80px, 11vw, 140px) 0 0; }
.section-head { text-align: center; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head .h2-sub { margin-left: auto; margin-right: auto; }

/* Was ich mitbringe: Vertrieb im Fokus */
.focus { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.tile { background: var(--tile); border-radius: var(--r-lg); padding: clamp(26px, 3.5vw, 40px); }
.tile h3 { font-size: 24px; line-height: 1.17; font-weight: 600; letter-spacing: -0.022em; margin: 0 0 10px; }
.tile p { margin: 0; color: var(--text); }
.tile .tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue); margin-bottom: 14px; letter-spacing: 0; }
.tile.dark { background: var(--night); color: #f5f5f7; }
.tile.dark p { color: #d2d2d7; }
.tile.dark h3 { font-size: clamp(28px, 3.4vw, 36px); }
.tile.dark .tag { color: #2997ff; }

/* Auf einen Blick: Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.bento .tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 220px; }
.b-photo { grid-column: span 6; padding: 0; overflow: hidden; position: relative; min-height: 0 !important; margin: 0; }
.b-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 55% 40%; }
.b-photo figcaption { padding: 16px 26px 20px; font-size: 15px; color: var(--soft); }
.b-grade { grid-column: span 2; }
.b-award { grid-column: span 4; }
.b-lang  { grid-column: span 3; }
.b-net   { grid-column: span 3; }
.big { font-size: clamp(52px, 7vw, 80px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0 0 12px; }
.big-text { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 0 0 12px; }
.small { font-size: 15px; color: var(--soft); margin: 0; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.langs li { background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 500; }
.b-award { background: linear-gradient(160deg, #f5f5f7 0%, #e8f0fb 100%); }

/* Engagement */
.engage { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.engage .tile h3 { font-size: clamp(20px, 2.1vw, 24px); }
.engage .tile { display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; }
.e-when { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0 0 10px !important; letter-spacing: -0.01em; }
.tile.dark .e-when { color: #2997ff; }
.net-art { width: 100%; max-width: 320px; height: auto; margin: 0 0 auto; padding-bottom: 24px; }

/* Werdegang */
.cv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cv li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.cv time { color: var(--soft); font-size: 15px; padding-top: 3px; }
.cv h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.24; }
.cv .org { color: var(--soft); margin: 2px 0 8px; }
.cv p { margin: 0; }
.cv .award { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--blue); background: #e8f0fb; padding: 3px 10px; border-radius: 999px; letter-spacing: 0; }

/* Projekte */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.projects .tile { min-height: 300px; display: flex; flex-direction: column; }
.projects .feature { grid-column: 1 / -1; background: var(--night); color: #f5f5f7; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; padding: clamp(32px, 5vw, 64px); }
.projects .feature h3 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; margin: 0; }
.projects .feature p { color: #d2d2d7; }
.projects .feature .where { color: #2997ff; }
.projects .where { font-size: 14px; font-weight: 600; color: var(--blue); margin: 0 0 12px; letter-spacing: -0.01em; }
.projects .result { margin-top: auto; padding-top: 18px; font-weight: 600; }
.projects .feature .result { color: #fff; padding-top: 14px; }

/* Privat: Fotokacheln (Bilder per Dateiname austauschbar) */
.life { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.life figure { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--tile); min-height: 340px; }
.l-golf { grid-column: span 4; }
.l-wj   { grid-column: span 2; }
.life .l-text { grid-column: span 3; }
.life .l-text h3 { margin-bottom: 6px; }
.life .l-text p { color: var(--soft); }
.life img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.life .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #a1a1a6; font-size: 14px; }
.life .ph svg { width: 40px; height: 40px; margin: 0 auto 8px; display: block; }
.life figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px;
  background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0)); color: #fff;
}
.life figure.empty figcaption { background: none; color: var(--text); }
.life figcaption strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.022em; }
.life figcaption span { font-size: 15px; opacity: .9; }

/* Hobbys: Galerie zum Wischen */
.carousel { position: relative; }
.track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 2px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 clamp(260px, 30%, 320px); aspect-ratio: 3 / 4; scroll-snap-align: start;
  position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--tile); margin: 0;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #a1a1a6; font-size: 14px; text-align: center; }
.card .ph svg { width: 40px; height: 40px; margin: 0 auto 8px; display: block; }
.card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 24px 22px;
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0)); color: #fff;
}
.card.empty figcaption { background: none; color: var(--text); }
.card strong { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.022em; line-height: 1.15; margin-bottom: 4px; }
.card span { font-size: 15px; opacity: .92; }
.card-text { display: flex; flex-direction: column; justify-content: flex-end; padding: 26px 24px; }
.card-text strong { font-size: clamp(30px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.03em; }
.card-text.t-blue { background: var(--blue); color: #fff; }
.card-text.t-dark { background: var(--night); color: #f5f5f7; }
.card-art { width: 70%; margin: 0 auto auto; padding-top: 24%; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.cbtn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--tile); color: var(--text);
  display: grid; place-items: center; cursor: pointer; transition: background .15s, opacity .15s;
}
.cbtn:hover { background: #e8e8ed; }
.cbtn:disabled { opacity: .35; cursor: default; }

/* Schach – der kleine Witz */
.chess {
  margin-top: 20px; border-radius: var(--r-lg); background: var(--night); color: #f5f5f7; overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: center;
}
.chess-text { padding: clamp(32px, 5vw, 64px); }
.chess-text .where { font-size: 14px; font-weight: 600; color: #2997ff; margin: 0 0 12px; }
.chess-text h3 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 14px; }
.chess-text p { color: #d2d2d7; margin: 0 0 24px; max-width: 30rem; }
.chess-text .btn { background: #fff; color: var(--text); }
.chess-text .btn:hover { background: #e8e8ed; }
.board {
  aspect-ratio: 1; width: 100%; max-width: 380px; justify-self: center; margin: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.5);
}
.board span { background: #d2d2d7; display: grid; place-items: center; font-size: clamp(18px, 2.8vw, 32px); line-height: 1; color: #1d1d1f; min-width: 0; min-height: 0; }
.board span.d { background: #86868b; }
.board span.w { color: #ffffff; text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 1px rgba(0,0,0,.9); }

/* Reisen: eigene Kartengrafik, keine externen Dienste */
.travel { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
.map-wrap { height: 100%; }
.map-wrap { background: var(--tile); border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; }
.map { width: 100%; height: auto; display: block; }
.map .land { fill: #1d1d1f; stroke: var(--tile); stroke-width: .5; }
.map .v { fill: var(--blue); cursor: pointer; transition: fill .15s; stroke: var(--tile); stroke-width: .4; }
.map .v:hover, .map .v.active { fill: #2997ff; }
.map .dot { stroke: #fff; stroke-width: 2; }
.travel-panel { background: var(--tile); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.tp-photo { aspect-ratio: 4 / 5; background: #e8e8ed; background-size: cover; background-position: center 35%; display: grid; place-items: center; color: #a1a1a6; font-size: 14px; }
.tp-photo.has { color: transparent; }
.tp-text { padding: 20px 24px 24px; }
.tp-name { font-size: 24px; font-weight: 600; letter-spacing: -0.022em; margin: 0; line-height: 1.2; }
.tp-place { margin: 4px 0 0; color: var(--soft); }
.countries { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.countries button {
  font: inherit; font-size: 15px; font-weight: 500; border: 0; cursor: pointer;
  background: var(--tile); color: var(--text); padding: 8px 16px; border-radius: 999px;
}
.countries button:hover, .countries button[aria-pressed="true"] { background: var(--blue); color: #fff; }

/* Kontakt */
.contact { text-align: center; padding: clamp(90px, 12vw, 150px) 0; }
.contact .mail { display: block; margin-top: 18px; color: var(--soft); font-size: 15px; }

/* Footer */
.footer { background: var(--tile); color: var(--soft); font-size: 12px; padding: 18px 0; }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer a { color: var(--soft); }
.footer nav { display: flex; gap: 18px; }

/* Rechtstexte */
.legal { padding: 64px 0 96px; }
.legal h1 { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 28px; }
.legal h2 { font-size: 21px; font-weight: 600; margin: 32px 0 6px; letter-spacing: -0.02em; }
.legal p { max-width: 680px; margin: 0 0 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .focus { grid-template-columns: 1fr; }
  .engage { grid-template-columns: 1fr; }
  .engage .tile { min-height: 0; }
  .bento .b-grade, .bento .b-award, .bento .b-lang, .bento .b-net { grid-column: span 6; }
  .bento .tile { min-height: 0; }
  .b-photo img { aspect-ratio: 1215 / 800; }
  .projects { grid-template-columns: 1fr; }
  .projects .feature { grid-template-columns: 1fr; }
  .projects .tile { min-height: 0; }
  .card { flex-basis: 78%; }
  .travel { grid-template-columns: 1fr; }
  .tp-photo { aspect-ratio: 4 / 5; max-height: 70vh; }
  .life figure { min-height: 260px; }
  .chess { grid-template-columns: 1fr; }
  .board { max-width: 300px; margin-top: 0; }
  .cv li { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 700px) {
  .nav-links {
    display: none; position: absolute; top: 48px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(255,255,255,.97); padding: 8px var(--gutter) 16px; border-bottom: 1px solid rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 0; font-size: 17px; }
  .menu-btn { display: inline-block; font: inherit; font-size: 13px; background: none; border: 0; color: var(--text); padding: 4px 0; cursor: pointer; }
  .nav-right { gap: 14px; }
  .hero-photo .frame { aspect-ratio: 4 / 5; }
  .hero-photo img { object-position: 47% 30%; }
}
