/* =========================================================
   Schneider Prozessautomatik – Stylesheet
   Reihenfolge: Tokens, Basis, Layout, Header, Hero,
   Sektionen, Karten, Ablauf, Über mich, Kontakt, Footer,
   Responsive
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --accent:        #D9822B;
  --accent-dark:   #BF6F1F;
  --accent-soft:   #FBEEDF;

  --ink:           #1C2430;
  --ink-soft:      #46505E;
  --ink-mute:      #6E7885;

  --sand:          #F7F3EC;
  --sand-line:     #E7DFD2;
  --white:         #FFFFFF;
  --line:          #E4E7EB;

  --dark:          #171C24;
  --dark-soft:     #212832;

  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 1px 2px rgba(28,36,48,.05), 0 10px 30px rgba(28,36,48,.06);
  --shadow-lg:     0 24px 60px rgba(28,36,48,.14);

  --wrap:          1180px;
  --pad:           24px;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.16rem; letter-spacing: -.01em; }
h4 { font-size: 1rem; letter-spacing: -.01em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dark); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--pad);
}

section { padding: 92px 0; }

.eyebrow {
  margin: 0 0 .6rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  max-width: 62ch;
  font-size: 1.06rem;
  color: var(--ink-mute);
}

section > .wrap > h2 { margin-bottom: .55rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s,
              transform .18s, box-shadow .18s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 22px rgba(217,130,43,.28);
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(217,130,43,.34);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: #CFD5DD;
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(28,36,48,.04); }

.btn-sm { padding: 10px 18px; font-size: .88rem; }

.btn svg { flex: none; }

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  margin-right: auto;
}
.brand img { width: 42px; height: auto; }

.brand-txt { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand-sub {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .19em;
  color: var(--accent);
}

nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .18s;
}
nav a:hover { color: var(--accent-dark); }

.navtoggle {
  display: none;
  padding: 6px 10px;
  font-size: 1.4rem;
  line-height: 1;
  background: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 0;
  background: var(--white);
  overflow: hidden;
}

/* Sandfarbener Keil hinter dem Portrait */
.hero-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
  background: var(--sand);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

/* Akzent-Winkel auf der Kante */
.hero-edge {
  position: absolute;
  top: 0;
  right: 40%;
  width: 90px;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: end;
}

.hero-text { padding-bottom: 96px; }

.hero h1 { margin-bottom: .35em; }
.hero h1 .accent {
  display: block;
  color: var(--accent);
}

.hero-claim {
  margin-bottom: .8rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
}

.hero-sub {
  max-width: 46ch;
  font-size: 1.08rem;
  color: var(--ink-mute);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hero-media img {
  width: auto;
  max-height: 620px;
  filter: drop-shadow(0 26px 42px rgba(28,36,48,.18));
}

.hero-badge {
  position: absolute;
  top: 34px;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 13px 18px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--sand-line);
  box-shadow: var(--shadow);
}
.hero-badge span {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-mute);
}
.hero-badge strong {
  font-size: 1.02rem;
  color: var(--accent);
  letter-spacing: -.01em;
}

/* ---------- Sektions-Varianten ---------- */
.sec-sand {
  background: var(--sand);
  border-top: 1px solid var(--sand-line);
  border-bottom: 1px solid var(--sand-line);
}

.sec-dark {
  background: var(--dark);
  color: #C3CAD4;
}
.sec-dark h2, .sec-dark h4 { color: #fff; }
.sec-dark .lead { color: #9AA4B1; }

/* ---------- Leistungs-Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.card {
  padding: 30px 26px;
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #DCC7A9;
  box-shadow: var(--shadow-lg);
}

.card .ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.card h3 { margin-bottom: .45em; }
.card p { font-size: .96rem; color: var(--ink-mute); }

/* ---------- Ablauf ---------- */
.steps {
  display: grid;
  gap: 0;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
}

.step-no {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--accent);
  opacity: .55;
}

.step h3 { margin-bottom: .3em; }
.step p { font-size: .98rem; color: var(--ink-mute); max-width: 68ch; }

/* ---------- Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.about-photo {
  position: relative;
  display: flex;
  justify-content: center;
}
.about-photo::before {
  content: "";
  position: absolute;
  inset: auto 8% 0 8%;
  height: 72%;
  background: var(--white);
  border: 1px solid var(--sand-line);
  border-radius: var(--radius);
}
.about-photo img {
  position: relative;
  width: auto;
  max-height: 520px;
  filter: drop-shadow(0 18px 34px rgba(28,36,48,.16));
}

.usps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}

.usp { display: flex; gap: 13px; }
.usp .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.usp h4 { margin-bottom: .2em; }
.usp p { font-size: .93rem; color: var(--ink-mute); }

.about-cta { margin-top: 32px; }

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.contact-list a {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color .18s;
}
.contact-list a:hover { color: var(--accent); }
.contact-list .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dark-soft);
  color: var(--accent);
}

form {
  padding: 30px;
  background: var(--dark-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
}

form label {
  display: block;
  margin-bottom: 6px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #9AA4B1;
}

form input,
form textarea {
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  font: inherit;
  font-size: .96rem;
  color: #fff;
  background: #1A2029;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  transition: border-color .18s, box-shadow .18s;
}
form textarea { min-height: 128px; resize: vertical; }
form input::placeholder,
form textarea::placeholder { color: #6B7480; }
form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217,130,43,.2);
}

form .btn { width: 100%; justify-content: center; }

.formnote {
  margin: 14px 0 0;
  font-size: .8rem;
  color: #7C8593;
}
.formnote.ok { color: #7BC08A; }
.formnote.err { color: #E08A7A; }

/* Honeypot – für Menschen unsichtbar */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
footer {
  padding: 26px 0;
  background: #10151C;
  color: #79828F;
  font-size: .88rem;
}

.footrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footlinks {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footlinks a { color: #79828F; text-decoration: none; transition: color .18s; }
.footlinks a:hover { color: var(--accent); }

/* ---------- Rechtsseite (legal.html) ---------- */
.page-hero {
  padding: 64px 0 52px;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-line);
}
.page-hero p { max-width: 60ch; color: var(--ink-mute); }

.legal-block { max-width: 780px; }
.legal-block h3 { margin-top: 2rem; }
.legal-block p { color: var(--ink-soft); }
.legal-block .pre { white-space: pre-line; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 34px; }
  .about-photo { order: 2; }
  .contact { grid-template-columns: 1fr; gap: 34px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { padding-bottom: 34px; }
  .hero-shape { width: 100%; height: 52%; top: auto; bottom: 0; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); }
  .hero-edge { display: none; }
  .hero-media img { max-height: 460px; }
  .hero-badge { top: 8px; left: 4px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }

  .navcta { display: none; }
  .navtoggle { display: block; order: 3; }

  nav {
    order: 4;
    flex-basis: 100%;
    display: none;
    padding-bottom: 14px;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: flex-start; gap: 4px; }
  nav ul li { width: 100%; }
  nav ul a {
    display: block;
    padding: 11px 2px;
    border-bottom: 1px solid var(--line);
  }

  .navbar { flex-wrap: wrap; }

  .cards { grid-template-columns: 1fr; }
  .usps { grid-template-columns: 1fr; }
  .step { grid-template-columns: 58px 1fr; gap: 14px; }
  .step-no { font-size: 1.5rem; }
  form { padding: 22px; }
  .footrow { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
