/* ── verwendete, lokal vorhandene Schriften ── */
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/assets/fonts/DMSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── Variablen ── */
:root {
  --petrol:   oklch(52% 0.13 198deg);
  --melone:   oklch(72% 0.17  73deg);
  --rubinrot: oklch(43% 0.20  17deg);
  --blau:     oklch(44% 0.15 248deg);
  --violett:  oklch(38% 0.17 322deg);

  --mouse-x: 50%;
  --mouse-y: 50%;
  --bg: radial-gradient(
    ellipse at var(--mouse-x) var(--mouse-y),
    oklch(94% 0.022 80deg) 0%,
    oklch(89% 0.018 198deg) 100%
  );
  --surface: oklch(97% 0.006 80deg);
  --border:  oklch(85% 0.012 80deg);
  --text:    oklch(18% 0.01 198deg);
  --text2:   oklch(42% 0.01 198deg);
  --accent:  var(--petrol);
  --accent-h:var(--melone);

  --sans:   'DM Sans', system-ui, sans-serif;
  --shadow: 0 2px 12px oklch(0% 0 0 / 0.08);
}

[data-theme="dark"] {
  --bg: radial-gradient(
    ellipse at var(--mouse-x) var(--mouse-y),
    oklch(32% 0.025 198deg) 0%,
    oklch(14% 0.010 270deg) 100%
  );
  --surface: oklch(26% 0.012 198deg);
  --border:  oklch(34% 0.012 198deg);
  --text:    oklch(92% 0.006 198deg);
  --text2:   oklch(62% 0.010 198deg);
}

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

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: color .3s;
}

/* ── Focus-Styles (Tastaturnavigation) ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Header ── */
header {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 3px solid var(--accent);
  box-shadow: var(--shadow);
  z-index: 10;
}
.nav-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 0.7rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo:hover { color: var(--accent-h); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  flex: 1;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text2);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  transition: all .15s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.lang-switcher {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 600;
}
.lang-btn {
  padding: 0.2rem 0.5rem;
  color: var(--text2);
  text-decoration: none;
  transition: all .15s;
}
.lang-btn:hover { background: var(--border); }
.lang-btn.active { color: var(--accent); }
.lang-sep { color: var(--border); font-size: 0.8rem; }

/* ── Main scrollt, Header/Footer kleben ── */
main {
  flex: 1;
  overflow-y: auto;
}

.onepager main {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.onepager section {
  scroll-snap-align: start;
  min-height: calc(100vh - 6rem);
  opacity: 0;
  transition: opacity 1.2s ease;
}

section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 1.4rem;
  max-width: 860px;
  margin: 0 auto;
}

.onepager section.visible { opacity: 1; }

section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Hero ── */
.hero {
  padding: 0;
  max-width: 100%;
  margin: 0 auto;
}
.hero-image {
  width: 100%;
  height: 38vh;
  background-image: url('/assets/img/tastatur.jpg');
  background-size: cover;
  background-position: center 40%;
}
.hero-text {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.4rem 3rem;
}
.hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
}
.hero-sub {
  font-size: 1rem;
  color: var(--text2);
  margin-bottom: 1.6rem;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: radial-gradient(ellipse at 50% 20%, oklch(62% 0.13 198deg) 0%, oklch(38% 0.13 198deg) 100%);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background .25s, box-shadow .25s;
  box-shadow: 0 2px 8px oklch(0% 0 0 / 0.15);
}
.btn-primary:hover {
  background: radial-gradient(ellipse at 50% 20%, oklch(85% 0.17 73deg) 0%, oklch(60% 0.17 73deg) 100%);
  box-shadow: 0 4px 16px oklch(72% 0.17 73deg / 0.35);
}

.btn-secondary {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.55rem 1.3rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all .25s, box-shadow .25s;
}
.btn-secondary:hover {
  background: radial-gradient(ellipse at 50% 20%, oklch(85% 0.17 73deg) 0%, oklch(60% 0.17 73deg) 100%);
  border-color: oklch(60% 0.17 73deg);
  color: #fff;
  box-shadow: 0 4px 16px oklch(72% 0.17 73deg / 0.35);
}

/* ── Services ── */
.section-services {
  position: relative;
}
.section-services::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/img/tibetisches-manuskript.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.section-services > * {
  position: relative;
  z-index: 1;
}

.services-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.services-main {
  grid-column: 1 / -1;
  border-left-color: var(--melone) !important;
}
.services-grid li {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.services-grid strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: var(--text);
}
.services-grid p {
  font-size: 0.85rem;
  color: var(--text2);
  margin: 0;
}

