/* ─── Digitineers – gemeinsames Stylesheet (Unterseiten) ───────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo:       #3B3280;
  --indigo-dark:  #2A2460;
  --indigo-mid:   #5A5099;
  --indigo-pale:  #ECEAF5;
  --taupe:        #9E9B8A;
  --taupe-light:  #C8C5B4;
  --taupe-pale:   #F4F3EF;
  --teal:         #2A7C78;
  --teal-dark:    #235f5c;
  --teal-pale:    #E1F0EF;
  --charcoal:     #2C2A3A;
  --slate:        #6B6882;
  --off-white:    #F8F7F4;
  --border:       #E0DDD8;
  --white:        #FFFFFF;

  --font-serif:   Georgia, 'Palatino Linotype', Palatino, serif;
  --font-sans:    'Segoe UI', Calibri, Arial, sans-serif;

  --max-w: 1120px;
  --pad-x: clamp(1.25rem, 5vw, 3.5rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--off-white);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }

/* ─── Animationen ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
.fade-up { opacity: 0; animation: fadeUp .72s cubic-bezier(.22,.68,0,1.2) forwards; }
.delay-1 { animation-delay: .10s; }
.delay-2 { animation-delay: .22s; }
.delay-3 { animation-delay: .36s; }

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s cubic-bezier(.22,.68,0,1), transform .7s cubic-bezier(.22,.68,0,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .18s; }
.reveal-d3 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .fade-up, .reveal { animation: none; transition: none; opacity: 1; transform: none; }
}

/* ─── Fortschrittsbalken ──────────────────────────────────────── */
#progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--indigo-mid));
  z-index: 1000;
}

/* ─── Header ───────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 4px 24px rgba(59,50,128,.08); }
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: .7rem var(--pad-x);
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem;
}
.logo-link { display: flex; align-items: center; }
.logo-img { height: 46px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 1.15rem; }
.nav-link {
  font-family: var(--font-sans);
  font-size: .84rem; font-weight: 600;
  color: var(--indigo); text-decoration: none;
  position: relative; padding: .25rem 0;
  white-space: nowrap;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--teal);
  transition: width .28s cubic-bezier(.22,.68,0,1);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--teal); }

.lang-switch { display: flex; align-items: center; gap: .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .08em; }
.lang-switch a { color: var(--slate); text-decoration: none; transition: color .2s; }
.lang-switch a:hover { color: var(--teal); }
.lang-switch .lang-active { color: var(--teal); border-bottom: 2px solid var(--teal); }
.lang-sep { color: var(--taupe-light); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--indigo); margin: 5px 0; transition: .3s; }

/* ─── Seiten-Hero (Unterseiten) ────────────────────────────────── */
.page-hero {
  background: var(--indigo);
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad-x);
}
.page-hero::before {
  content: ''; position: absolute; top: -140px; right: -150px;
  width: 380px; height: 380px; background: var(--indigo-mid);
  transform: rotate(45deg); opacity: .18; pointer-events: none;
}
.page-hero::after {
  content: ''; position: absolute; bottom: -90px; left: -90px;
  width: 220px; height: 220px; background: var(--taupe);
  transform: rotate(45deg); opacity: .10; pointer-events: none;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.page-eyebrow {
  font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--taupe-light); margin-bottom: .9rem;
}
.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400; line-height: 1.2;
  color: var(--white); letter-spacing: -.01em;
}
.page-intro {
  margin-top: 1.1rem;
  font-size: clamp(.9rem, 1.4vw, 1.02rem);
  line-height: 1.75; color: rgba(255,255,255,.76);
  max-width: 68ch;
}

/* ─── Sektionen ────────────────────────────────────────────────── */
.band { padding: clamp(2.75rem, 6vw, 4.5rem) var(--pad-x); }
.band-white { background: var(--white); }
.band-off { background: var(--off-white); border-top: 1px solid var(--border); }
.band-indigo { background: var(--indigo); position: relative; overflow: hidden; }
.band-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }

