/* =========================================================
   360solutions – Stylesheet
   Farben zentral ändern: einfach die Werte unter :root anpassen.
   ========================================================= */

/* Schrift Manrope – lokal eingebunden (kein Google-Server nötig).
   Datei "Manrope-VariableFont_wght.ttf" in den Ordner /fonts legen.
   Fehlt die Datei, wird automatisch eine Systemschrift verwendet. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/Manrope-VariableFont_wght.woff2") format("woff2"),
       url("../fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #C2410C;        /* Haupt-Orange (Buttons, Links) */
  --accent-dark: #9A3412;   /* Orange beim Drüberfahren */
  --accent-bright: #EA580C; /* helles Orange für Linien/Grafik */
  --accent-soft: #FFEDD5;   /* zartes Orange für Badges */
  --tint: #FFF7F0;          /* warmer Hintergrund-Ton */
  --ink: #1C1917;           /* Textfarbe */
  --muted: #57534E;         /* Fließtext grau */
  --line: #F0EBE6;          /* Trennlinien */
  --stone: #F5F5F4;
  --dark: #1C1917;
  --dark-2: #292524;
  --radius: 24px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 112px 0; }
.section--tint { background: var(--tint); }
.eyebrow {
  margin-bottom: 8px; color: var(--accent); font-weight: 700; font-size: 14px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.h2 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; }
