/* ==========================================================================
   ki-beim-arzt/style.css — PDF-faithful webpage adaptation of
   "GPT… Oder nicht GPT…? + KI beim Arzt"
   Sharp-edged boxes, blurred elliptical foot shadows, seamless SVG callouts.
   ========================================================================== */

:root {
  --burgundy: #8b1d2c;
  --burgundy-dark: #6f1320;
  --ice-blue: #d4e9fb;
  --divider-blue: #8cbce6;
  --highlight-blue: #a4cff5;
  --highlight-line: #4d8fd6;
  --text-main: #15181c;
  --text-muted: #525b66;
  --surface: #ffffff;
  --shadow-badge: 4px 5px 4px -1px rgba(0, 0, 0, 0.32);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: 'Roboto', Helvetica, Arial, sans-serif;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text-main);
  background-color: #f4f6f8;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: #fff;
  color: var(--burgundy);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  transform: none;
}

/* Header */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(139, 29, 44, 0.14);
}

.page-header__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--burgundy);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.back-link:hover {
  color: var(--burgundy-dark);
  transform: translateX(-2px);
}

.brand-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.brand-link:hover {
  color: var(--burgundy);
}

/* Main sheet (crisp editorial page, sharp corners) */
.article-shell {
  max-width: 980px;
  margin: 2rem auto 3.5rem;
  padding: 2.75rem 2.75rem 2.5rem;
  background: var(--surface);
  border-radius: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

/* ==========================================================================
   Robot figures + blurred elliptical ground shadows under feet
   ========================================================================== */
.robot-figure {
  position: relative;
  display: inline-block;
  line-height: 0;
}

.robot-figure img {
  position: relative;
  z-index: 1;
  display: block;
}

.robot-figure::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  width: 66%;
  height: 14px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  filter: blur(6px);
  z-index: 0;
  pointer-events: none;
}

.robot-figure--hero::after {
  width: 64%;
  height: 16px;
  bottom: 4px;
  background: rgba(0, 0, 0, 0.5);
  filter: blur(7px);
}

.robot-figure--col::after {
  width: 70%;
  height: 11px;
  bottom: 1px;
  background: rgba(0, 0, 0, 0.46);
  filter: blur(5px);
}

.robot-figure--desk::after {
  width: 82%;
  height: 12px;
  bottom: 2px;
  background: rgba(0, 0, 0, 0.36);
  filter: blur(6px);
}

.robot-figure--library::after {
  width: 84%;
  height: 14px;
  bottom: 3px;
  background: rgba(0, 0, 0, 0.38);
  filter: blur(7px);
}

.robot-figure--waving::after {
  width: 62%;
  height: 14px;
  bottom: 3px;
  background: rgba(0, 0, 0, 0.46);
  filter: blur(6px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
  margin-bottom: 2.75rem;
  padding: 0 1rem;
}

.hero__visual img {
  width: 195px;
  height: auto;
}

.hero__title-wrap {
  position: relative;
  padding-left: 1.5rem;
}

.hero__title-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 8px;
  background: var(--burgundy);
  border-radius: 4px;
}

.hero__title {
  margin: 0;
  font-family: 'Archivo Black', 'Roboto', sans-serif;
  font-size: clamp(2.1rem, 4.6vw, 3.25rem);
  line-height: 1.15;
  color: #0b0d10;
  letter-spacing: -0.01em;
}

.hero__subtitle {
  margin: 1rem 0 0;
  font-family: 'Archivo Black', 'Roboto', sans-serif;
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  color: #0b0d10;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero__plus {
  display: block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  color: var(--burgundy);
}

/* ==========================================================================
   QA Rows — Sharp-edged burgundy badges + sharp-edged ice-blue boxes
   ========================================================================== */
.qa-row {
  display: grid;
  gap: 1.6rem;
  align-items: start;
  margin-bottom: 2.25rem;
}

