@import url("fonts.css");

/* ============================================================
   nexorin.de — Stylesheet
   ============================================================ */

:root {
  /* Brand */
  --orange:        #FF7A00;
  --orange-light:  #FF9A2A;
  --orange-dark:   #D95F00;
  --anthracite:    #3A434A;
  --anthracite-2:  #4A5258;
  --ink:           #1A1A1A;

  /* Surface */
  --bg:            #FFFFFF;
  --bg-alt:        #F5F5F5;
  --bg-deep:       #2A3138;
  --line:          #E4E4E4;
  --line-strong:   #C8CCD0;

  /* Typography */
  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(5rem, 10vw, 9rem);

  /* Type scale */
  --h1: clamp(2.8rem, 8.5vw, 7rem);
  --h2: clamp(2rem, 5.5vw, 4.5rem);
  --h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --lead: clamp(1.05rem, 1.4vw, 1.25rem);
  --num: clamp(0.95rem, 1.1vw, 1.1rem);

  /* Motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0ms !important; transition-duration: 0ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--anthracite);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #fff; }
.section--deep .lead, .section--deep .section-num { color: #fff; }

.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 800px) {
  .section-head { grid-template-columns: max-content 1fr; gap: 3rem; align-items: baseline; }
}
.section-num {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--num);
  color: var(--orange);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.section-num::after {
  content: "";
  display: inline-block;
  width: 2.5rem; height: 1px;
  background: var(--orange);
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; color: var(--anthracite); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); font-weight: 500; line-height: 1.25; }
h4 { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
p { margin: 0 0 1rem; max-width: 65ch; }
.lead { font-size: var(--lead); color: var(--anthracite-2); max-width: 60ch; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.75rem; }
.brand img { height: 34px; width: auto; }
.brand-text { display: none; }
@media (min-width: 600px) { .brand-text { display: inline; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--anthracite); } }
.brand-text .accent { color: var(--orange); }

.nav { display: none; }
@media (min-width: 900px) {
  .nav { display: flex; gap: 2rem; align-items: center; }
  .nav a { font-size: 0.95rem; color: var(--anthracite); position: relative; padding-block: 0.25rem; }
  .nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--orange); transition: right .3s var(--ease); }
  .nav a:hover::after { right: 0; }
}
.nav-cta { display: inline-flex; align-items: center; gap: 0.5rem; }

/* Mobile menu */
.burger {
  display: inline-flex; flex-direction: column; gap: 5px;
  background: transparent; border: 0; padding: 0.6rem; border-radius: 6px;
  width: 44px; height: 44px; align-items: center; justify-content: center;
}
.burger span { display: block; width: 22px; height: 2px; background: var(--anthracite); transition: transform .3s var(--ease), opacity .2s var(--ease); }
@media (min-width: 900px) { .burger { display: none; } }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 40;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; align-items: stretch;
  padding: 6rem var(--gutter) 4rem;
  gap: 0.5rem;
  transform: translateY(-100%);
  transition: transform .4s var(--ease);
  visibility: hidden;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(1.75rem, 6vw, 2.5rem);
  color: var(--anthracite);
  padding: 0.5rem 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.mobile-nav a .n { color: var(--orange); font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  border: 1px solid transparent; border-radius: 999px;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease);
  cursor: pointer;
}
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(255, 122, 0, .5); }
.btn--ghost { background: transparent; color: var(--anthracite); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--anthracite); background: var(--anthracite); color: #fff; }
.btn--light { background: #fff; color: var(--anthracite); }
.btn--light:hover { background: var(--orange); color: #fff; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-block: 8rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  font-family: var(--font-display); font-weight: 500;
  font-size: 0.95rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: var(--h1);
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin-bottom: 1.75rem;
}
.hero h1 .accent { color: var(--orange); }
.hero p.lead { font-size: clamp(1.1rem, 1.7vw, 1.5rem); margin-bottom: 2.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 2rem;
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--anthracite-2);
  display: inline-flex; align-items: center; gap: 0.75rem;
}
.hero-scroll::before { content: ""; width: 30px; height: 1px; background: currentColor; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(255,122,0,0.10), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(58,67,74,0.06), transparent 50%);
}

/* ---------- About (Sektion 2) ---------- */
.about-grid {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.about-text h2 { margin-bottom: 1.5rem; }
.about-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--orange);
  border-left: 3px solid var(--orange);
  padding-left: 1.25rem;
  margin: 2rem 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.about-image { border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,0.25); }