/* Themenschwerpunkte */
.services-main .services-topics li {
  background: none;
  border: none;
  padding: 0;
}

.services-topics {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
  margin-top: 0.8rem;
}
.services-topics li {
  font-size: 0.9rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.services-topics li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background-image: url('/assets/img/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Profil ── */
.profil-intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.profil-text {
  flex: 1;
}
.profil-text p {
  color: var(--text2);
  margin-bottom: 1rem;
}
.profil-foto {
  flex-shrink: 0;
  width: 160px;
}
.profil-foto img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: block;
}
.profil-facts {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
}
.profil-facts li {
  font-size: 0.9rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.profil-facts li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background-image: url('/assets/img/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Credo ── */
.credo {
  margin-top: 1.2rem;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text2);
  border-left: 3px solid var(--melone);
  padding-left: 0.9rem;
}

/* ── Panta Flux ── */
.section-panta {
  position: relative;
}
.section-panta::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/img/matrixbrute.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.section-panta > * {
  position: relative;
  z-index: 1;
}

.panta-intro {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.panta-text {
  flex: 1;
}
.panta-text p {
  color: var(--text2);
  margin-bottom: 1rem;
}
.panta-logo {
  flex-shrink: 0;
  width: 160px;
}
.panta-logo img {
  width: 100%;
  display: block;
}

/* ── Kontakt ── */
.section-kontakt {
  position: relative;
  align-items: flex-start;
}
.section-kontakt::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('/assets/img/gauss-weber-telegraf.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.section-kontakt > * {
  position: relative;
  z-index: 1;
}
.section-kontakt p { 
  color: var(--text2); 
  margin-bottom: 1rem; 
}
.section-kontakt .btn-primary {
  display: inline-block;
}

/* ── Unterseiten (kein Snap) ── */
.page-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.page-header h1 {
  font-size: 1.8rem;
  color: var(--accent);
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.page-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1.4rem;
}
.page-content h2 {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 1.5rem 0 0.6rem;
}
.page-content p {
  color: var(--text2);
  margin-bottom: 1rem;
}
.page-content a {
  color: var(--accent);
}
.page-content a:hover {
  color: var(--accent-h);
}
.page-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1rem;
}
.page-content ul li {
  font-size: 0.95rem;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.3rem;
}
.page-content ul li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background-image: url('/assets/img/logo.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

body.no-snap main {
  scroll-snap-type: none;
}

body.no-snap section {
  opacity: 1;
  min-height: auto;
}

.no-snap .section-services::before,
.no-snap .section-panta::before,
.no-snap .section-kontakt::before {
  display: none;
}
/* ── Footer ── */
footer {
  flex-shrink: 0;
  padding: 0.7rem 1.4rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text2);
  border-top: 2px solid var(--border);
  background: var(--surface);
  position: relative;
  z-index: 1;
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { color: var(--accent-h); }

/* ── Responsive ── */
@media (max-width: 600px) {
  main { 
    scroll-snap-type: none;
  }
  .nav-main { 
    flex-wrap: wrap; 
    gap: 0.6rem; 
  }
  .nav-links { 
    order: 3; 
    width: 100%; 
    gap: 0.8rem; 
    flex-wrap: wrap; 
  }
  .nav-controls { 
    margin-left: auto; 
  }
  .hero h1 { 
    font-size: 1.6rem; 
  }
  .onepager section {
    min-height: auto;
    padding: 2.5rem 1.4rem;
    opacity: 1;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .services-topics {
    grid-template-columns: 1fr;
  }
  .profil-intro {
    flex-direction: column;
  }
  .profil-foto {
    width: 120px;
  }
  .profil-facts {
    grid-template-columns: 1fr;
  }
  .panta-intro {
    flex-direction: column;
  }
  .panta-logo {
    width: 120px;
  }
  .section-kontakt {
    min-height: 80vh !important;
  } 
  .section-services::before,
  .section-panta::before,
  .section-kontakt::before {
    display: none;
  }
}
@media (max-width: 400px) {
  .nav-links { flex-direction: column; gap: 0.4rem; }
  .hero h1 { font-size: 1.4rem; }
}

@media (max-height: 500px) {
  .onepager main {
    scroll-snap-type: none;
  }
  .onepager section {
    min-height: auto;
    opacity: 1;
  }
  .section-services::before,
  .section-panta::before,
  .section-kontakt::before {
    display: none;
  }

@media (pointer: coarse) {
  .onepager main {
    scroll-snap-type: none;
  }
  .onepager section {
    min-height: auto;
    opacity: 1;
  }
  .section-services::before,
  .section-panta::before,
  .section-kontakt::before {
    display: none;
  }
}
}
