/* =========================================================
   LASSO DIGITAL – Reset & Design Tokens
   ========================================================= */
:root{
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #5b647a;
  --line: #e8ecf5;
  --brand: #2563eb;        /* CTA / Links */
  --brand-2: #5eead4;      /* Verlauf im Logo-Seil */
  --card-bg: #fff;
  --shadow: 0 6px 24px rgba(15, 23, 42, .08);
  --radius: 14px;

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --z-header: 1000;
}

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

html,body{
  height:100%;
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--ink);
  background:var(--bg);
  line-height:1.55;
}

/* Typo helpers */
h1,h2,h3{ margin:0 0 .6rem }
h1{ font-size: clamp(2.0rem, 2.6vw + 1rem, 3.0rem); line-height:1.2; letter-spacing:.2px; }
h2{ font-size: clamp(1.35rem, 1.2vw + .9rem, 1.75rem) }
h3{ font-size: clamp(1.05rem, .7vw + .85rem, 1.25rem) }
p{ margin:.6rem 0 1rem }
.small{ font-size:.95rem; color:var(--muted); }

/* Layout container */
.wrap{
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========================================================
   Header / Navigation
   ========================================================= */
header{
  position: sticky;
  top:0;
  z-index: var(--z-header);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15,23,42,.03);
}

nav.top{
  height: var(--header-h);
  display:flex;
  align-items:center;
  gap:24px;
}

/* Logo wieder LINKS mit Einrückung über .wrap */
.brand{
  flex:0 0 auto;
  display:flex;
  align-items:center;
}

.brand .logo-svg{
  display:block;
  height: 54px;
}

/* Navigationslinks rechts */
.nav{
  margin-left:auto;           /* ← schiebt die Nav nach rechts */
  display:flex;
  align-items:center;
  gap:24px;
}

.nav a{
  color:var(--ink);
  text-decoration:none;
  font-weight:600;
  opacity:.92;
}
.nav a:hover{ color:var(--brand) }

/* Burger (mobil) – einfach, robust */
.menu-toggle{
  display:none;
  margin-left:auto;
  font-size:28px;
  line-height:1;
  cursor:pointer;
  user-select:none;
}

/* =========================================================
   Ticker (laufender Balken)
   ========================================================= */
.ticker{
  margin: 14px auto 22px;
  width:100%;
  overflow:hidden;
  border-radius:9999px;
  background:#f6f8ff;
  border:1px solid var(--line);
  padding:10px 0;
  position:relative;
}
.ticker span{
  display:inline-block;
  padding-left:100%;
  white-space:nowrap;
  animation: marquee 22s linear infinite;
  font-size:.95rem;
  color:#2b3967;
}
@keyframes marquee{
  0%{ transform: translateX(0) }
  100%{ transform: translateX(-100%) }
}

/* =========================================================
   Hero
   ========================================================= */
.grid{ display:grid; gap:32px }
.grid-2{ grid-template-columns: 1.15fr .85fr; align-items:center }

.hero .sub{ max-width: 60ch; color:var(--muted) }

.cta-row{ display:flex; gap:14px; margin:18px 0 12px }
.cta{
  display:inline-block;
  background:var(--brand);
  color:#fff;
  padding:12px 18px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
  box-shadow: var(--shadow);
}
.cta.ghost{
  background:#eef3ff;
  color:#1d3fb8;
}

/* Portrait */
.portrait{
  display:block;
  width:100%;
  height:auto;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* KPI-Karten unter dem Hero – wieder „Boxen“ */
.kpis{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:16px;
  margin-top: 10px;
}
.kpi{
  background: var(--card-bg);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px 18px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.kpi b{ font-size:1.1rem }

/* „Karten“/„Pills“ in anderen Bereichen */
.cols{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 22px;
}
.card{
  background:var(--card-bg);
  border:1px solid var(--line);
  border-radius: var(--radius);
  padding:18px 18px;
  box-shadow: var(--shadow);
}
.badge{
  display:inline-block;
  background:#eef3ff;
  color:#1d3fb8;
  font-size:.8rem;
  padding:6px 10px;
  border-radius:999px;
  margin-bottom:8px;
}

/* Sektionen */
section{ margin:44px 0 }
section > h2{ margin-bottom:16px }

/* „Pills“-Zeile (Profil) */
.pill{ display:flex; flex-wrap:wrap; gap:8px }
.pill span{
  border:1px solid var(--line);
  background:#f8fafc;
  border-radius:999px;
  padding:6px 10px;
  font-size:.9rem;
}

/* =========================================================
   Footer
   ========================================================= */
.footer{
  border-top:1px solid var(--line);
  margin-top:48px;
  padding:22px 0 44px;
  color:var(--muted);
}
.foot-grid{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  justify-content:space-between;
}

/* Scroll-to-top */
#scrollTopBtn{
  position:fixed;
  right: 22px;
  bottom: 22px;
  display:none;
  border:0;
  background:var(--brand);
  color:#fff;
  width:44px; height:44px;
  border-radius:999px;
  box-shadow: var(--shadow);
  cursor:pointer;
}

/* =========================================================
   Hilfs-Utilities
   ========================================================= */
hr{ border:0; border-top:1px solid var(--line); margin:24px 0 }

a{ color:var(--brand) }
a:hover{ opacity:.9 }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 820px){
  .grid-2{ grid-template-columns: 1fr }
  .hero .sub{ max-width: 70ch }
  .cols{ grid-template-columns: 1fr 1fr }
}
@media (max-width: 820px){
  /* Burger an, Nav aus */
  .menu-toggle{ display:block }
  .nav{ display:none; margin-left:0 }
  .nav.open{ display:flex; flex-direction:column; gap:14px; padding:12px 0 }
@media (max-width: 820px){
  .menu-toggle{ display:block }
  .nav{ display:none; margin-left:0 }
  .nav.open,
  .nav.show { display:flex; flex-direction:column; gap:14px; padding:12px 0 }
}

  nav.top{ align-items:center }
  .kpis{ grid-template-columns:1fr }
  .cols{ grid-template-columns:1fr }
  .ticker span{ animation-duration: 26s }
}

/* ============================================
   Seiten-Spezifika (Impressum/Datenschutz)
   – gleicher Rand / gleiche Typo wie Startseite
   ============================================ */
.page-narrow{
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.page-narrow h1{ margin: 18px 0 14px }
.page-narrow p{ margin: .4rem 0 1rem }

/* === Abstand-Fix: Profil / Kompetenzen / Referenzen / Kontakt ================== */
/* Abstand oben für die vier Sektionen vereinheitlichen */
#profil,
#kompetenzen,
#referenzen,
#kontakt {
  margin-top: 80px;      /* gleiche Luft nach oben */
}

/* Headings in diesen Sektionen nicht zusätzlich „hochdrücken“ */
#profil h2,
#kompetenzen h2,
#referenzen h2,
#kontakt h2 {
  margin-top: 0;
}

/* Mobile etwas kompakter */
@media (max-width: 820px) {
  #profil,
  #kompetenzen,
  #referenzen,
  #kontakt {
    margin-top: 48px;
  }
}
/* Ende */