.section-label {
  font-family: var(--font-sans);
  font-size: .68rem; font-weight: 700; letter-spacing: .15em;
  text-transform: uppercase; color: var(--taupe);
  display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem;
}
.section-label::after { content: ''; flex: 0 0 80px; height: 1px; background: var(--border); }
.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  font-weight: 400; color: var(--indigo);
  position: relative; padding-bottom: 1rem; margin-bottom: 1.8rem;
}
.section-heading::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 48px; height: 2px; background: var(--teal);
}
.subheading {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  font-weight: 400; color: var(--indigo);
  margin: 1.8rem 0 .7rem;
}

/* ─── Fließtext & Listen ───────────────────────────────────────── */
.prose { font-size: .95rem; line-height: 1.8; color: var(--slate); max-width: 72ch; }
.prose + .prose { margin-top: 1rem; }
.prose strong { color: var(--charcoal); font-weight: 600; }
.prose a { color: var(--teal); font-weight: 600; text-decoration: none; }
.prose a:hover { text-decoration: underline; }

.diamond-list { list-style: none; display: flex; flex-direction: column; gap: .55rem; max-width: 72ch; }
.diamond-list li {
  position: relative; padding-left: 1.4rem;
  font-size: .92rem; line-height: 1.6; color: var(--slate);
}
.diamond-list li::before {
  content: ''; position: absolute; left: 0; top: .48em;
  width: 8px; height: 8px; background: var(--teal);
  transform: rotate(45deg); border-radius: 2px;
}

.chapter-list { list-style: none; display: flex; flex-direction: column; gap: 1.25rem; }
.chapter-item { display: flex; align-items: flex-start; gap: 1rem; }
.chapter-num {
  font-family: var(--font-serif); font-size: 1.5rem; line-height: 1;
  min-width: 2rem; text-align: right; color: var(--taupe-light); letter-spacing: -.02em;
}
.chapter-text strong {
  display: block; font-family: var(--font-serif); font-size: 1rem;
  font-weight: 400; color: var(--indigo); margin-bottom: .2rem;
}
.chapter-text span { font-size: .875rem; color: var(--slate); line-height: 1.55; }

/* ─── Zweispalter & Karten ─────────────────────────────────────── */
.two-col {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 4vw, 4rem); align-items: start;
}
.two-col-media img {
  width: 100%; border-radius: 8px; display: block;
  box-shadow: 0 14px 44px rgba(59,50,128,.16);
  background: var(--white);
}

.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.card-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

.info-card {
  background: var(--off-white);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 1.6rem 1.75rem;
  display: flex; flex-direction: column; gap: .7rem;
  position: relative; overflow: hidden;
  transition: transform .28s cubic-bezier(.22,.68,0,1), box-shadow .28s;
}
.band-white .info-card { background: var(--off-white); }
.band-off .info-card { background: var(--white); }
.info-card::after {
  content: ''; position: absolute; top: 0; left: 0;
  width: 0; height: 3px; background: var(--teal);
  transition: width .35s cubic-bezier(.22,.68,0,1);
}
.info-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(59,50,128,.12); }
.info-card:hover::after { width: 100%; }
.info-card-tag { font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.info-card-title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 400; color: var(--indigo); line-height: 1.35; }
.info-card-text { font-size: .88rem; color: var(--slate); line-height: 1.65; flex: 1; }

/* ─── Personen ─────────────────────────────────────────────────── */
.person-card {
  background: var(--white);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 1.6rem 1.75rem;
  display: flex; flex-direction: column; gap: .55rem;
}
.person-photo {
  width: 110px; height: 130px;
  object-fit: cover; object-position: top center;
  border-radius: 4px; display: block;
  box-shadow: 0 6px 24px rgba(59,50,128,.15);
  margin-bottom: .4rem;
}
.person-name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--indigo); }
.person-role { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.person-text { font-size: .86rem; color: var(--slate); line-height: 1.65; }
.person-contact { font-size: .82rem; color: var(--slate); }
.person-contact a { color: var(--teal); text-decoration: none; font-weight: 600; }
.person-contact a:hover { text-decoration: underline; }

/* ─── Downloads & Publikationen ───────────────────────────────── */
.dl-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; max-width: 620px; }
.dl-list a {
  display: flex; align-items: center; gap: .8rem;
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: .8rem 1.1rem; text-decoration: none;
  font-size: .88rem; font-weight: 600; color: var(--indigo);
  transition: border-color .25s, box-shadow .25s, transform .2s;
}
.band-white .dl-list a { background: var(--off-white); }
.dl-list a::before {
  content: ''; width: 9px; height: 9px; background: var(--teal);
  transform: rotate(45deg); border-radius: 2px; flex-shrink: 0;
}
.dl-list a:hover { border-color: var(--teal); box-shadow: 0 6px 20px rgba(42,124,120,.15); transform: translateY(-2px); }
.dl-list .dl-meta { margin-left: auto; font-size: .72rem; font-weight: 700; color: var(--taupe); text-transform: uppercase; letter-spacing: .08em; }

