:root {
  --primary: #1f2559;
  --primary-dark: #171c44;
  --primary-light: #4a528a;
  --background: #f8fafc;
  --background-alt: #eef2f7;
  --surface: #ffffff;
  --text: #1f2937;
  --text-soft: #5b6473;
  --border: #dde3ec;
  --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --radius-sm: 14px;
  --transition: 0.22s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: clamp(16px, 0.25vw + 15px, 19px);
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 90%);
  margin: 0 auto;
}

.narrow {
  width: min(820px, 100% - 2rem);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(221, 227, 236, 0.8);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--primary-dark);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.nav nav a {
  color: var(--text-soft);
  font-size: 0.96rem;
  transition: color var(--transition);
}

.nav nav a:hover {
  color: var(--primary);
}

/* HERO */

.hero {
  padding: clamp(5.5rem, 9vw, 8rem) 0 clamp(3.5rem, 6vw, 5rem);
  background:
    radial-gradient(circle at top left, rgba(74, 82, 138, 0.12), transparent 35%),
    linear-gradient(to bottom, #ffffff, rgba(31, 37, 89, 0.04));
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 3rem;
}

.hero-text-block {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-image img {
  height: 100%;
  aspect-ratio: 1 / 1;
  max-height: 320px;
  max-width: none;

  object-fit: cover;
  object-position: center 30%;

  border-radius: 50%;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #4a528a, #1f2559) border-box;
  border: 4px solid transparent;

  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.04);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.9rem, 2vw, 2.7rem);
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.18rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text);
}

.hero-text {
  max-width: 680px;
  font-size: 1.06rem;
  color: var(--text-soft);
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(31, 37, 89, 0.18);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  box-shadow: var(--shadow);
}

/* SECTIONS */

.section {
  padding: clamp(3.8rem, 7vw, 6rem) 0;
}

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

.section-heading {
  margin-bottom: 2rem;
  max-width: 720px;
}

.section-heading p {
  color: var(--text-soft);
  margin-bottom: 0;
}

/* CARDS */

.cards,
.project-cards {
  display: grid;
  gap: 1.4rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-cards {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.11);
  border-color: rgba(31, 37, 89, 0.18);
}

.project-card {
  display: flex;
}

.project-card .card {
  position: relative;
  width: 100%;
  min-height: 320px;
  padding-top: 1.6rem;
}

.project-card.featured .card {
  border-color: rgba(31, 37, 89, 0.28);
  background: linear-gradient(to bottom right, #ffffff, #f8faff);
}

.card.current .card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-card h3 {
  max-width: 85%;
  min-height: 2.4em;
}

.tech {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.learned {
  margin-bottom: 0;
  color: var(--text-soft);
}


/* TOOLS */
.tools-grid .card {
  padding: 1.4rem;
}

.tool-card h3 {
  margin-bottom: 1rem;
}

.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 37, 89, 0.07);
  border: 1px solid rgba(31, 37, 89, 0.12);
  color: var(--primary-dark);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}


/* CONTACT */

.contact-card-modern {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
}

/* einzelne Zeile */
.contact-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color var(--transition);
}

.contact-row:last-child {
  border-bottom: none;
}

.contact-row:hover {
  color: var(--primary-light);
}

.contact-row-address {
  align-items: flex-start;
}

/* ICONS – nur leicht hervorgehoben */
.contact-icon {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  opacity: 0.85;
}

.contact-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

/* TEXT */
.contact-text {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* Hover leicht eleganter */
.contact-row:hover .contact-text {
  color: var(--primary-light);
}

/* Mobile */
@media (max-width: 760px) {
  .contact-row {
    padding: 1.1rem 0;
    gap: 1rem;
  }

  .contact-text {
    font-size: 1rem;
  }
}

/* Screenshot-Block */
.contact-row-image {
  padding: 1.3rem 0;
  /*border-bottom: 1px solid rgba(255, 255, 255, 0.08); */
}

.contact-image {
  width: 100%;
  height: auto;
  display: block;
}

/* optional: leicht besseres Alignment */
.contact-row-image img {
  border-radius: 6px; /* kannst du auch entfernen wenn 100% flat */
}

/* FOOTER */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-content {
  min-height: 72px;
  display: flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* RESPONSIVE */

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

  .hero-layout {
    gap: 2.25rem;
  }

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

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.9rem 0;
  }

  .nav nav {
    gap: 1rem;
  }

  .project-cards {
    grid-template-columns: 1fr;
  }

  .project-card .card {
    min-height: unset;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-image {
    justify-content: center;
    order: -1;
    margin-bottom: 1.5rem;
  }

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

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}