/* =============================================================
   FONTS – Selbst gehostet
   Beide Dateien in dieses Verzeichnis (css/) legen.

   Iosevka (Überschriften) – Variable Font:
   https://github.com/be5invis/Iosevka/releases/latest
   → Assets → "PkgTTF-Iosevka-[version].zip"
   → Datei: iosevka-regular.ttf  (oder .woff2 falls vorhanden)
   Tipp: Nur die woff2-Variante nehmen für kleinere Dateigröße.
   Woff2-Build: https://github.com/be5invis/Iosevka/releases
   → "SuperTTC" oder Webfont-Pakete suchen, z.B.:
     "PkgWebFont-Iosevka-[version].zip" → iosevka.woff2

   IBM Plex Sans (Fließtext) – Variable Font:
   https://github.com/IBM/plex/releases/latest
   → Assets → "ibm-plex-sans.zip"
   → Datei: IBMPlexSans-Text[VF].woff2
   Oder direkt: https://fonts.google.com/specimen/IBM+Plex+Sans
   → "Download family" → woff2 aus dem ZIP nehmen
============================================================= */

@font-face {
  font-family: 'Iosevka';
  src: url('iosevka.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('IBMPlexSans-Medium.ttf') format('truetype');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('IBMPlexSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   DESIGN TOKENS
============================================================= */
:root {
  --bg:           #F7F6F3;
  --surface:      #FFFFFF;
  --text:         #1A1A18;
  --text-muted:   #6A6A66;
  --accent:       #1B4332;
  --accent-mid:   #2D6A4F;
  --accent-light: #74C69D;
  --border:       #DDD9D0;
  --radius:       3px;
  --max-width:    960px;
  --font-head:    'Iosevka', 'Courier New', monospace;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img  { max-width: 100%; display: block; }
ul   { list-style: none; }
a    { color: inherit; text-decoration: none; }

/* =============================================================
   LAYOUT UTILITY
============================================================= */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* =============================================================
   TYPOGRAPHY
============================================================= */
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 6vw, 3.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 4vw, 2.2rem);  letter-spacing: -0.02em; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); }

/* =============================================================
   BUTTONS
============================================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn--primary {
  background-color: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.btn--primary:hover,
.btn--primary:focus {
  background-color: var(--accent-mid);
  border-color: var(--accent-mid);
}

.btn--ghost {
  background-color: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn--ghost:hover,
.btn--ghost:focus {
  background-color: var(--accent);
  color: #fff;
}

.btn--light {
  background-color: #fff;
  color: var(--accent);
  border: 2px solid #fff;
  font-size: 1rem;
}
.btn--light:hover,
.btn--light:focus {
  background-color: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

/* =============================================================
   HEADER / NAV  (mobile-first, kein JavaScript)
   Technik: CSS-only Hamburger via <input type="checkbox">
============================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding-block: 1rem;
  position: relative;
}

.nav__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-right: auto;
}

/* Checkbox versteckt (aber im DOM für ~ Selektor benötigt) */
.nav__toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Burger-Symbol – drei Linien */
.nav__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.22s ease, opacity 0.22s ease;
}

/* Menü standardmäßig ausgeblendet */
.nav__menu {
  display: none;
  flex-direction: column;
  width: 100%;
  padding-top: 0.75rem;
  gap: 0;
}

/* Menü öffnen wenn Checkbox aktiv */
.nav__toggle:checked ~ .nav__menu {
  display: flex;
}

/* Burger → X Animation */
.nav__toggle:checked ~ .nav__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav__toggle:checked ~ .nav__burger span:nth-child(2) {
  opacity: 0;
}
.nav__toggle:checked ~ .nav__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav__link {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
}
.nav__link:last-child  { border-bottom: none; }
.nav__link:hover       { color: var(--accent); }
.nav__link--cta        { color: var(--accent); font-weight: 600; }

/* Ab 768px: horizontale Navigation, kein Burger */
@media (min-width: 768px) {
  .nav__burger { display: none; }

  .nav__menu {
    display: flex !important;   /* immer sichtbar */
    flex-direction: row;
    width: auto;
    padding-top: 0;
    align-items: center;
    gap: 2rem;
  }

  .nav__link {
    border-bottom: none;
    padding: 0;
  }

  .nav__link--cta {
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    transition: background-color 0.2s, color 0.2s;
  }
  .nav__link--cta:hover {
    background-color: var(--accent);
    color: #fff;
  }
}

/* =============================================================
   SEKTIONEN – Grundstruktur
============================================================= */
.section {
  padding-block: 4rem;
}

.section--alt {
  background-color: var(--surface);
}

.section--accent {
  background-color: var(--accent);
  color: #fff;
  text-align: center;
  padding-block: 5rem;
}

.section__title {
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

/* Dekorativer Unterstrich */
.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 2.5rem;
  height: 3px;
  background-color: var(--accent-light);
  border-radius: 2px;
}

.section--accent .section__title::after {
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.45);
}

.section__title--light {
  color: #fff;
}

/* =============================================================
   HERO
============================================================= */
.hero {
  padding-block: 5rem 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtiles Punktraster als Hintergrundstruktur */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--border) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.55;
  pointer-events: none;
}

.hero .container { position: relative; }

.hero__kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 1rem;
}

.hero__headline {
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* =============================================================
   KARTEN (Leistungen)
============================================================= */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 20px rgba(27, 67, 50, 0.07);
}

.card__icon {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--accent-mid);
}

.card__title  { margin-bottom: 0.75rem; }

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.1rem;
  line-height: 1.65;
}

.card__list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card__list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.55;
}

.card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-light);
  font-size: 0.8rem;
  top: 0.05em;
}

/* =============================================================
   REFERENZPROJEKTE
============================================================= */
.projects {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.project {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background-color: var(--bg);
}

.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}

.project__tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background-color: rgba(116, 198, 157, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.project__title {
  margin-bottom: 1.1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.project__cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .project__cols { grid-template-columns: repeat(3, 1fr); }
}

.project__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.project__cols p:not(.project__label) {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================================
   ÜBER MICH
============================================================= */
.about {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about {
    grid-template-columns: 1fr 260px;
    gap: 4rem;
    align-items: start;
  }
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about__text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.about__text strong { color: var(--text); }

.about__sidebar {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about__sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.tech-list {
  display: flex;
  flex-direction: column;
}

.tech-list li {
  font-size: 0.9rem;
  color: var(--text);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
}
.tech-list li:last-child { border-bottom: none; }

/* =============================================================
   KONTAKT
============================================================= */
.contact__sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* =============================================================
   FOOTER
============================================================= */
.footer {
  background-color: var(--text);
  color: rgba(255, 255, 255, 0.45);
  padding-block: 1.5rem;
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__name {
  font-family: var(--font-head);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.15s;
}
.footer__nav a:hover { color: #fff; }

/* =============================================================
   IMPRESSUM / DATENSCHUTZ – Innenseiten
============================================================= */
.page-content {
  padding-block: 4rem;
}

.page-content h1 {
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.page-content h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.page-content p,
.page-content address {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: normal;
}

.page-content a {
  color: var(--accent-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--accent-mid);
  margin-bottom: 2rem;
  font-weight: 600;
}
.back-link:hover { text-decoration: underline; }