.pub-card {
  background: var(--indigo-pale);
  border: 1px solid var(--border); border-radius: 6px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative; overflow: hidden;
}
.pub-card::after {
  content: ''; position: absolute; bottom: -70px; right: -70px;
  width: 190px; height: 190px; background: var(--indigo-mid);
  transform: rotate(45deg); opacity: .1; pointer-events: none;
}
.pub-journal { font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--teal); }
.pub-title { font-family: var(--font-serif); font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 400; color: var(--indigo-dark); line-height: 1.4; }
.pub-cite { font-size: .82rem; color: var(--slate); line-height: 1.6; }

/* ─── Statistiken ──────────────────────────────────────────────── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1.6rem 0; }
.stat { text-align: center; padding: .5rem 1rem; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 15%; height: 70%; width: 1px; background: var(--border); }
.stat-value { font-family: var(--font-serif); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--teal); line-height: 1.1; }
.stat-caption { font-size: .78rem; color: var(--slate); line-height: 1.45; margin-top: .4rem; }

/* ─── Buttons, Chips, Badges ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; font-family: var(--font-sans);
  font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  padding: .9rem 1.8rem; border-radius: 3px;
  transition: background .25s, transform .18s, box-shadow .25s, color .25s, border-color .25s;
  position: relative; overflow: hidden;
}
.btn-teal { background: var(--teal); color: var(--white); box-shadow: 0 6px 28px rgba(42,124,120,.35); }
.btn-teal::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.13) 50%, transparent 60%);
  background-size: 200% 100%;
  animation: shimmer 3.5s infinite;
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 10px 36px rgba(42,124,120,.45); }
.btn-outline-indigo { border: 1px solid var(--indigo-mid); color: var(--indigo); background: transparent; }
.btn-outline-indigo:hover { background: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59,50,128,.12); }

.chip-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.chip {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--white); border: 1px solid var(--border); border-radius: 30px;
  padding: .6rem 1.2rem; font-size: .86rem; font-weight: 600;
  color: var(--indigo); text-decoration: none;
  transition: border-color .25s, box-shadow .25s, transform .2s, background .25s;
}
.chip::before { content: ''; width: 8px; height: 8px; background: var(--teal); transform: rotate(45deg); flex-shrink: 0; transition: transform .3s; }
.chip:hover { border-color: var(--teal); box-shadow: 0 6px 20px rgba(42,124,120,.15); transform: translateY(-2px); background: var(--teal-pale); }
.chip:hover::before { transform: rotate(225deg); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--teal-pale); color: var(--teal);
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 20px; width: fit-content;
}

.link-more { font-size: .88rem; font-weight: 600; color: var(--teal); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; width: fit-content; }
.link-more::after { content: '→'; transition: transform .25s; }
.link-more:hover::after { transform: translateX(4px); }

/* ─── CTA-Karte ────────────────────────────────────────────────── */
.cta-card {
  background: var(--indigo-pale);
  border: 1px solid var(--border); border-radius: 6px;
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem); align-items: center;
  position: relative; overflow: hidden;
}
.cta-card::after {
  content: ''; position: absolute; bottom: -70px; right: -70px;
  width: 200px; height: 200px; background: var(--indigo-mid);
  transform: rotate(45deg); opacity: .1; pointer-events: none;
}
.cta-label { font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--teal); margin-bottom: .8rem; }
.cta-headline { font-family: var(--font-serif); font-size: clamp(1.15rem, 2.2vw, 1.5rem); font-weight: 400; color: var(--indigo-dark); line-height: 1.4; margin-bottom: .8rem; }
.cta-copy { font-size: .9rem; color: var(--slate); line-height: 1.75; }
.cta-copy a { color: var(--teal); text-decoration: none; font-weight: 600; }
.cta-copy a:hover { text-decoration: underline; }
.cta-actions { display: flex; flex-direction: column; gap: .9rem; position: relative; z-index: 1; }

