/* JOVISCO – dunkles Metallic-Design (gebürsteter Stahl, blauer Akzent). Mobile-first. */

@font-face { font-family: 'Lato'; font-weight: 400; font-style: normal; font-display: swap; src: url('/fonts/lato-400.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 700; font-style: normal; font-display: swap; src: url('/fonts/lato-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-weight: 900; font-style: normal; font-display: swap; src: url('/fonts/lato-900.woff2') format('woff2'); }

:root {
  --bg-1: #12181b;
  --bg-2: #0c2f52;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --text: #e8eef0;
  --text-muted: #b4c0c4;
  --accent: #4da6ff;
  --accent-hover: #7bbcff;
  --accent-contrast: #0b1319;
  --petrol: #2fa3b0;
  --border: rgba(255, 255, 255, 0.16);
  --card-light: #243240; /* hellster Punkt der Kartenfläche, Basis der Kontrastprüfung */
  --steel-edge: linear-gradient(145deg, #d9e2e8 0%, #6f7f8c 25%, #2a3946 50%, #8fa0ad 75%, #e3eaef 100%);
  --header-h: 5rem;
  --radius: 0.75rem;
  --font: 'Lato', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg-1);
  /* Metallic: gebürstete Struktur über einem Verlauf aus Anthrazit, Stahl und Blau */
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0, rgba(255, 255, 255, 0.022) 1px, transparent 1px, transparent 4px),
    linear-gradient(115deg, #0d1317 0%, #1b2630 22%, #0f171d 38%, #22303c 58%, #101a22 74%, var(--bg-2) 100%);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; font-weight: 900; overflow-wrap: anywhere; hyphens: manual; }
h1 { font-size: clamp(1.75rem, 6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p, li, dd, address { overflow-wrap: anywhere; }
p { margin: 0 0 1rem; }
a { color: var(--accent-hover); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }

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

.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 600px) { .container { padding: 0 1.5rem; } }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-contrast); padding: 0.5rem 1rem; z-index: 100; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Kopfzeile */
.site-header {
  position: static;
  z-index: 50;
  background: linear-gradient(180deg, rgba(40, 54, 66, 0.97) 0%, rgba(18, 26, 33, 0.97) 100%);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 24px rgba(0, 0, 0, 0.45);
}
.js .site-header { position: sticky; top: 0; }
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
  .site-header { background: linear-gradient(180deg, rgba(40, 54, 66, 0.92) 0%, rgba(18, 26, 33, 0.92) 100%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: inline-flex; line-height: 0; }
.brand img { width: 11.5rem; height: auto; }

.nav-toggle { display: none; }
.js .nav-toggle {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 700; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem;
  padding: 0.5rem 0.9rem; cursor: pointer; min-height: 2.75rem;
}
.nav-toggle:hover { background: var(--surface-strong); }

#site-nav { flex-basis: 100%; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
#site-nav a { display: block; padding: 0.75rem 0.25rem; color: var(--text); text-decoration: none; font-weight: 700; border-top: 1px solid var(--border); }
#site-nav a:hover { color: var(--accent-hover); }
.js #site-nav { display: none; }
.js #site-nav.is-open { display: block; }

@media (min-width: 900px) {
  .site-header { position: sticky; top: 0; }
  .brand img { width: 13.5rem; }
  .js .nav-toggle { display: none; }
  #site-nav, .js #site-nav { display: block; flex-basis: auto; }
  #site-nav ul { flex-direction: row; gap: 0.25rem; }
  #site-nav a { border-top: 0; padding: 0.5rem 0.9rem; border-radius: 0.5rem; }
  #site-nav a { border: 1px solid transparent; }
  #site-nav a:hover { border-color: rgba(255, 255, 255, 0.18); background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)); }
}

/* Abschnitte */
main { display: block; scroll-margin-top: var(--header-h); }
.section { padding: 4rem 0; scroll-margin-top: var(--header-h); }
.section__title { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1.1rem; }
.section__title::after { content: ""; flex: 1; min-width: 1rem; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #9fb0bc 0%, rgba(77, 166, 255, 0.6) 40%, transparent 100%); }
.section--hero { padding: 4rem 0 5rem; }
.section--hero h1 { color: #eef3f6; background: linear-gradient(180deg, #ffffff 0%, #c9d5dd 55%, #8ea2b1 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.page-title { padding-top: 3rem; padding-bottom: 4rem; }

/* Bausteine */
.btn {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 0.85rem 1.6rem; border-radius: 0.65rem; border: 1px solid transparent; min-height: 2.75rem;
}
.btn--primary {
  color: var(--accent-contrast); border-color: #9bd0ff; background-color: var(--accent);
  background-image: linear-gradient(180deg, #a9d7ff 0%, #5aaeff 48%, #3d93ec 52%, #6ab8ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), inset 0 -1px 0 rgba(0, 0, 0, 0.25), 0 6px 18px rgba(0, 0, 0, 0.5);
}
.btn--primary:hover { color: var(--accent-contrast); background-image: linear-gradient(180deg, #c3e3ff 0%, #78bdff 48%, #52a2f4 52%, #86c4ff 100%); }
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.28); color: var(--text);
  background-image: linear-gradient(180deg, #3a4955 0%, #232f39 50%, #1a242d 51%, #27333d 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 16px rgba(0, 0, 0, 0.45);
}
.btn--ghost:hover { color: #fff; background-image: linear-gradient(180deg, #4a5b68 0%, #2d3b47 50%, #222e38 51%, #32414d 100%); }

.card {
  border: 1px solid transparent; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-light) 0%, #16202a 55%, #1b2733 100%) padding-box, var(--steel-edge) border-box;
  padding: 1.5rem; min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 14px 30px rgba(0, 0, 0, 0.5);
}

/* Fußzeile */
.site-footer { border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(14, 20, 25, 0.9), rgba(8, 12, 15, 0.95)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); padding: 2rem 0; color: var(--text-muted); font-size: 0.95rem; }
.footer__inner { display: flex; flex-direction: column; gap: 1rem; }
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (min-width: 600px) { .footer__inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Animationen (wenige, dezent). Ohne JS und bei reduzierter Bewegung ist alles sofort sichtbar. */
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.section--hero h1, .section--hero .lead, .section--hero .actions { animation: fade-up 0.8s ease-out both; }
.section--hero .lead { animation-delay: 0.12s; }
.section--hero .actions { animation-delay: 0.24s; }

.reveal-ready .reveal:not(.is-visible) { opacity: 0; transform: translateY(18px); }
/* Übergang nur zum sichtbaren Zustand hin: kein Aufblitzen, wenn das Skript den Ausgangszustand setzt */
.reveal-ready .reveal.is-visible { transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease; }
.card:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 18px 38px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(77, 166, 255, 0.5); }
@media (hover: hover) { .card.is-visible:hover { transform: translateY(-3px); } }
.btn { transition: background-color 0.2s ease, color 0.2s ease; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready .reveal:not(.is-visible) { opacity: 1 !important; transform: none !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Startseite */
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 42rem; }
.section__intro { color: var(--text-muted); max-width: 42rem; margin-bottom: 1.5rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.4rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card h3 { color: #fff; }
.card > p { color: var(--text-muted); }
.tags, .plain { list-style: none; margin: 0; padding: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.tags li { font-size: 0.85rem; padding: 0.2rem 0.65rem; border-radius: 0.4rem; border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text); background: linear-gradient(180deg, rgba(77, 166, 255, 0.28) 0%, rgba(77, 166, 255, 0.1) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.plain li { padding: 0.35rem 0; border-top: 1px solid var(--border); color: var(--text-muted); }
.plain li:first-child { border-top: 0; }

.about { max-width: 48rem; }

.contact { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact { grid-template-columns: 2fr 1fr; align-items: center; } }
.contact .btn { overflow-wrap: anywhere; }
address { font-style: normal; color: var(--text-muted); }
address strong { color: #fff; }
@media (min-width: 900px) {
  /* siebte Leistungskarte nicht allein in der Zeile stehen lassen */
  .grid--3 > .card:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}

/* Impressum und Datenschutz */
.legal { max-width: 48rem; margin: 0 0 4rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p { color: var(--text-muted); }
.legal a { overflow-wrap: anywhere; }
mark.placeholder { background: #f2d16b; color: #1a1a1a; padding: 0 0.3em; border-radius: 0.25rem; }



/* Sprachumschalter */
#site-nav .nav-lang a { font-weight: 900; letter-spacing: 0.04em; }
@media (min-width: 900px) {
  #site-nav .nav-lang a { border: 1px solid var(--border); margin-left: 0.5rem; }
}

/* Skizzen als Hintergrund-Dekoration: handgezeichnet, blass, hinter dem Inhalt */
.bg-art { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.bg-art__item {
  position: absolute; display: block; width: min(86vw, 640px); aspect-ratio: 8 / 5;
  background: no-repeat center / contain; opacity: 0.06; pointer-events: none;
}
.bg-art__item--arch { top: 7%; right: -12%; transform: rotate(-3deg); background-image: url('/img/sketch-architecture.svg'); }
.bg-art__item--seq { top: 38%; left: -16%; transform: rotate(2.5deg); background-image: url('/img/sketch-sequence.svg'); }
.bg-art__item--code { top: 45%; right: -12%; transform: rotate(-2deg); background-image: url('/img/sketch-code.svg'); }
@media (min-width: 900px) {
  .bg-art__item { width: min(48vw, 720px); opacity: 0.09; }
  .bg-art__item--arch { right: -2%; }
  .bg-art__item--seq { left: -4%; }
  .bg-art__item--code { right: -2%; }
}
