:root{
  --purple: #3d2058;
  --yellow: #ffce04;

  --bg: #f2f3f5;        /* helles Grau */
  --panel: #ffffff;     /* Karten */
  --border: #d3d7de;    /* dunklere Abgrenzungen */
  --border-2: #c3c8d1;

  --text: #22262b;
  --muted: #4b5563;

  --content-w: 980px;
  --pad: 18px;

  --nav-h: 78px;
  --radius: 16px;
  --shadow: 0 14px 36px rgba(0,0,0,0.10);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: var(--bg);
  color: var(--text);
}

/* Skip link */
.skip-link{
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--purple);
  text-decoration: none;
  z-index: 9999;
}
.skip-link:focus{ left: 12px; }

/* ===== Sticky Bar (Logo + Nav als Ganzes sticky) ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--purple);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bar{
  height: var(--nav-h);
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 10px var(--pad);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Brand */
.brand{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--yellow);
  border-radius: 14px;
  padding: 6px 8px;
}
.brand:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 206, 4, 0.35);
}
.brand__logo{
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}
.brand__name{
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* Nav (nur Schrift) */
.nav__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* etwas dünnere Schrift + deutlicher, animierter Hover */
.nav__link{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--yellow);
  text-decoration: none;
  font-weight: 500;         /* dünner */
  letter-spacing: 0.15px;

  padding: 10px 4px;
  border-radius: 10px;
  outline: none;

  transition: transform 220ms ease, text-shadow 220ms ease;
}

/* + davor */
.nav__link::before{
  content: "+";
  display: inline-block;
  width: 14px;
  text-align: center;
  font-weight: 650;
  transform: translateY(-0.5px);
  opacity: 0.95;
  transition: transform 220ms ease, opacity 220ms ease;
}

/* animierte Unterstreichung (präsenter Hover) */
.nav__link::after{
  content: "";
  position: absolute;
  left: 18px;
  right: 6px;
  bottom: 6px;
  height: 2px;
  background: rgba(255, 206, 4, 0.95);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition: transform 260ms ease, opacity 260ms ease, filter 260ms ease;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.35));
}

/* Hover: + wird -, Unterstreichung fährt ein */
.nav__link:hover{
  text-shadow: 0 10px 26px rgba(0,0,0,0.50);
  transform: translateY(-1px);
}
.nav__link:hover::before{
  content: "-";
  opacity: 1;
  transform: translateY(-0.5px) scale(1.05);
}
.nav__link:hover::after{
  opacity: 1;
  transform: scaleX(1);
}

/* Active: ebenfalls - + Linie sichtbar */
.nav__link.active{
  text-shadow: 0 10px 26px rgba(0,0,0,0.55);
}
.nav__link.active::before{
  content: "-";
}
.nav__link.active::after{
  opacity: 1;
  transform: scaleX(1);
}

/* Fokus */
.nav__link:focus-visible{
  box-shadow: 0 0 0 3px rgba(255, 206, 4, 0.28);
}

/* Anfragen etwas dicker */
.nav__link--anfragen{
  font-weight: 700;
}
.nav__item--anfragen .nav__link::before{
  font-weight: 750;
}

/* ===== Content / Sections ===== */
.main{ display: block; }

.section{
  scroll-margin-top: calc(var(--nav-h) + 14px);
  border-bottom: 2px solid var(--border);
  background: transparent;
}

.container{
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 44px var(--pad);
}

h1,h2,h3{
  margin: 0 0 12px 0;
  line-height: 1.15;
}
h1{ font-size: clamp(1.9rem, 3.1vw, 2.6rem); }
h2{ font-size: clamp(1.5rem, 2.4vw, 2.0rem); }
h3{ font-size: 1.1rem; }

p{
  margin: 0 0 12px 0;
  color: var(--muted);
  max-width: 72ch;
}
.lead{
  font-size: 1.05rem;
  color: #3b4250;
}

/* Karten/Flächen mit klaren Abgrenzungen */
.card, .panel, .form{
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Grid: 2 nebeneinander, dann Umbruch */
.grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.grid--2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Karten */
.card{
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
}

/* Split */
.split{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.panel{
  padding: 18px;
}

/* Form */
.form{
  margin-top: 16px;
  padding: 18px;
  max-width: 720px;
  display: grid;
  gap: 14px;
}

.label{
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  color: #2b2f36;
}

.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: #fafbfc;
  color: var(--text);
  outline: none;
}
.input:focus{
  border-color: rgba(61,32,88,0.65);
  box-shadow: 0 0 0 3px rgba(61, 32, 88, 0.14);
}
.input--textarea{ resize: vertical; }

.button{
  justify-self: start;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: var(--purple);
  color: var(--yellow);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, filter 160ms ease;
}
.button:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.footer{
  margin-top: 16px;
  color: #6b7280;
}

/* Kontaktsektion leicht abgesetzt */
.section--contact{
  border-bottom: none;
}

/* ===== Scroll Reveal für Content (von links/rechts einschieben) ===== */
.reveal{
  opacity: 0;
  transform: translateX(0);
  transition: transform 520ms ease, opacity 520ms ease;
  will-change: transform, opacity;
}

.reveal.from-left{
  transform: translateX(-48px);
}

.reveal.from-right{
  transform: translateX(48px);
}

.reveal.in-view{
  opacity: 1;
  transform: translateX(0);
}

@media (prefers-reduced-motion: reduce){
  .reveal{
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }
}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .brand__name{ display: none; }
  .nav__list{ gap: 14px; }
}

@media (max-width: 720px){
  .bar{
    gap: 12px;
  }
  .nav__list{
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 6px;
  }
  .grid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .nav__link::after{
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .card, .button{ transition: none; }
  .card:hover, .button:hover{ transform: none; }
}