.qa-row--left {
  grid-template-columns: 205px 1fr;
}

.qa-row--right {
  grid-template-columns: 1fr 215px;
}

.qa-row--outro {
  align-items: stretch;
}

.qa-badge {
  background: var(--burgundy);
  color: #ffffff;
  padding: 1.1rem 1.15rem 1.35rem;
  border-radius: 0;
  box-shadow: var(--shadow-badge);
}

.qa-badge h2 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.25;
  font-weight: 700;
}

.qa-card {
  background: var(--ice-blue);
  border: 0;
  border-radius: 0;
  padding: 1.45rem 1.7rem;
}

.qa-card p {
  margin: 0 0 1rem;
  font-weight: 500;
  color: #15181c;
}
.qa-card p:last-child {
  margin-bottom: 0;
}

.quote-line {
  font-weight: 500 !important;
}

.hl {
  background: var(--highlight-blue);
  color: #0d2b4e;
  padding: 0.05em 0.28em;
  border-radius: 0;
  font-weight: 700;
}

.hl--underlined {
  border-bottom: 2px solid var(--highlight-line);
}

.simple-list {
  margin: 0.45rem 0 0;
  padding-left: 1.35rem;
  font-weight: 700;
}
.simple-list li {
  margin-bottom: 0.25rem;
}

.tips-list {
  margin: 0.9rem 0 0;
  padding-left: 1.4rem;
}
.tips-list li {
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.tips-list li:last-child {
  margin-bottom: 0;
}

/* Side stack (Page 2 right column) */
.question-line {
  display: block;
}

.qa-side-stack {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  align-items: center;
}

.qa-side-stack .qa-badge {
  width: 100%;
}

.qa-side-stack--outro {
  justify-content: space-between;
  height: 100%;
}

.side-illustration {
  width: 100%;
  max-width: 215px;
  height: auto;
}

.side-illustration--waving {
  max-width: 180px;
}

.outro-robot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 1.5rem;
}

.outro-svg {
  display: block;
  width: 145%;
  max-width: 295px;
  height: auto;
  flex-shrink: 0;
}

/* ==========================================================================
   3-Column Nuance Panel — desktop: original Affinity SVG; mobile: HTML stack
   ========================================================================== */
.nuance-panel-svg {
  display: none;
  width: 100%;
  height: auto;
  margin-bottom: 2.75rem;
}

@media (min-width: 861px) {
  .nuance-panel-svg { display: block; }
}

.nuance-panel {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--ice-blue);
  border-radius: 0;
  padding: 1.5rem 0.4rem 1.3rem;
  margin-bottom: 2.75rem;
  overflow: hidden; /* PDF clips the overhanging column-1 robot at the panel edges */
}

.nuance-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.75rem;
}

/* Column 2: flush right toward the second blue divider bar */
.nuance-col:nth-child(2) {
  padding-right: 6px;
}

/* Vertical rounded blue divider bars between columns (just like PDF) */
.nuance-col:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 14%;
  bottom: 15%;
  width: 6px;
  border-radius: 3px;
  background: var(--divider-blue);
}

.nuance-col__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
  gap: 0.1rem;
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 0.55rem;
}

.nuance-col__svg {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
}

/* Column 1: robot overhangs the panel's left/bottom edge, exactly like the PDF */
.nuance-col__svg--1 {
  width: 115%;
  align-self: flex-start;
  margin-left: -20%;
  margin-bottom: -2.4rem;
}

.nuance-col__svg--2 {
  width: 98%;
  align-self: flex-end;
}

.nuance-col__svg--3 {
  width: 96%;
  align-self: flex-start;
}

.nuance-col__note {
  position: absolute;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: left;
  color: #15181c;
}

.nuance-col__note--1 {
  right: 12px;
  bottom: 5%;
  max-width: 56%;
}

.nuance-col__note--2 {
  left: 14px;
  bottom: 9%;
  max-width: 36%;
}

