/* =========================================================
   Philippe Kramer – persönliche Webseite
   Selbst gehostete Neuauflage der Strikingly-Seite
   ========================================================= */

:root {
  --bg: #1C1C1C;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --muted-2: rgba(255, 255, 255, 0.50);
  --line: rgba(255, 255, 255, 0.12);
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; }

/* ---------------------------------------------------------
   Sprache – Englisch Default, Deutsch umschaltbar
   --------------------------------------------------------- */
[lang="en"] .lang-de { display: none; }
[lang="de"] .lang-en { display: none; }

.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: rgba(28, 28, 28, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lang-switch button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-switch button:hover { color: #ffffff; }

.lang-switch button.is-active {
  background: #ffffff;
  color: #1C1C1C;
}

/* Selbst gehostete Schriften – keine externe Verbindung nötig */
@font-face {
  font-family: 'Acumin Pro';
  src: url('fonts/AcuminPro-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('fonts/lato-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('fonts/poppins-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------------------------------------------------------
   Hero – «Hallo!»
   --------------------------------------------------------- */
.hero {
  padding: clamp(48px, 8vw, 110px) 0;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero__image {
  flex: 0 1 480px;
  min-width: 0;
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.hero__text {
  flex: 1 1 0;
  min-width: 0;
}

.hero__text h1 {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 68px);
  line-height: 1.1;
  color: #ffffff;
}

/* ---------------------------------------------------------
   Projekte
   --------------------------------------------------------- */
.projects {
  padding: clamp(40px, 6vw, 80px) 0 clamp(60px, 8vw, 110px);
}

.projects__header {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 72px);
}

.projects__title {
  margin: 0 0 18px;
  font-family: 'Acumin Pro', 'Poppins', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 48px);
  letter-spacing: 0.01em;
}

.projects__subtitle {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(1rem, 2.5vw, 20px);
  color: var(--muted);
}

.projects__list {
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 88px);
}

.project {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
}

.project__media {
  flex: 0 0 38%;
  max-width: 38%;
  min-width: 0;
}

.project__media img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.project__body {
  flex: 1 1 0;
  min-width: 0;
}

.project__title {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.25;
}

.project__title a {
  text-decoration: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.25);
  transition: border-color 0.2s ease;
}

.project__title a:hover {
  border-color: #ffffff;
}

.project__meta {
  margin: 0 0 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--muted-2);
}

.project__desc {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.project__desc a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------------------------------------------------------
   Footer – Impressum
   --------------------------------------------------------- */
.footer {
  padding: clamp(48px, 7vw, 90px) 0;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer__title {
  margin: 0 0 20px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
}

.footer__line {
  margin: 0 0 24px;
  line-height: 1.8;
  color: var(--muted);
}

.footer__line a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__social {
  margin: 0 0 22px;
}

.footer__social a {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer__social a:hover {
  background: #ffffff;
  border-color: #ffffff;
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: #ffffff;
  transition: fill 0.2s ease;
}

.footer__social a:hover svg {
  fill: #1C1C1C;
}

.footer__copy {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted-2);
}

/* ---------------------------------------------------------
   Responsiv
   --------------------------------------------------------- */
@media (max-width: 768px) {
  body { font-size: 17px; }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__image {
    flex-basis: auto;
    width: 100%;
    max-width: 360px;
  }

  .project {
    flex-direction: column;
    align-items: stretch;
  }

  .project__media {
    flex-basis: auto;
    max-width: 100%;
  }
}