.about-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ---------- Services (Sektion 3) ---------- */
.services {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .services { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 30px 60px -30px rgba(255,122,0,0.2); }
.section--alt .service { background: #fff; }
.service-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.9rem; color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.service h3 { margin-bottom: 1rem; font-weight: 700; }
.service p { color: var(--anthracite-2); }
.service ul { list-style: none; padding: 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); padding-top: 1.25rem; }
.service ul li { padding: 0.45rem 0; font-size: 0.95rem; color: var(--anthracite); display: flex; gap: 0.6rem; align-items: baseline; }
.service ul li::before { content: "—"; color: var(--orange); flex: none; }
.service-price { margin-top: auto; padding-top: 1.5rem; font-family: var(--font-display); font-weight: 500; color: var(--anthracite-2); font-size: 0.9rem; }
.service-price strong { color: var(--orange); }

/* ---------- Referenzen (Sektion 4) ---------- */
.projects { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .projects { grid-template-columns: repeat(3, 1fr); } }

.project {
  position: relative;
  border-radius: 14px;
  background: var(--bg-alt);
  aspect-ratio: 4/3;
  display: flex; align-items: flex-end;
  padding: 1.75rem;
  overflow: hidden;
  border: 1px dashed var(--line-strong);
}
.project-tag {
  position: absolute; top: 1.25rem; left: 1.25rem;
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.project h3 { color: var(--anthracite); font-weight: 700; line-height: 1.2; font-size: 1.4rem; max-width: 90%; }
.project .project-meta { font-size: 0.9rem; color: var(--anthracite-2); margin-top: 0.5rem; }

/* ---------- Team (Sektion 5) ---------- */
.team { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .team { grid-template-columns: repeat(2, 1fr); gap: 3rem; } }
.team-member-image { aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; margin-bottom: 1.5rem; background: var(--bg-alt); }
.team-member-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.team-member:hover .team-member-image img { transform: scale(1.04); }
.team-member-role {
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.team-member h3 { font-weight: 700; margin-bottom: 0.75rem; }
.team-member p { color: var(--anthracite-2); }
.team-finale {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 50ch;
  color: var(--anthracite);
}
.team-finale .accent { color: var(--orange); }

/* ---------- Kontakt (Sektion 6) ---------- */
.contact { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; align-items: start; } }
.contact h2 { margin-bottom: 1.5rem; }
.contact-info { font-family: var(--font-display); font-size: 1.15rem; margin: 1.5rem 0; }
.contact-info a { color: var(--orange); }
.contact-info a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-meta { color: var(--anthracite-2); font-size: 0.95rem; }
.contact-meta strong { color: var(--anthracite); font-weight: 500; display: block; margin-bottom: 0.25rem; }

.form { display: grid; gap: 1rem; }
.form label { display: block; }
.form .lbl { display: block; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--anthracite-2); margin-bottom: 0.4rem; font-family: var(--font-display); }
.form input, .form textarea {
  width: 100%; font: inherit; font-family: var(--font-body);
  padding: 0.85rem 1rem;
  background: #fff; border: 1px solid var(--line-strong); border-radius: 8px;
  color: var(--anthracite);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,122,0,0.18); }
.form textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--anthracite-2); }
.form button[type="submit"] { justify-self: start; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-deep); color: #fff;
  padding-block: 5rem 2rem;
}
.footer-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; } }
.footer h4 { color: #fff; margin-bottom: 1.25rem; opacity: 0.6; }
.footer p, .footer a, .footer li { color: rgba(255,255,255,0.78); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { padding: 0.25rem 0; }
.footer a:hover { color: var(--orange); }
.footer-brand img { height: 44px; margin-bottom: 1.25rem; filter: brightness(0) invert(1); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 2rem; margin-top: 4rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Floating CTA (mobile) ---------- */
.float-cta {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 30;
  box-shadow: 0 16px 32px -10px rgba(255,122,0,0.5);
}
@media (min-width: 900px) { .float-cta { display: none; } }

/* ---------- Reveal-on-Scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */
.legal { padding-block: 7rem var(--section-y); max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 2rem; }
.legal h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin: 2.5rem 0 0.75rem; }
.legal h3 { font-size: 1.1rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { color: var(--anthracite-2); }
.legal ul { padding-left: 1.25rem; }
.legal a { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-bottom: 2rem; color: var(--anthracite-2); font-family: var(--font-display); font-size: 0.9rem;
}
.legal-back:hover { color: var(--orange); }

/* ---------- Utility ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