.lead { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn--primary { background: var(--accent); color: #FFFFFF; }
.btn--primary:hover { color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(194,65,12,.25); }
.btn--ghost { background: #FFFFFF; color: var(--ink); border: 1px solid #E7E0D9; }
.btn--ghost:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark {
  width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--accent);
}
.logo__text { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo__text span { color: var(--accent); }
.logo img { height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a:not(.btn) { color: #44403C; text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--accent); }
.nav .btn { min-height: 44px; padding: 10px 20px; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
  background: #FFFFFF; cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--tint) 0%, #FFFFFF 100%); }
.hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 112px; }
.hero__text { flex: 1 1 480px; min-width: 0; }
.badge {
  display: inline-block; margin-bottom: 20px; background: var(--accent-soft); color: var(--accent-dark);
  font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px;
}
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 24px; }
.hero__lead { font-size: 20px; color: var(--muted); max-width: 540px; margin-bottom: 36px; }
.hero__buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 48px; font-size: 15px; color: var(--muted); }
.facts span { display: flex; align-items: center; gap: 8px; }

.hero__visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; }
.globe { position: relative; width: 100%; max-width: 480px; aspect-ratio: 1 / 1; }
.globe svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.globe__arc { transform-origin: 50% 50%; animation: spin 24s linear infinite; }
.globe__card {
  position: absolute; left: 12%; right: 12%; top: 30%; bottom: 30%;
  background: #FFFFFF; border-radius: 20px; box-shadow: 0 20px 50px rgba(28,25,23,0.12);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 16px; overflow: hidden;
}
.globe__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.globe__card strong { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.globe__card span { font-size: 15px; color: var(--muted); font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Kacheln (Rundgänge) ---------- */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 44px; }
.section-head > div { max-width: 600px; }
.section-head .lead { max-width: 420px; }
.tiles { display: flex; flex-wrap: wrap; gap: 20px; }
.tile {
  flex: 1 1 280px; min-width: 0; background: var(--tint); border-radius: var(--radius); padding: 36px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,25,23,.08); }
.tile__num { color: var(--accent); font-weight: 800; margin-bottom: 16px; }
.tile h3 { font-size: 22px; margin-bottom: 8px; letter-spacing: -0.01em; }
.tile p { color: var(--muted); }

/* ---------- IT-Box (dunkel) ---------- */
.it-box {
  background: var(--dark); color: #FAFAF9; border-radius: 32px; padding: 64px 56px;
  display: flex; flex-wrap: wrap; gap: 48px;
}
.it-box__intro { flex: 1 1 360px; min-width: 0; }
.it-box__intro .eyebrow { color: #FDBA74; }
.it-box__intro h2 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.it-box__intro p { color: #D6D3D1; }
.it-box__grid { flex: 1 1 520px; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.it-card { flex: 1 1 240px; background: var(--dark-2); border-radius: 18px; padding: 24px; }
.it-card h3 { font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.it-card p { color: #D6D3D1; font-size: 15px; }
@media (max-width: 600px) { .it-box { padding: 40px 24px; } }

/* ---------- Ablauf ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 56px; }
.step { flex: 1 1 280px; min-width: 0; border-top: 2px solid var(--accent-bright); padding-top: 24px; }
.step__num { font-size: 40px; font-weight: 800; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--muted); }

/* ---------- Referenz ---------- */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.media {
  flex: 1 1 560px; min-width: 0; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden;
  background: var(--stone); display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-weight: 600; text-align: center; padding: 24px;
}
.media iframe, .media img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.media:has(iframe), .media:has(img) { padding: 0; }
.split__text { flex: 1 1 360px; min-width: 0; }
.split__text h2 { margin-bottom: 20px; }
.split__text .lead { margin-bottom: 28px; }
.link-arrow { font-weight: 700; text-decoration: none; }

/* ---------- Über mich ---------- */
.portrait {
  flex: 0 1 320px; min-width: 0; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden;
  background: #FFFFFF; display: flex; align-items: center; justify-content: center;
  font-size: 64px; font-weight: 800; color: var(--accent); letter-spacing: -0.03em;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__text { flex: 1 1 480px; min-width: 0; }
.about__text h2 { margin-bottom: 20px; }
.about__text p { color: #44403C; font-size: 19px; margin-bottom: 16px; }

/* ---------- Kontakt ---------- */
.contact {
  border: 1px solid var(--line); border-radius: 32px; padding: 64px 48px;
  display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; align-items: center;
}
.contact__title { flex: 1 1 420px; min-width: 0; }
.contact__title h2 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; line-height: 1.1; margin-bottom: 16px; }
.contact__title h2 span { color: var(--accent); }
.contact__links { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: flex; justify-content: space-between; gap: 12px; padding: 18px 24px; border-radius: 16px;
  font-weight: 700; text-decoration: none; transition: transform .15s ease;
}
.contact-link:hover { transform: translateX(4px); }
.contact-link--primary { background: var(--accent); color: #FFFFFF; }
.contact-link--primary:hover { color: #FFFFFF; }
.contact-link--plain { background: var(--stone); color: var(--ink); }
.contact-link--plain:hover { color: var(--ink); }
.contact__address { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 600px) { .contact { padding: 40px 24px; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer__links { display: flex; gap: 24px; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */
.legal { padding: 80px 0 112px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; margin-bottom: 40px; }
.legal h2 { font-size: 24px; font-weight: 800; margin: 48px 0 12px; }
.legal h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.legal p, .legal li { color: #44403C; margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.legal dl { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 10px 24px; margin: 0; }
.legal dt { font-weight: 700; }
.legal dd { margin: 0; color: #44403C; }
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }
.legal .stand { margin-top: 48px; font-size: 14px; color: var(--muted); }

/* ---------- Einblende-Animation beim Scrollen ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .globe__arc { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Referenzen-Slider ---------- */
.ref-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.ref-controls { display: flex; align-items: center; gap: 10px; }
.ref-count { margin-right: 8px; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ref-count b { color: var(--ink); }
.ref-btn {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid #E7E0D9; background: #FFFFFF; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.ref-btn:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.ref-btn:active { transform: scale(.94); }
.ref-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ref-viewport { overflow: hidden; border-radius: var(--radius); }
.ref-track { display: flex; transition: transform .55s cubic-bezier(.22,.8,.24,1); }
.ref-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding: 2px; }
.ref-slide .media { position: relative; flex: 1 1 600px; padding: 0; }
.ref-slide .media iframe { display: none; }
.ref-slide .media.is-live iframe { display: block; }
.ref-slide .media.is-live .media__soon { display: none; }
.media__soon { margin: 0; padding: 24px; }
.ref-text { flex: 1 1 320px; min-width: 0; }
.ref-place { color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.ref-text h3 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; margin-bottom: 16px; }
.ref-text .lead { margin-bottom: 24px; }

.ref-dots { display: flex; justify-content: center; gap: 10px; margin-top: 32px; }
.ref-dot { width: 44px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ref-dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #E7E0D9; transition: width .25s ease, background .25s ease; }
.ref-dot[aria-current="true"]::before { width: 28px; background: var(--accent); }
.ref-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .ref-track { transition: none; } }
.ref-slide:not(.is-live) .ref-open { display: none; }
