



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

html {
  -webkit-text-size-adjust: 100%;
}

/* =========================
   TYPOGRAPHY VARIABLES
   ========================= */

:root {

  /* bewusst größer auf Mobile */
  --fs-body: clamp(18px, 2.2vw, 19px);
  --fs-small: clamp(15px, 1.8vw, 16px);

  --fs-h1: clamp(40px, 7vw, 58px);
  --fs-h2: clamp(26px, 4.6vw, 30px);
  --fs-h3: clamp(18px, 2.6vw, 20px);

  --max-w: 1100px;
  --content-w: 1000px;

}

/* =========================
   BASE
   ========================= */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #09090b;
  color: #f4f4f5;
  line-height: 1.75;
  font-size: var(--fs-body);
}

section {
  padding: 80px 20px;
}

.about,
.projects,
.vision,
.contact {
  max-width: var(--content-w);
  margin: 0 auto;
}

h1, h2, h3 {
  margin-bottom: 20px;
}

h2 {
  font-size: var(--fs-h2);
  margin-bottom: 40px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =========================
   HERO
   ========================= */

.hero {
  padding: 70px 20px 120px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-container {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-image img {
  width: 520px;
  height: 640px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.15);
  display: block;
}

.hero-text h1 {
  font-size: var(--fs-h1);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.claim {
  margin-top: 18px;
  opacity: 0.75;
  font-size: clamp(17px, 2vw, 19px);
  max-width: 420px;
}

.hero-divider {
  width: 4px;
  align-self: stretch;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255,255,255,0.14),
    transparent
  );
}

/* =========================
   TEXT SECTIONS
   ========================= */

.about p,
.vision p {
  max-width: 600px;
  opacity: 0.85;
}

/* =========================
   PROJECT CARDS
   ========================= */

.projects {
  max-width: var(--content-w);
  margin: auto;
}

.project-card {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 32px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  scroll-margin-top: 140px;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.18);
}

.project-card h3 {
  margin: 0 0 10px 0;
  font-size: var(--fs-h3);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.9;
}

.project-card p {
  margin: 0;
  opacity: 0.8;
}

/* =========================
   BUTTONS
   ========================= */

.button {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  text-decoration: none;
  color: white;
  background: rgba(255,255,255,0.05);
  transition: 0.3s;
}

.button:hover {
  background: rgba(255,255,255,0.1);
}

/* =========================
   NAVIGATION
   ========================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9,9,11,0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.18em;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  padding: 10px 10px;
  border-radius: 8px;
}

.nav a:hover {
  color: rgba(255,255,255,1);
}

/* =========================
   DROPDOWN
   ========================= */

.dropdown {
  position: relative;
}

.dropdown-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  cursor: pointer;
  padding: 10px 10px;
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: 42px;
  min-width: 180px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(20,20,23,0.95);
  border: 1px solid rgba(255,255,255,0.10);
  display: none;
}

.dropdown-menu a {
  display: block;
  padding: 10px;
  border-radius: 10px;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
}

.dropdown-menu.open {
  display: block;
}

/* =========================
   FOOTER
   ========================= */

.footer {
  padding: 70px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-left {
  font-size: 16px;
  opacity: 0.75;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.footer-right a {
  text-decoration: none;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
}

.footer-right a:hover {
  color: white;
}

/* =========================
   LEGAL PAGES
   ========================= */

.legal {
  padding: 180px 32px;
}

.legal-container {
  text-align: center;
}

.legal h1 {
  font-size: clamp(34px,5vw,44px);
  margin-bottom: 50px;
}

.legal-block {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.9;
  opacity: 0.9;
}

.legal-block p {
  margin-bottom: 28px;
}

.legal-left .legal-container {
  text-align: left;
}

.legal-left .legal-block {
  margin: 0;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 900px) {

  .hero-container {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .hero-image img {
    width: 100%;
    height: auto;
  }

}

@media (max-width: 600px) {

  section {
    padding: 70px 20px;
  }

  .hero {
    padding: 50px 20px 80px;
  }

  .hero-image img {
    max-height: 420px;
  }

  .project-card {
    padding: 24px;
    border-radius: 16px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .footer-right {
    align-items: flex-start;
  }

}

@media (max-width: 768px) {

  /* Header Layout stabilisieren */
  .nav-inner{
    gap: 14px;
    align-items: center;
  }

  .nav-brand{
    flex: 0 0 auto;
    white-space: nowrap;         /* R.L. bleibt in einer Zeile */
  }

  /* Links dürfen umbrechen, aber mit Luft + nicht so dicht am Brand */
  .nav-links{
    margin-left: auto;           /* schiebt Links nach rechts */
    gap: 10px;
    flex-wrap: wrap;             /* wenn es eng wird, umbrechen */
    justify-content: flex-end;
  }

  .nav a,
  .dropdown-btn{
    padding: 10px 10px;
    line-height: 1.1;
    white-space: nowrap;         /* "Über mich" bleibt in einer Zeile */
  }
}

@media (max-width: 768px) {
  .nav-links > a { display: none; }     /* normale Links ausblenden */
  .dropdown { display: block; }         /* Dropdown bleibt */
}

@media (max-width: 768px) {

  /* Hero insgesamt etwas kompakter/höher */
  .hero{
    padding-top: 34px;
    padding-bottom: 70px;
  }

  /* Container oben beginnen, nicht "optisch nach unten rutschen" */
  .hero-container{
    align-items: flex-start;
  }

  /* Bild mittig + schönes Framing */
  .hero-image{
    width: 100%;
    display: flex;
    justify-content: center;   /* Bild horizontal mittig */
  }

  .hero-image img{
    width: min(420px, 100%);   /* nicht zu riesig, aber responsiv */
    max-height: 520px;
    object-position: center top; /* Motiv sitzt höher */
    border-radius: 16px;       /* optional: wirkt edler */
  }
}

/* Hamburger Button */

.dropdown-btn {
  font-size: 22px;
  padding: 6px 10px;
}

/* Mobile Navigation */

@media (max-width: 768px) {

  /* normale Links verstecken */
  .nav-links > .nav-item {
    display: none;
  }

  /* Hamburger anzeigen */
  .dropdown {
    display: block;
  }

}

/* --- Hamburger default: auf Desktop AUS --- */
.dropdown {
  display: none;
}

/* Drei-Striche Icon */
.dropdown-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px 10px;
  border-radius: 10px;
  color: rgba(255,255,255,0.85);
}

.dropdown-btn:hover {
  color: rgba(255,255,255,1);
}

.burger {
  display: inline-block;
  width: 22px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.burger::before { top: -7px; }
.burger::after  { top: 7px; }

/* --- MOBILE: Desktop-Links AUS, Hamburger AN --- */
@media (max-width: 768px) {
  .nav-links > .nav-item {
    display: none;
  }

  .dropdown {
    display: block;
  }

  /* Dropdown hübsch und gut klickbar */
  .dropdown-menu {
    min-width: 210px;
  }

  .dropdown-menu a {
    font-size: 16px;
    padding: 12px 12px;
  }
}

/* Scroll-Reveal wieder aktivieren */
[data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms ease, transform 700ms ease;
}

[data-reveal].is-visible{
  opacity: 1;
  transform: translateY(0);
}