/* ========== TOKENS ========== */
:root {
  --primary: #ff5000;
  --secondary: #3488ff;
  --secondary-dark: #2a6ecc;
  --green: #00a700;
  --yellow: #f2da00;
  --white: #ffffff;
  --light: #f5f5f5;
  --dark: #1a1a1a;
  --black: #000000;

  --font: "Bahnschrift", "Segoe UI", "DIN Next", sans-serif;
  --border: 3px solid var(--black);
  --maxw: 1200px;
  --space: clamp(1rem, 2vw, 1.5rem);
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space);
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  background: var(--white);
  border: var(--border);
  border-radius: 0;
  color: var(--black);
  font-family: var(--font);
  font-weight: 600;
  padding: .85em 1.4em;
  text-transform: none;
  transition: background .18s, color .18s, transform .18s;
  user-select: none;
}
.btn:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--black);
}
.btn:active {
  background: var(--secondary-dark);
  color: var(--white);
  transform: translateY(1px);
}

.btn-hero {
  background: var(--white);
  font-size: 1.05rem;
  padding: 1em 1.6em;
  box-shadow: 6px 6px 0 var(--black);
}
.btn-hero:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--black); }
.btn-hero:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--black); }

.btn-contact {
  background: var(--primary);
  color: var(--white);
  font-size: 1.1rem;
  padding: 1.1em 1.8em;
  box-shadow: 6px 6px 0 var(--black);
}
.btn-contact:hover { background: var(--secondary); }

.btn-nav {
  padding: .55em 1em;
  font-size: .95rem;
  background: var(--white);
  color: var(--black);
  border-color: var(--black);
}
.btn-nav:hover { background: var(--secondary); color: var(--white); }
.btn-nav:active { background: var(--secondary-dark); color: var(--white); }

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--primary);
  color: var(--white);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1.5rem;
  padding-top: .35rem;
  padding-bottom: .35rem;
}
.brand {
  display: inline-flex; align-items: center;
  line-height: 0;
}
.brand-logo {
  height: 56px; width: auto;
  display: block;
}

.nav-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: .25rem;
}
.nav-item { position: relative; }
.nav-link {
  background: transparent; border: 0;
  padding: .8rem 1rem;
  font-weight: 600; color: var(--white);
  display: inline-flex; align-items: center; gap: .35em;
}
.has-dropdown .nav-link::after {
  content: "▾"; font-size: .7em; opacity: .8;
  transition: transform .2s;
}
.nav-item.is-open .nav-link::after { transform: rotate(180deg); }
.nav-link:hover { color: var(--dark); }

.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 240px;
  background: var(--white);
  color: var(--dark);
  border: var(--border);
  list-style: none; margin: 0; padding: .35rem 0;
  display: none;
  box-shadow: 6px 6px 0 var(--black);
}
.nav-item.is-open .dropdown { display: block; }
.dropdown a {
  display: block; padding: .65rem 1.1rem;
  font-weight: 500;
}
.dropdown a:hover { background: var(--primary); color: var(--white); }

.nav-toggle {
  display: none;
  background: transparent;
  border: var(--border);
  width: 44px; height: 44px;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  display: block;
  position: absolute; left: 9px; right: 9px;
  height: 3px; background: var(--black);
  transition: transform .2s, opacity .2s, top .2s;
}
.nav-toggle span:nth-child(1) { top: 12px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ========== HERO ========== */
.hero {
  background: var(--primary);
  color: var(--white);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: .85fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-right {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.carousel-info {
  color: var(--white);
  min-height: 6rem;
}
.info-title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin: 0 0 .4rem;
  color: var(--white);
}
.info-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.5;
  opacity: .95;
}
.hero-logo {
  height: clamp(60px, 8vw, 90px);
  width: auto;
  margin-bottom: 1.5rem;
}
.claim {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  color: var(--white);
}
.claim span {
  display: block;
  white-space: nowrap;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin: 0 0 2rem;
  opacity: .92;
  font-weight: 500;
}

/* Carousel: rahmenlos, isometrisch nach links gekippt */
.carousel {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  perspective: 2200px;
  transform-style: preserve-3d;
  filter: drop-shadow(0 25px 35px rgba(0, 0, 0, .35));
}
.carousel-track {
  position: relative;
  width: 100%; height: 100%;
  transform: rotateY(-18deg) rotateX(4deg);
  transform-origin: center center;
  transition: transform .4s ease;
}
.carousel:hover .carousel-track {
  transform: rotateY(-12deg) rotateX(2deg);
}
.carousel-slide {
  position: absolute; inset: 0;
  margin: 0;
  opacity: 0; transition: opacity .5s ease;
  pointer-events: none;
}
.carousel-slide.is-active { opacity: 1; pointer-events: auto; }
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
  display: block;
}
.carousel-slide figcaption { display: none; }

