/* ============================================================
   Montageservice Loris Hausdörfer – style.css
   ============================================================ */

/* ── Variablen ─────────────────────────────────────────────── */
:root {
  --steel:      #1a1e24;
  --dark:       #0d1014;
  --rust:       #c45c26;
  --rust-light: #e07040;
  --silver:     #9aa3ad;
  --light:      #dde2e8;
  --white:      #f0f3f6;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Barlow', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
}

/* Noise-Textur */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── Custom Cursor ─────────────────────────────────────────── */
body { cursor: none; user-select: none; }

#weld-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 44px;
  height: 44px;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-5px, -5px);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7));
  transition: filter 0.05s;
}

#weld-cursor.welding {
  filter: drop-shadow(0 0 8px rgba(80,160,255,0.8));
}

/* Lichtbogen-Flash */
#arc-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99990;
  background: rgba(120,180,255,0);
  transition: background 0.04s;
}

#arc-flash.flash {
  background: rgba(120,180,255,0.06);
}

/* Funken */
.weld-spark {
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  border-radius: 50%;
  animation: weld-spark-fly var(--dur) ease-out forwards;
}

@keyframes weld-spark-fly {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  60%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(0.1); }
}

/* Glut-Tropfen */
.weld-glob {
  position: fixed;
  pointer-events: none;
  z-index: 99997;
  border-radius: 50%;
  animation: weld-glob-fall var(--dur) ease-in forwards;
}

@keyframes weld-glob-fall {
  0%   { opacity: 1; transform: translate(0,0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx),var(--dy)) scale(0.3); }
}

/* Lichtbogen-Linien */
.arc-line {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  width: 2px;
  border-radius: 1px;
  transform-origin: top center;
  animation: arc-flicker 0.08s steps(1) infinite;
}

@keyframes arc-flicker {
  0%   { opacity: 1;   transform: rotate(var(--r1)) scaleY(1);   background: #fff; }
  33%  { opacity: 0.7; transform: rotate(var(--r2)) scaleY(0.7); background: #a0d0ff; }
  66%  { opacity: 1;   transform: rotate(var(--r3)) scaleY(1.2); background: #ffe066; }
  100% { opacity: 0.8; transform: rotate(var(--r1)) scaleY(0.9); background: #fff; }
}

/* Cursor auf touch-Geräten wieder normal */
@media (hover: none) {
  body { cursor: auto; }
  #weld-cursor { display: none; }
}


/* Alle Vollbreiten-Hintergründe laufen über die ganze Breite,
   der Inhalt darin ist auf max. 60% eingeschränkt (1/5 · 3/5 · 1/5) */
.inner {
  width: 60%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Navigation ────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 16, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 92, 38, 0.2);
}

.nav-inner {
  width: 60%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.15em;
  color: var(--white);
  text-decoration: none;
}

.nav-logo span { color: var(--rust); }

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a,
.nav-back {
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-back:hover { color: var(--rust-light); }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(196,92,38,0.08) 0%, transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 60px,
      rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px,
      rgba(255,255,255,0.015) 60px, rgba(255,255,255,0.015) 61px);
}

.hero-accent {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  border: 1px solid rgba(196,92,38,0.15);
  border-radius: 50%;
}

.hero-accent::before {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid rgba(196,92,38,0.1);
  border-radius: 50%;
}

.hero-accent::after {
  content: '';
  position: absolute;
  inset: 80px;
  border: 1px solid rgba(196,92,38,0.07);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  max-width: 760px;
  animation: fadeUp 1s ease both;
}

.hero-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid rgba(196,92,38,0.4);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}

h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 9vw, 8rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--white);
  margin-bottom: 1.5rem;
}

h1 em {
  font-style: normal;
  color: var(--rust);
  -webkit-text-stroke: 1px var(--rust);
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver);
  max-width: 480px;
  margin-bottom: 2.5rem;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--white);
  background: var(--rust);
  padding: 0.9rem 2.5rem;
  transition: background 0.2s, transform 0.2s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn-primary:hover {
  background: var(--rust-light);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--silver);
  border: 1px solid rgba(154,163,173,0.3);
  padding: 0.9rem 2.5rem;
  margin-left: 1rem;
  transition: color 0.2s, border-color 0.2s;
}

.btn-secondary:hover { color: var(--white); border-color: var(--silver); }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--steel);
  border-top: 1px solid rgba(196,92,38,0.25);
  border-bottom: 1px solid rgba(196,92,38,0.1);
  padding: 2rem 0;
}

.stats-bar .inner {
  display: flex;
}

.stat {
  flex: 1;
  text-align: center;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.stat:last-child { border-right: none; }

.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.8rem;
  color: var(--rust);
  letter-spacing: 0.05em;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
  margin-top: 0.25rem;
}

/* ── Sections allgemein ────────────────────────────────────── */
section { padding: 7rem 0; }

.section-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--rust);
}

h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1.5rem;
}