/* ─── Footer ───────────────────────────────────────────────────── */
.footer { background: var(--indigo-dark); border-top: 1px solid rgba(255,255,255,.07); padding: 2rem var(--pad-x) 1.5rem; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; gap: 1.2rem; align-items: center; }
.footer-company { font-size: .8rem; color: rgba(255,255,255,.55); text-align: center; line-height: 1.7; }
.footer-links { display: flex; align-items: center; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.footer-link { font-size: .78rem; color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: rgba(255,255,255,.85); }
.footer-sep { width: 1px; height: 12px; background: rgba(255,255,255,.2); }
.footer-copy { font-size: .7rem; color: rgba(255,255,255,.3); }

/* ─── Nach-oben-Raute ─────────────────────────────────────────── */
#toTop {
  position: fixed; right: 1.6rem; bottom: 1.6rem;
  width: 44px; height: 44px;
  background: var(--teal); border: none; cursor: pointer;
  transform: rotate(45deg) scale(0);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(42,124,120,.4);
  transition: transform .35s cubic-bezier(.22,.68,0,1.2), background .25s;
  z-index: 950;
}
#toTop.show { transform: rotate(45deg) scale(1); }
#toTop:hover { background: var(--teal-dark); }
#toTop::before {
  content: '↑'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.15rem;
  transform: rotate(-45deg);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 0 var(--pad-x);
    max-height: 0; overflow: hidden;
    transition: max-height .4s cubic-bezier(.22,.68,0,1);
  }
  .main-nav.open { max-height: 560px; box-shadow: 0 20px 40px rgba(59,50,128,.12); }
  .main-nav .nav-link { padding: .85rem 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .cta-card { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
}
@media (max-width: 560px) {
  .lang-switch { display: none; }
}

/* ─── Produkttabelle ───────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.product-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: 6px; }
.product-table th {
  font-family: var(--font-sans); font-size: .68rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--teal);
  text-align: left; padding: .9rem 1.25rem;
  background: var(--indigo-pale); border-bottom: 1px solid var(--border);
}
.product-table td { padding: .95rem 1.25rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.product-table tr:last-child td { border-bottom: none; }
.product-table tbody tr { transition: background .2s; }
.product-table tbody tr:hover { background: var(--teal-pale); }
.product-table .pt-name { font-family: var(--font-serif); font-size: .98rem; color: var(--indigo); white-space: nowrap; }
.product-table .pt-name a { color: var(--indigo); text-decoration: none; }
.product-table .pt-name a:hover { color: var(--teal); }
.product-table .pt-desc { font-size: .88rem; color: var(--slate); line-height: 1.6; }

/* ─── Aufklappbare Zusammenfassungen ───────────────────────────── */
details.abstract { border: 1px solid var(--border); border-radius: 6px; background: var(--white); margin-top: .9rem; overflow: hidden; }
details.abstract summary {
  cursor: pointer; list-style: none;
  padding: .8rem 1.1rem;
  font-size: .85rem; font-weight: 700; color: var(--teal);
  display: flex; align-items: center; gap: .6rem;
  transition: background .2s;
}
details.abstract summary::-webkit-details-marker { display: none; }
details.abstract summary::before {
  content: ''; width: 9px; height: 9px; background: var(--teal);
  transform: rotate(45deg); border-radius: 2px; flex-shrink: 0;
  transition: transform .3s;
}
details.abstract[open] summary::before { transform: rotate(225deg); }
details.abstract summary:hover { background: var(--teal-pale); }
details.abstract .abstract-body { padding: .4rem 1.3rem 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