.carousel-btn {
  position: absolute; top: 50%;
  background: var(--white); border: var(--border);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 1.1rem;
  z-index: 5;
  transition: background .15s, color .15s;
  transform: translateY(-50%);
}
.carousel-btn:hover { background: var(--secondary); color: var(--white); }
.carousel-btn:active { background: var(--secondary-dark); color: var(--white); }
.carousel-prev { left: -10px; }
.carousel-next { right: -10px; }
.carousel-dots {
  position: absolute; bottom: -28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: .4rem;
  z-index: 5;
}
.carousel-dots button {
  width: 12px; height: 12px;
  background: var(--white); border: 2px solid var(--black);
  padding: 0; border-radius: 0;
}
.carousel-dots button.is-active { background: var(--dark); }

/* ========== HOOK ========== */
.hook {
  background: var(--secondary);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  text-align: center;
}
.hook-line {
  font-size: clamp(1.15rem, 2.3vw, 1.65rem);
  margin: 0 0 .4em;
  line-height: 1.35;
}
.hook-strong {
  font-weight: 700;
  color: var(--white);
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
}

/* ========== GENERIC SECTION ========== */
.section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin: 0 0 2rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: ""; display: block;
  width: 60px; height: 5px;
  background: var(--primary);
  margin-top: .5rem;
}

/* ========== FAQ ========== */
.faq { background: var(--light); }
.faq-list { display: grid; gap: 1rem; }
.faq-item {
  background: var(--white);
  border: var(--border);
  box-shadow: 5px 5px 0 var(--black);
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.faq-item:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--black); }
.faq-item:not([open]):hover {
  background: var(--secondary);
  color: var(--white);
}
.faq-item:not([open]):hover .faq-icon { color: var(--white); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  font-weight: 600; font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  flex: 0 0 auto;
  font-size: 1.6rem; line-height: 1;
  color: var(--primary);
  transition: transform .2s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
  padding: 0 1.4rem 1.4rem;
  border-top: 2px solid var(--light);
}
.faq-body p { margin: 1rem 0 1.2rem; }

/* ========== ABOUT ========== */
.about { background: var(--white); }
.about-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.about-img-wrap {
  border: var(--border);
  box-shadow: 8px 8px 0 var(--primary);
  overflow: hidden;
}
.about-img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}
.about-text p { margin: 0 0 1rem; }
.about-tagline {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  margin-top: 1.5rem !important;
}