/* ── Leistungen ────────────────────────────────────────────── */
#leistungen { background: var(--steel); }

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  margin-top: 3.5rem;
  background: rgba(196,92,38,0.15);
}

.leistung-card {
  background: var(--steel);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.leistung-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--rust);
  transition: height 0.4s ease;
}

.leistung-card:hover { background: #20262e; }
.leistung-card:hover::before { height: 100%; }

.leistung-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
  line-height: 1;
}

.leistung-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.leistung-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--silver);
  font-weight: 300;
}

.leistung-num {
  position: absolute;
  bottom: 1.25rem;
  right: 1.5rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 4rem;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none;
}

/* ── Über ──────────────────────────────────────────────────── */
#ueber .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.ueber-visual { position: relative; }

.ueber-plate {
  width: 100%;
  aspect-ratio: 4/3;
  background:
    repeating-linear-gradient(45deg,
      rgba(196,92,38,0.04) 0px, rgba(196,92,38,0.04) 1px,
      transparent 1px, transparent 12px),
    linear-gradient(135deg, #1e2530 0%, #141920 100%);
  border: 1px solid rgba(196,92,38,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ueber-plate-inner {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 6rem;
  color: rgba(196,92,38,0.15);
  letter-spacing: 0.05em;
  text-align: center;
  line-height: 1;
}

.ueber-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--rust);
  width: 110px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  clip-path: polygon(15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%, 0% 15%);
}

.ueber-badge-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--white);
  line-height: 1;
}

.ueber-badge-label {
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  text-align: center;
  line-height: 1.3;
}

.ueber-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--silver);
  font-weight: 300;
  margin-bottom: 1rem;
}

.ueber-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light);
}

.highlight-dot {
  width: 6px;
  height: 6px;
  background: var(--rust);
  flex-shrink: 0;
}

/* ── Prozess ───────────────────────────────────────────────── */
#prozess {
  background: linear-gradient(180deg, var(--dark) 0%, var(--steel) 100%);
}

.prozess-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 3.5rem;
  position: relative;
}

.prozess-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, var(--rust), rgba(196,92,38,0.1));
}

.prozess-step {
  padding: 0 1.5rem;
  text-align: center;
}

.step-circle {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(196,92,38,0.5);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  clip-path: polygon(15% 0%, 85% 0%, 100% 15%, 100% 85%, 85% 100%, 15% 100%, 0% 85%, 0% 15%);
}

.step-circle-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  color: var(--rust);
}

.step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.step-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--silver);
  font-weight: 300;
}

/* ── Kontakt ───────────────────────────────────────────────── */
#kontakt {
  background: var(--dark);
  border-top: 1px solid rgba(196,92,38,0.15);
}

.kontakt-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.kontakt-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.kontakt-icon {
  width: 42px;
  height: 42px;
  background: rgba(196,92,38,0.1);
  border: 1px solid rgba(196,92,38,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.kontakt-item-text {
  font-size: 0.95rem;
  color: var(--light);
}

.kontakt-item-text a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.2s;
}

.kontakt-item-text a:hover { color: var(--rust-light); }

.kontakt-item-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 0.15rem;
}

.kontakt-info p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--silver);
  font-weight: 300;
  margin-bottom: 2.5rem;
}

/* ── Footer ────────────────────────────────────────────────── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 2rem 0;
}

footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: var(--silver);
}

.footer-logo span { color: var(--rust); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(154,163,173,0.5);
  letter-spacing: 0.05em;
}

.footer-copy a {
  color: rgba(154,163,173,0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-copy a:hover { color: var(--rust-light); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Unterseiten (Impressum / Datenschutz) ─────────────────── */
.page-content {
  padding: 10rem 0 6rem;
}

.page-tag {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--rust);
  border: 1px solid rgba(196,92,38,0.4);
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}

.page-content h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  margin-bottom: 3rem;
}

.section-block {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 0;
}

.section-block:last-of-type {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.section-block h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1rem;
  /* override global h2 */
  font-size: 0.72rem !important;
  line-height: 1.2;
}

.section-block p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--silver);
  font-weight: 300;
}

.section-block p + p { margin-top: 0.75rem; }

.placeholder {
  color: rgba(196,92,38,0.7);
  font-style: italic;
}

.section-block a { color: var(--rust-light); text-decoration: none; }
.section-block a:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .inner,
  .nav-inner { width: 80%; }
}

@media (max-width: 900px) {
  .inner,
  .nav-inner { width: 92%; }

  .nav-links { display: none; }

  section { padding: 5rem 0; }

  .leistungen-grid { grid-template-columns: 1fr; }

  #ueber .inner { grid-template-columns: 1fr; gap: 3rem; }

  .prozess-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .prozess-steps::before { display: none; }

  .stats-bar .inner { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; border: none; border-bottom: 1px solid rgba(255,255,255,0.06); }

  footer .inner { flex-direction: column; gap: 0.5rem; text-align: center; }

  .page-content { padding: 8rem 0 4rem; }
}
