/* ==========================================================================
   mtnSOFT — IT for mountain people
   Farben aus dem Logo: #0055d4 (Blau), #ffcc00 (Gelb)
   ========================================================================== */

/* ---------- Ubuntu (selbst gehostet, latin) ---------- */
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../Fonts/ubuntu-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../Fonts/ubuntu-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Ubuntu";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../Fonts/ubuntu-700-latin.woff2") format("woff2");
}

/* ---------- Design Tokens ---------- */
:root {
  /* Marke */
  --blue:        #0055d4;
  --blue-600:    #0047b3;
  --blue-050:    #eaf1ff;
  --yellow:      #ffcc00;

  /* Neutral */
  --ink:         #101820;
  --ink-soft:    #3d4a58;
  --muted:       #667586;
  --bg:          #ffffff;
  --bg-alt:      #f4f6fa;
  --surface:     #ffffff;
  --border:      #e2e7ee;

  /* Dunkler Hero */
  --night:       #071427;

  /* Masse */
  --wrap:        1120px;
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --radius:      14px;
  --shadow:      0 1px 2px rgba(16, 24, 32, .05), 0 12px 32px -12px rgba(16, 24, 32, .18);

  /* Typo */
  --font-head:   "Ubuntu", "Ubuntu Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dunkles Farbschema (folgt der Systemeinstellung) */
@media (prefers-color-scheme: dark) {
  :root {
    --ink:      #eaf0f7;
    --ink-soft: #b7c4d3;
    --muted:    #8d9db0;
    --bg:       #0b1520;
    --bg-alt:   #101d2b;
    --surface:  #12202f;
    --border:   #23384c;
    --blue-050: #14263f;
    --shadow:   0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px -12px rgba(0, 0, 0, .7);
  }
  /* Blaues Logo auf dunklem Grund etwas anheben */
  .logo img { filter: brightness(1.45) saturate(1.15); }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* Höhe des Sticky-Headers */
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-600); }

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

.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--yellow);
  color: #101820;
  padding: .75rem 1.25rem;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.logo { display: inline-flex; align-items: center; }
.logo img { width: auto; height: 30px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: .975rem;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--yellow); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--blue); }

.site-nav .nav-cta {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-weight: 700;
}
.site-nav .nav-cta:hover { background: var(--blue-600); color: #fff; }

/* Mobile-Burger (reines CSS, kein JavaScript) */
.nav-toggle {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nav-burger { display: none; }
.nav-toggle:focus-visible ~ .nav-burger {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 78% -10%, rgba(0, 85, 212, .45), transparent 60%),
    linear-gradient(168deg, #0c2242 0%, #0d2548 62%, #11305c 100%);
  color: #fff;
  padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(7rem, 14vw, 10rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-inner { max-width: 46rem; position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: lowercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.4vw, 4.75rem);
  color: #fff;
  margin-bottom: .35em;
}

.hero .hl {
  color: var(--yellow);
  position: relative;
  white-space: nowrap;
}

.hero .lead {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.375rem);
  color: #c8d6e8;
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .875rem; }

.ridge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(48px, 8vw, 110px);
  display: block;
  z-index: 0;
}
.ridge path { fill: var(--bg); }
.ridge .ridge-back { fill: color-mix(in srgb, var(--blue) 55%, var(--night)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--yellow); color: #101820; }
.btn-primary:hover { background: #ffd733; color: #101820; }

.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.125rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.section-eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(1.85rem, 1.4rem + 1.9vw, 2.75rem);
  max-width: 20ch;
}

.section-intro {
  color: var(--ink-soft);
  font-size: 1.0625rem;
  max-width: 52ch;
  margin-bottom: 3rem;
}

/* ---------- Leistungs-Karten ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 55%, var(--yellow) 55% 100%);
  opacity: 0;
  transition: opacity .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--border));
}
.card:hover::before { opacity: 1; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--blue-050);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon path { fill: var(--blue); }

.card h3 { font-size: 1.3rem; }
.card p { color: var(--ink-soft); font-size: .9875rem; }

.card-list,
.card ul {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}
.card-list li,
.card ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: .5rem;
  font-size: .9125rem;
  color: var(--muted);
}
.card-list li::before,
.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 8px;
  height: 8px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--yellow);
}
.card-list li:last-child,
.card ul li:last-child { margin-bottom: 0; }

/* ---------- Über mich ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.about-media { position: sticky; top: 100px; }

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  border: 2px dashed color-mix(in srgb, var(--blue) 35%, var(--border));
  border-radius: var(--radius);
  background: var(--blue-050);
  display: grid;
  place-items: center;
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .85rem;
}
.about-media img { border-radius: var(--radius); width: 100%; }

.about-text .section-title { margin-bottom: 1rem; }
.about-text p { color: var(--ink-soft); }

.facts {
  list-style: none;
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-block: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.25rem;
}
.facts li { display: flex; flex-direction: column; gap: .2rem; }
.facts strong {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
}
.facts span { font-family: var(--font-head); font-weight: 500; color: var(--ink); }

.stack-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .85rem;
}

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; }
.tags li {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: .3rem .85rem;
  font-size: .8375rem;
  color: var(--ink-soft);
}

/* ---------- Kontakt ---------- */
.contact-inner { text-align: center; }
.contact-inner .section-title,
.contact-inner .section-intro { margin-inline: auto; }
.contact-inner .section-intro { margin-bottom: 2.5rem; }

.contact-meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 2rem;
  margin: 2.5rem 0 0;
  padding: 0;
}
.contact-meta a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.contact-meta a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--night);
  color: #93a6bd;
  padding: 2.5rem 0;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.footer-brand { margin: 0; }
.footer-brand strong { color: #fff; font-family: var(--font-head); }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a { color: #93a6bd; text-decoration: none; }
.footer-nav a:hover { color: var(--yellow); }
.footer-copy { margin: 0; color: #6d8199; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about-media { position: static; max-width: 18rem; }
}

@media (max-width: 640px) {
  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    cursor: pointer;
    order: 3;
  }
  .nav-burger span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .site-nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    display: none;
    padding-bottom: .75rem;
  }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav a {
    padding: .75rem .25rem;
    border-bottom: 1px solid var(--border);
  }
  .site-nav .nav-cta {
    margin-top: .75rem;
    text-align: center;
    border-bottom: 0;
    padding: .7rem 1.1rem;
  }

  .header-inner { flex-wrap: wrap; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- TYPO3 ---------- */
/* Core content elements (text, textmedia, …) inside a section */
.section .ce-bodytext,
.section .ce-gallery { color: var(--ink-soft); }
.section .ce-bodytext h2,
.section .ce-bodytext h3 { color: var(--ink); }