/* ========== REVIEWS ========== */
.reviews { background: var(--secondary); color: var(--white); }
.reviews .section-title { color: var(--white); }
.reviews .section-title::after { background: var(--white); }
.reviews-intro {
  max-width: 820px;
  font-size: 1.1rem;
  margin: 0 0 2.5rem;
  opacity: .95;
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}
.review-card {
  background: var(--white);
  color: var(--dark);
  border: var(--border);
  padding: 1.8rem;
  box-shadow: 8px 8px 0 var(--black);
  display: flex;
  flex-direction: column;
}
.review-head {
  height: 56px;
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
}
.review-logo {
  max-height: 56px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.review-text {
  font-size: 1.02rem;
  margin: 0 0 1.2rem;
  font-style: italic;
  flex: 1;
}
.review-author {
  display: flex;
  align-items: center;
  gap: .9rem;
  border-top: 2px solid var(--light);
  padding-top: 1rem;
}
.author-icon {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}
.author-info {
  display: flex;
  flex-direction: column;
}
.review-author strong { font-size: 1.05rem; }
.review-author span { color: var(--primary); font-weight: 600; }
.review-author a { color: inherit; }
.review-author a:hover { text-decoration: underline; }

/* ========== PHILOSOPHY ========== */
.philosophie { background: var(--light); }
.philosophie-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.philo-text { font-size: 1.08rem; }
.philo-text p { margin: 0 0 1.1rem; }
.philo-text p:first-of-type {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.philo-aside {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
}

/* ===== Win98 window chrome ===== */
.win98-window {
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: 2px 2px 0 #000;
  font-family: "Tahoma", "MS Sans Serif", "Segoe UI", sans-serif;
  font-size: 13px;
  color: #000;
  user-select: none;
}
.win98-titlebar {
  background: linear-gradient(90deg, #000080 0%, #1084d0 100%);
  color: #fff;
  padding: 3px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
}
.win98-title { padding-left: 4px; letter-spacing: .02em; }
.win98-controls { display: flex; gap: 2px; }
.win98-ctrl {
  width: 18px; height: 16px;
  background: #c0c0c0;
  color: #000;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 1px solid #404040;
  border-bottom: 1px solid #404040;
  font-size: 10px;
  line-height: 1;
  padding: 0;
  font-family: inherit;
  cursor: default;
}
.win98-body { padding: 8px; }

/* ===== Minesweeper ===== */
.mines98 { display: inline-block; }
.mines__toolbar {
  background: #c0c0c0;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  padding: 6px 8px;
  margin-bottom: 6px;
}
.mines__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mines__lcd {
  background: #000;
  color: #f00;
  font-family: "Courier New", monospace;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
  padding: 2px 6px;
  border-top: 1px solid #404040;
  border-left: 1px solid #404040;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  min-width: 50px;
  text-align: right;
}
.mines__face {
  width: 32px; height: 32px;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.mines__face:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}
.mines__board {
  display: grid;
  grid-template-columns: repeat(9, 24px);
  grid-auto-rows: 24px;
  background: #c0c0c0;
  border-top: 3px solid #404040;
  border-left: 3px solid #404040;
  border-right: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  padding: 0;
}
.mines__cell {
  width: 24px; height: 24px;
  background: #c0c0c0;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #808080;
  border-bottom: 2px solid #808080;
  display: grid;
  place-items: center;
  font-family: "Courier New", monospace;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
  padding: 0;
}
.mines__cell.is-revealed {
  background: #c0c0c0;
  border: 1px solid #808080;
}
.mines__cell.is-mine { background: #f00; }
.mines__cell[data-n="1"] { color: #0000ff; }
.mines__cell[data-n="2"] { color: #008000; }
.mines__cell[data-n="3"] { color: #ff0000; }
.mines__cell[data-n="4"] { color: #000080; }
.mines__cell[data-n="5"] { color: #800000; }
.mines__cell[data-n="6"] { color: #008080; }
.mines__cell[data-n="7"] { color: #000000; }
.mines__cell[data-n="8"] { color: #808080; }

@media (max-width: 900px) {
  .philosophie-inner { grid-template-columns: 1fr; }
  .philo-aside { padding-top: 2rem; }
}

/* ========== CONTACT ========== */
.contact {
  background: var(--primary);
  color: var(--white);
}
.contact-title { color: var(--white); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.contact-left { max-width: 520px; }
.contact-lead {
  font-size: 1.15rem;
  margin: 0 0 2rem;
}
.btn-contact { background: var(--white); color: var(--black); }
.btn-contact:hover { background: var(--secondary); color: var(--white); }
.btn-contact:active { background: var(--secondary-dark); color: var(--white); }
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-meta {
  margin-top: 2rem;
  display: flex; gap: .75rem;
  font-weight: 500;
  opacity: .9;
}
.contact-meta a { text-decoration: underline; }
.contact-right { display: flex; justify-content: center; }

/* Win98 contact form */
.contact98 { width: 100%; max-width: 460px; }
.contact98 form { display: block; }
.contact98 .field-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.contact98 .field-row-stacked {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.contact98 label {
  min-width: 70px;
  font-weight: 700;
  color: #000;
}
.contact98 input,
.contact98 textarea {
  flex: 1;
  background: #fff;
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  font-family: "Tahoma", "MS Sans Serif", "Segoe UI", sans-serif;
  font-size: 13px;
  padding: 4px 6px;
  color: #000;
  outline: none;
  border-radius: 0;
}
.contact98 input:focus,
.contact98 textarea:focus {
  outline: 1px dotted #000;
  outline-offset: -3px;
}
.contact98 textarea {
  resize: vertical;
  font-family: "Tahoma", "MS Sans Serif", "Segoe UI", sans-serif;
}
.contact98-actions {
  justify-content: flex-end;
  margin-top: 4px;
}
.win98-button {
  background: #c0c0c0;
  color: #000;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  font-family: "Tahoma", "MS Sans Serif", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 14px;
  cursor: pointer;
  min-width: 80px;
  border-radius: 0;
}
.win98-button:active {
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
}
.win98-button:focus { outline: 1px dotted #000; outline-offset: -4px; }
.contact-form-status {
  margin: .8rem 0 0;
  font-weight: 700;
  color: #000;
  min-height: 1.2em;
}
.contact-form-status.is-success { color: #008000; }
.contact-form-status.is-error { color: #c00; }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-left { max-width: none; }
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--light);
  color: var(--dark);
  padding: 1.5rem 0;
  border-top: 2px solid #e0e0e0;
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-links-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.footer-links-icons a { font-weight: 500; }
.footer-links-icons a:hover { color: var(--primary); }
.footer-icon-link {
  display: inline-flex;
  align-items: center;
}
.footer-icon-link img {
  height: 20px;
  width: auto;
  display: block;
  opacity: .85;
  transition: opacity .15s;
}
.footer-icon-link:hover img { opacity: 1; }
.footer-icon-autodesk img { height: 16px; }
.footer-meta {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}
.footer-sep { opacity: .5; }
.footer-love {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.footer-dkw { height: 18px; width: auto; }
.footer-europe { height: 20px; width: auto; margin-left: .6rem; }

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: .9rem;
  }
  .footer-meta { font-size: .85rem; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  /* Hero: Reihenfolge auf mobil = Titel, Bilder, Beschreibung, CTA */
  .hero {
    padding-bottom: clamp(5rem, 12vw, 8rem);
  }
  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .hero-left,
  .hero-right { display: contents; }
  .claim { order: 1; }
  .hero-sub { order: 2; }
  .carousel { order: 3; }
  .carousel-info { order: 4; margin-bottom: 1.5rem; }
  .btn-hero { order: 5; align-self: flex-start; }

  .about-inner { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 280px; margin: 0 auto; }
  .carousel-prev { left: 8px; }
  .carousel-next { right: 8px; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav.is-open {
    display: block;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    border-bottom: var(--border);
    padding: 1rem var(--space);
  }
  .nav.is-open .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: .25rem;
  }
  /* Sichtbare Schrift im geöffneten Mobil-Menü (Header ist sonst orange/weiß) */
  .nav.is-open .nav-link {
    color: var(--dark);
    justify-content: flex-start;
  }
  .nav.is-open .nav-link:hover { color: var(--primary); }
  .nav.is-open .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 3px solid var(--primary);
    margin-left: 1rem;
  }
  .nav.is-open .dropdown a { color: var(--dark); }
  .nav.is-open .btn-nav {
    display: inline-block;
    margin-top: .5rem;
  }
  .nav-toggle { display: block; }
}

/* ============================================================
   SUBPAGE TEMPLATE: wiederverwendbar für Software / KI / etc.
   ============================================================ */

/* Page Hero: Titelbereich oben */
.page-hero {
  background: var(--primary);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  overflow: hidden;
}
.page-hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.page-eyebrow {
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .2em;
  font-size: .9rem;
  margin: 0 0 .8rem;
  opacity: .9;
}
.page-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--white);
}
.page-title .heart {
  display: inline-block;
  font-size: .9em;
}
.page-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  margin: 0 0 2rem;
  max-width: 620px;
  opacity: .95;
}
.page-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.page-hero-media {
  display: flex;
  justify-content: center;
}
.page-hero-img {
  width: 100%;
  max-width: 560px;
  border: var(--border);
  box-shadow: 12px 12px 0 var(--black);
}
/* Hero-Bild ohne Rahmen (z.B. für Illustrationen / freigestellte Grafiken) */
.page-hero-img-bare {
  border: 0;
  box-shadow: none;
  background: transparent;
}

/* Page content sections */
.page-content { background: var(--white); }
.page-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.page-section-alt { background: var(--light); }

.page-section-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.page-section-grid.is-reverse .page-section-text { order: 2; }
.page-section-grid.is-reverse .page-section-aside { order: 1; }

.page-section-text .section-title { margin-bottom: 1rem; }
.page-section-text p { margin: 0 0 1rem; }
.page-strong {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem !important;
}

.page-list {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.page-list li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.4;
}
.page-list li::before {
  content: "→";
  position: absolute;
  left: 0; top: 0;
  color: var(--primary);
  font-weight: 700;
}

.page-figure {
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.page-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.page-figure figcaption {
  padding: .8rem 0 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--dark);
  opacity: .8;
}
.page-figure-illustration {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
  margin-bottom: calc(clamp(3rem, 6vw, 5rem) * -1); /* hebt unteres Section-Padding wieder auf, damit das Bild bündig sitzt */
}

/* Smartphone- / App-Mockup: schmaler und zentriert darstellen */
.page-figure-illustration.page-figure-mockup {
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.page-figure-mockup img,
.page-figure-illustration.page-figure-mockup img {
  width: auto;
  max-width: 220px;
  image-rendering: auto;
  margin: 0 auto;
}
.page-section-aside:has(.page-figure-illustration.page-figure-mockup) {
  align-items: center;
}

/* MCP-Logo / generisches großes Logo als Figure */
.page-figure-logo {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.page-figure-logo img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
}
.page-figure-illustration img {
  width: auto;
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
}
/* Das Aside, das die Illustration enthält, soll nach unten ausgerichtet sein und die volle Grid-Höhe einnehmen */
.page-section-aside:has(.page-figure-illustration) {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
}

/* CTA-Band am Seitenende */
.page-cta-band {
  background: var(--secondary);
  color: var(--white);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  text-align: center;
}
.page-cta-inner { max-width: 720px; }
.page-cta-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 .8rem;
  color: var(--white);
}
.page-cta-lead {
  font-size: 1.1rem;
  margin: 0 0 2rem;
  opacity: .95;
}
.page-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Intro-Absatz */
.page-intro {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 820px;
  margin: 0 0 1.2rem;
}

/* Inline-Link (innerhalb von Text) */
.inline-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
}
.inline-link:hover { color: var(--secondary); }

/* Tech-Stack Grid */
.tech-grid {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.tech-grid li {
  background: var(--light);
  border: var(--border);
  box-shadow: 5px 5px 0 var(--black);
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.tech-grid li:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 var(--black);
}
.tech-chip {
  font-weight: 700;
  font-size: 1.1rem;
}
.tech-grid li small {
  font-size: .9rem;
  opacity: .8;
}

/* Service-Cards (Modernisierung) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  background: var(--white);
  border: var(--border);
  box-shadow: 6px 6px 0 var(--black);
  padding: 1.6rem;
  transition: transform .15s, box-shadow .15s, background .15s, color .15s;
}
.service-card:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--black);
}
.service-card h3 {
  margin: 0 0 .6rem;
  font-size: 1.25rem;
}
.service-card p { margin: 0; line-height: 1.5; }

/* Schritt-Liste */
.page-steps {
  counter-reset: step;
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.page-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3rem;
  line-height: 1.5;
}
.page-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -.2rem;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border: 2px solid var(--black);
}

@media (max-width: 900px) {
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-section-grid { grid-template-columns: 1fr; }
  .page-section-grid.is-reverse .page-section-text,
  .page-section-grid.is-reverse .page-section-aside { order: initial; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BLOG: Übersicht + Einzelpost
   ============================================================ */

/* Blog-Übersicht: Tag-Filter */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.blog-tag {
  display: inline-block;
  padding: .4rem .9rem;
  background: var(--white);
  border: 2px solid var(--black);
  font-weight: 600;
  font-size: .9rem;
  color: var(--black);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.blog-tag:hover,
.blog-tag.is-active {
  background: var(--secondary);
  color: var(--white);
}

/* Blog-Übersicht: Karten-Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.8rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid #e4e4e4;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.blog-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--primary);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .08);
}
.blog-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--light);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.blog-card-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.blog-card-meta {
  display: flex;
  gap: .8rem;
  font-size: .85rem;
  color: var(--dark);
  opacity: .7;
  margin-bottom: .5rem;
}
.blog-card-tags {
  display: inline-flex;
  gap: .35rem;
  flex-wrap: wrap;
  opacity: 1;
}
.blog-card-tag {
  font-weight: 700;
  color: var(--primary);
  opacity: 1;
}
.blog-card-tag:not(:last-child)::after {
  content: ", ";
  color: var(--dark);
  opacity: .5;
}
.blog-card-title {
  font-size: 1.25rem;
  line-height: 1.25;
  margin: 0 0 .6rem;
}
.blog-card-title a { color: inherit; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-summary {
  margin: 0 0 1rem;
  flex: 1;
  line-height: 1.5;
}
.blog-card-cta {
  font-weight: 700;
  color: var(--primary);
  align-self: flex-start;
}
.blog-card-cta:hover { text-decoration: underline; }

/* Einzelpost: Header */
.post-hero {
  background: var(--primary);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
}
.post-hero-inner { max-width: 820px; margin: 0 auto; }
.post-hero .page-eyebrow { color: var(--white); }
.post-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--white);
}
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.2rem;
  align-items: center;
  margin: 0 0 1.2rem;
  font-size: .95rem;
  opacity: .95;
}
.post-meta time { font-weight: 600; }
.post-tech { font-style: italic; }
.post-tags { display: inline-flex; gap: .4rem; flex-wrap: wrap; }
.post-tag {
  display: inline-block;
  padding: .15rem .6rem;
  background: rgba(255, 255, 255, .18);
  color: var(--white);
  font-size: .8rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .35);
}
.post-tag:hover { background: rgba(255, 255, 255, .3); }
.post-summary {
  font-size: 1.15rem;
  line-height: 1.5;
  margin: 0;
  opacity: .95;
}

/* Einzelpost: optionales Hero-Bild */
.post-image-wrap {
  margin-top: -2rem;
  margin-bottom: 2rem;
  max-width: 980px;
}
.post-image {
  width: 100%;
  height: auto;
  background: var(--white);
}

/* Einzelpost: Inhalt */
.post-content {
  padding: clamp(2rem, 4vw, 3rem) 0;
}
.post-body {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.7;
}
.post-body h1 { font-size: 1.8rem; margin: 2rem 0 .6rem; }
.post-body h2 { font-size: 1.4rem; margin: 1.8rem 0 .5rem; color: var(--primary); }
.post-body h3 { font-size: 1.15rem; margin: 1.4rem 0 .4rem; }
.post-body h1:first-child,
.post-body h2:first-child,
.post-body h3:first-child { margin-top: 0; }
.post-body p { margin: 0 0 1rem; }
.post-body img {
  max-width: 100%;
  margin: 1rem 0;
}
.post-body ul,
.post-body ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.post-body li { margin-bottom: .35rem; }
.post-body a { color: var(--primary); text-decoration: underline; }
.post-body a:hover { color: var(--secondary); }
.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: .4rem 0 .4rem 1rem;
  margin: 1.2rem 0;
  color: var(--dark);
  font-style: italic;
}
.post-body code {
  background: var(--light);
  padding: .1rem .35rem;
  font-family: "Consolas", "Courier New", monospace;
  font-size: .92em;
  border: 1px solid #e0e0e0;
}
.post-body pre {
  background: var(--dark);
  color: var(--white);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border: 2px solid var(--black);
  margin: 1.2rem 0;
}
.post-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

/* Einzelpost: Vor/Zurück-Navigation */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 2rem 0 3rem;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: var(--border);
  box-shadow: 4px 4px 0 var(--black);
  transition: transform .15s, box-shadow .15s;
}
.post-nav-link:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--black);
}
.post-nav-link span {
  font-size: .85rem;
  opacity: .7;
  font-weight: 600;
}
.post-nav-link strong { line-height: 1.25; }
.post-nav-next { text-align: right; }
.post-nav-prev { grid-column: 1; }
.post-nav-next { grid-column: 2; }

/* Narrowed page-hero (für Blog-Index ohne Hero-Bild) */
.page-hero-inner-narrow { display: block; max-width: 820px; }

@media (max-width: 720px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav-prev, .post-nav-next { grid-column: 1; text-align: left; }
}

/* ============================================================
   LEGAL: Impressum / Datenschutz
   ============================================================ */
.legal { padding: clamp(2rem, 4vw, 3rem) 0; }
.legal-inner { max-width: 820px; }
.legal-section + .legal-section { margin-top: 1.5rem; }
.legal-section h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: var(--primary);
}
.legal-section h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 .5rem;
  color: var(--dark);
}
.legal-section p { margin: 0 0 .9rem; line-height: 1.6; }
.legal-section ul {
  margin: .5rem 0 1rem;
  padding-left: 1.4rem;
}
.legal-section li { margin-bottom: .35rem; }
.legal-section a { color: var(--primary); text-decoration: underline; }
.legal-section a:hover { color: var(--secondary); }
.legal-sep {
  border: 0;
  border-top: 2px solid var(--light);
  margin: 2rem 0;
}