.nuance-col__note--3 {
  right: 4px;
  bottom: 4%;
  max-width: 44%;
}

/* ==========================================================================
   Article Meta / Author Byline
   ========================================================================== */
.article-meta {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #ebeff4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.article-meta__author {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.article-meta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.35rem;
  border-radius: 0;
  background: var(--burgundy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid var(--burgundy);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.cta-btn:hover {
  background: var(--burgundy-dark);
  border-color: var(--burgundy-dark);
  transform: translateY(-1px);
}

.cta-btn--outline {
  background: transparent;
  color: var(--burgundy);
}
.cta-btn--outline:hover {
  background: rgba(139, 29, 44, 0.08);
  color: var(--burgundy-dark);
}

/* Site Footer */
.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.site-footer p {
  margin: 0;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(139, 29, 44, 0.88);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
}
.back-to-top:hover {
  background: var(--burgundy-dark);
  transform: translateY(-2px);
}

/* Subtle scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .article-shell {
    margin: 1rem;
    padding: 1.6rem 1.25rem;
  }

  .hero {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
    align-items: start;
    text-align: left;
    gap: 0.8rem 0.6rem;
    padding: 0;
    margin-bottom: 2rem;
  }
  .hero__visual {
    grid-column: 1;
    grid-row: 1;
  }
  .hero__visual img {
    width: 100%;
    max-width: 195px;
  }
  .hero__text,
  .hero__title-wrap,
  .hero__title {
    display: contents;
  }
  .hero__title-wrap::before,
  .hero__title > br {
    display: none;
  }
  .hero__title-intro {
    grid-column: 2;
    grid-row: 1;
    padding-top: 0.4rem;
    font-size: clamp(1.3rem, 6.1vw, 2.8rem);
    line-height: 1.15;
  }
  .hero__title-question {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 1rem;
    font-size: clamp(1.2rem, 6vw, 2.5rem);
    line-height: 1.2;
  }
  .hero__title-question::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 6px;
    border-radius: 4px;
    background: var(--burgundy);
  }
  .hero__subtitle {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
    margin: 0;
    font-size: 1.2rem;
    gap: 0.3rem;
  }

  .question-line {
    display: inline;
  }

  .qa-row--left,
  .qa-row--right {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .qa-row--right .qa-badge,
  .qa-row--right .qa-side-stack {
    order: -1;
  }

  /* Keep the question first, but let the goodbye follow the advice. */
  .qa-side-stack--outro {
    display: contents;
  }
  .qa-side-stack--outro .qa-badge {
    grid-row: 1;
  }
  .qa-row--outro > .qa-card {
    grid-row: 2;
  }
  .qa-side-stack--outro .outro-robot {
    grid-row: 3;
  }

  .nuance-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem 1.25rem;
  }
  .nuance-col {
    padding: 0 0 1.75rem;
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
  }
  .nuance-col__head {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.45;
    gap: 0.2rem;
    margin-bottom: 1.1rem;
  }
  .nuance-col__head > span {
    background: var(--highlight-blue);
    padding: 0.1rem 0.35rem;
  }
  .nuance-col:nth-child(2) {
    padding-right: 0;
  }
  .nuance-col__svg--1 {
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
  }
  .nuance-col:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 10%;
    right: 10%;
    width: auto;
    height: 4px;
  }
  .nuance-col:last-child {
    padding-bottom: 0;
  }

  .nuance-col__note--1,
  .nuance-col__note--2,
  .nuance-col__note--3 {
    bottom: 1.85rem;
  }
  .nuance-col:last-child .nuance-col__note--3 {
    bottom: 0.25rem;
  }

  .outro-svg {
    width: 100%;
    max-width: 240px;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media print {
  .page-header,
  .article-meta__actions,
  .back-to-top {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .article-shell {
    box-shadow: none;
    margin: 0;
    padding: 0;
  }
}
