:root {
  --bg: #f3efe7;
  --surface: #fffdf8;
  --surface-strong: #ffffff;
  --ink: #1d2427;
  --ink-soft: #586166;
  --line: #d8d0c2;
  --graphite: #172024;
  --graphite-2: #243034;
  --accent: #b7652a;
  --accent-2: #d38a45;
  --accent-soft: #f3dfc8;
  --green: #466a58;
  --shadow: 0 18px 45px rgba(25, 31, 33, .10);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1180px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    linear-gradient(rgba(83, 72, 57, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 72, 57, .035) 1px, transparent 1px),
    var(--bg);
  background-size: 26px 26px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--surface);
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 32, 36, .96);
  color: #fff;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #fff;
  font-family: var(--mono);
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
}
.brand small {
  display: block;
  color: #cfd6d7;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .02em;
}
.site-nav { margin-left: auto; }
.site-nav > ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .2rem;
}
.site-nav a {
  display: block;
  padding: .72rem .86rem;
  border-radius: 10px;
  text-decoration: none;
  color: #e9eeee;
  font-size: .94rem;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: rgba(255,255,255,.09); color: #fff; }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #fff;
  border-radius: 10px;
  padding: .65rem .8rem;
  cursor: pointer;
}

.hero {
  background:
    radial-gradient(circle at 88% 10%, rgba(211,138,69,.28), transparent 32%),
    linear-gradient(135deg, #182126 0%, #243036 58%, #172024 100%);
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 5.4rem 0 4.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 3.2rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: #f1c89c;
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: .78rem;
  font-weight: 800;
}
.eyebrow::before { content: ""; width: 30px; height: 2px; background: var(--accent-2); }
.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 6.4rem);
  line-height: 1.00;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero h1 span { color: #f0b67c; }
.hero-copy {
  max-width: 760px;
  margin: 1.6rem 0 0;
  color: #dce3e4;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 46px;
  padding: .75rem 1.05rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 750;
  border: 1px solid transparent;
}
.button-primary { background: var(--accent-2); color: #1e2325; }
.button-primary:hover { background: #e49a52; }
.button-secondary { border-color: rgba(255,255,255,.24); color: #fff; background: rgba(255,255,255,.04); }
.button-secondary:hover { background: rgba(255,255,255,.1); }

.workbench {
  position: relative;
  min-height: 400px;
  border-radius: 28px;
  background:
    linear-gradient(130deg, rgba(255,255,255,.09), rgba(255,255,255,.02)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 24px),
    #1d292e;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 35px 90px rgba(0,0,0,.35);
  overflow: hidden;
}
.workbench::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 92px;
  background: linear-gradient(90deg, #8b4d28, #bd7740 34%, #9a592f 65%, #704020);
  box-shadow: inset 0 6px 0 rgba(255,255,255,.11), inset 0 -5px 0 rgba(44,20,7,.25);
}
.tool-card {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(15, 22, 25, .84);
  color: #eaf0f1;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(0,0,0,.24);
}
.tool-card.code { top: 44px; left: 34px; right: 86px; padding: 1.1rem; font-family: var(--mono); font-size: .82rem; }
.tool-card.note { right: 26px; top: 190px; width: 230px; padding: 1rem; transform: rotate(2deg); }
.tool-card.note strong { color: #f2c395; }
.code-line { display: block; margin: .35rem 0; color: #cfd8da; }
.code-line .hot { color: #f0b67c; }
.code-line .good { color: #9fc6ad; }

main { min-height: 70vh; }
.section { padding: 4.6rem 0; }
.section-tight { padding: 3.2rem 0; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }
.section-head { display: flex; gap: 2rem; align-items: end; justify-content: space-between; margin-bottom: 2rem; }
.section-head h2,
.article h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.035em; }
.section-head p { margin: 0; max-width: 660px; color: var(--ink-soft); }
.section-head > div > .pill + h2 { margin-top: 1rem; }
.panel > .pill + h3,
.about-teaser > div > .pill + h3,
.about-copy > .pill + h2,
.workshop-copy > .pill + h3 { margin-top: 1rem; }

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: .08rem 0 .08rem .62rem;
  border: 0;
  border-left: 3px solid #9b8d7b;
  border-radius: 0;
  background: transparent;
  color: #4a5356;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .065em;
  text-transform: uppercase;
}
.pill.accent { background: transparent; border-color: var(--accent); color: #77401d; }
.pill.dark { background: transparent; border-color: var(--graphite); color: var(--graphite); }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255,253,248,.92);
  box-shadow: 0 8px 26px rgba(26,31,33,.05);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); transition: .18s ease; }
.card h3 { margin: .9rem 0 .5rem; font-size: 1.42rem; line-height: 1.14; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--ink-soft); }
.card .meta { margin-top: auto; padding-top: 1.2rem; display: flex; align-items: center; gap: .7rem; justify-content: space-between; }
.card-link { text-decoration: none; font-weight: 800; color: var(--accent); }
.card-link::after { content: " →"; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.panel.dark { background: var(--graphite); color: #fff; border-color: #2b393e; }
.panel.dark p { color: #cbd4d6; }
.panel h3 { margin-top: 0; font-size: 1.55rem; }

.quote {
  margin: 0;
  padding: 1.5rem 1.7rem;
  border-left: 5px solid var(--accent);
  background: #fff8ed;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: clamp(1.25rem, 2.8vw, 1.8rem);
  line-height: 1.35;
  font-weight: 720;
  letter-spacing: -.02em;
}

.steps { counter-reset: step; display: grid; gap: .85rem; margin-top: 1.3rem; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,.64);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--graphite);
  color: #fff;
  border-radius: 10px;
  font-family: var(--mono);
  font-weight: 800;
}
.step strong { display: block; margin-bottom: .2rem; }
.step p { margin: 0; color: var(--ink-soft); }

.page-hero {
  background: linear-gradient(135deg, #172024, #263338);
  color: #fff;
}
.page-hero .container { padding: 4.3rem 0 3.8rem; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5.4rem); max-width: 980px; }
.page-hero p { max-width: 780px; color: #d8e0e1; font-size: 1.15rem; }
.breadcrumb { color: #c2ccce; font-size: .9rem; margin-bottom: 1rem; }
.breadcrumb a { color: #fff; }

.article { max-width: 850px; margin: 0 auto; }
.article > p,
.article li { font-size: 1.06rem; }
.article h2 { margin-top: 3rem; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.article h3 { margin-top: 2rem; font-size: 1.35rem; }
.article p { color: #364045; }
.article .lead { font-size: 1.25rem; color: #2f393d; }
.article ul, .article ol { padding-left: 1.25rem; }
.article li + li { margin-top: .45rem; }

.ki-box {
  margin: 2.2rem 0;
  padding: 1.35rem;
  border-radius: var(--radius);
  background: #edf2ef;
  border: 1px solid #c9d7cf;
}
.ki-box h3 { margin: 0 0 1rem; color: #29483a; }
.role-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
.role {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255,255,255,.72);
  padding: .72rem .85rem;
  border-radius: 10px;
}
.role span:first-child { font-weight: 700; }
.role span:last-child { color: #3c5d4d; text-align: right; }

.code-block {
  overflow-x: auto;
  padding: 1.15rem;
  border-radius: 16px;
  background: #172024;
  color: #e4ebec;
  font-family: var(--mono);
  font-size: .88rem;
  line-height: 1.6;
}

.search-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.5rem;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.empty-state { display: none; padding: 1.2rem; border-radius: 14px; background: #fff8ed; border: 1px solid #ead4b9; }

.status-note {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #fff4df;
  border: 1px solid #e6ca9c;
}
.status-note strong { color: #704116; }

.site-footer {
  background: #12191c;
  color: #c8d0d1;
  margin-top: 2rem;
}
.footer-grid {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.6rem 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h2, .site-footer h3 { color: #fff; margin-top: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .4rem; }
.site-footer a { color: #d7dede; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem;
  text-align: center;
  font-size: .84rem;
  color: #95a2a5;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 4rem; }
  .workbench { min-height: 350px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: #172024;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 18px 35px rgba(0,0,0,.25);
  }
  .site-nav.open { display: block; }
  .site-nav > ul { display: block; width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; padding: .7rem 0 1rem; }
  .site-nav a { padding: .8rem .9rem; }
  .brand small { display: none; }
  .hero-grid { padding: 3.4rem 0 3.6rem; gap: 2rem; }
  .workbench { min-height: 310px; }
  .tool-card.code { left: 18px; right: 34px; top: 28px; font-size: .76rem; }
  .tool-card.note { right: 14px; top: 165px; width: 210px; }
  .section { padding: 3.2rem 0; }
  .section-head { display: block; }
  .section-head p { margin-top: .8rem; }
  .card-grid { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .nav-wrap, .container, .hero-grid, .footer-grid { width: min(100% - 1.2rem, var(--max)); }
  .hero h1 { font-size: 2.7rem; }
  .hero-actions { display: grid; }
  .button { width: 100%; }
  .workbench { min-height: 285px; }
  .tool-card.code { right: 18px; }
  .tool-card.note { width: 184px; font-size: .9rem; top: 162px; }
  .page-hero .container { padding: 3.2rem 0 3rem; }
  .card { padding: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* V0.3: content and photo preparation */
.media-slot {
  margin: 1.8rem 0;
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  border: 1px dashed #b8aa95;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(183,101,42,.08), rgba(23,32,36,.03)),
    rgba(255,253,248,.72);
  color: var(--ink-soft);
}
.media-slot strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: .3rem; }
.media-slot small { display: block; max-width: 620px; }
.media-slot.landscape { aspect-ratio: 16 / 9; min-height: 0; }
.media-slot.portrait { aspect-ratio: 4 / 5; min-height: 0; max-width: 520px; margin-inline: auto; }

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  margin: 1.5rem 0 2rem;
}
.fact {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.62);
}
.fact strong { display: block; margin-bottom: .2rem; }
.fact span { color: var(--ink-soft); font-size: .94rem; }

.callout {
  margin: 1.8rem 0;
  padding: 1.2rem 1.3rem;
  border-radius: 16px;
  background: #eef3f5;
  border: 1px solid #cad7dc;
}
.callout strong { color: #263b43; }
.callout.warning { background: #fff4df; border-color: #e6ca9c; }
.callout.success { background: #edf2ef; border-color: #c9d7cf; }

.article-nav {
  margin: 1.5rem 0 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.56);
}
.article-nav strong { display:block; margin-bottom:.45rem; }
.article-nav ul { margin:.2rem 0 0; padding-left:1.1rem; columns:2; }
.article-nav a { text-decoration-thickness: 1px; text-underline-offset: 3px; }

.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .55rem;
  margin: 1.5rem 0 2rem;
}
.flow > div {
  position: relative;
  padding: 1rem .72rem .9rem;
  text-align: center;
  border-radius: 2px;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.34);
  color: var(--ink);
  font-size: .9rem;
  font-weight: 720;
}
.flow > div:not(:last-child)::after {
  content:'→';
  position:absolute;
  right:-.55rem;
  top:50%;
  transform:translate(50%,-50%);
  color:var(--accent);
  font-weight:900;
  z-index:2;
}

.mini-table { width:100%; border-collapse: collapse; margin:1.3rem 0 2rem; }
.mini-table th, .mini-table td { border-bottom:1px solid var(--line); padding:.75rem .65rem; text-align:left; vertical-align:top; }
.mini-table th { color:var(--ink); background:rgba(255,255,255,.5); }
.mini-table td { color:#364045; }

@media (max-width: 760px) {
  .fact-grid { grid-template-columns: 1fr; }
  .article-nav ul { columns:1; }
  .flow { grid-template-columns: 1fr; }
  .flow > div:not(:last-child)::after { content:'↓'; right:auto; left:50%; top:auto; bottom:-.62rem; transform:translate(-50%,50%); }
}

/* V0.5: echte Projektbilder, Galerien und externe Projektlinks */
img { display: block; }

.hero-collage {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: 1fr 1fr;
  gap: .8rem;
  min-height: 430px;
}
.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  background: #11191c;
  text-decoration: none;
}
.hero-photo-main { grid-row: 1 / 3; }
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.hero-photo-small img { object-fit: contain; padding: .35rem; background: #182126; }
.hero-photo:hover img { transform: scale(1.02); }
.hero-photo span {
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .8rem;
  padding: .58rem .72rem;
  border-radius: 10px;
  background: rgba(17,25,28,.84);
  color: #fff;
  font-size: .83rem;
  line-height: 1.25;
  backdrop-filter: blur(8px);
}
.hero-photo span strong { color: #f0b67c; margin-right: .28rem; }

.card-with-media { padding: 0; overflow: hidden; }
.card-with-media .card-body { padding: 1.3rem 1.4rem 1.4rem; display:flex; flex-direction:column; flex:1; }
.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e9e4da;
  border-bottom: 1px solid var(--line);
}
.card-media img { width:100%; height:100%; object-fit:cover; transition:transform .2s ease; }
.card-media.screenshot { background:#20292d; }
.card-media.screenshot img { object-fit: contain; padding: .45rem; }
.card:hover .card-media img { transform:scale(1.015); }

.external-link {
  color: var(--accent);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.external-link:hover { text-decoration-thickness: 2px; }

.button-dark { background: var(--graphite); color:#fff; border-color:var(--graphite); }
.button-dark:hover { background: var(--graphite-2); }
.visit-project { margin: 2rem 0; }

.project-figure,
.photo-gallery figure,
.video-figure,
.portrait-card { margin: 1.8rem 0; }
.project-figure {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.project-figure img { width:100%; height:auto; }
.project-figure-hero img { max-height: 640px; object-fit: cover; }
.browser-shot { background: #1c2529; padding: .7rem .7rem 0; }
.browser-shot a { display:block; border-radius: 14px 14px 4px 4px; overflow:hidden; }
.browser-shot img { width:100%; height:auto; }
.project-figure figcaption,
.photo-gallery figcaption,
.video-figure figcaption,
.portrait-card figcaption {
  padding: .72rem .9rem;
  color: var(--ink-soft);
  font-size: .9rem;
  background: rgba(255,253,248,.96);
}

.photo-gallery {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:.9rem;
  margin:1.6rem 0 2rem;
}
.photo-gallery figure {
  margin:0;
  overflow:hidden;
  border-radius:16px;
  border:1px solid var(--line);
  background:var(--surface);
}
.photo-gallery img { width:100%; aspect-ratio: 4 / 3; object-fit:cover; }
.video-figure {
  overflow:hidden;
  border-radius:18px;
  border:1px solid var(--line);
  background:#101719;
}
.video-figure video { display:block; width:100%; max-height:620px; background:#101719; }

.about-teaser { display:grid; grid-template-columns: 145px 1fr; gap:1.2rem; align-items:center; }
.about-teaser > img { width:145px; height:180px; object-fit:cover; border-radius:16px; }
.about-teaser h3 { margin:.55rem 0; }

.about-layout {
  display:grid;
  grid-template-columns: minmax(280px, .68fr) minmax(0, 1.32fr);
  gap:2.2rem;
  align-items:start;
}
.portrait-card {
  margin:0;
  overflow:hidden;
  border-radius:24px;
  border:1px solid var(--line);
  background:var(--surface);
  box-shadow:var(--shadow);
  position:sticky;
  top:96px;
}
.portrait-card img { width:100%; aspect-ratio: 2 / 3; object-fit:cover; }
.about-copy > h2 { margin:.7rem 0 1rem; font-size:clamp(2rem,4vw,3.1rem); line-height:1.08; letter-spacing:-.035em; }
.about-copy > p { font-size:1.08rem; color:#364045; }
.about-panels { margin-top:1.6rem; }

.workshop-project {
  display:grid;
  grid-template-columns: minmax(230px,.6fr) minmax(0,1.4fr);
  gap:1.2rem;
  align-items:stretch;
  margin:1.3rem 0;
  padding:1.1rem;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:rgba(255,253,248,.78);
}
.workshop-copy { padding:.45rem .45rem .45rem .2rem; }
.workshop-copy h3 { margin:.65rem 0 .45rem; font-size:1.55rem; line-height:1.1; }
.workshop-copy p { color:var(--ink-soft); }
.project-status { color:#667075; font-size:.88rem; font-weight:750; }
.image-strip { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap:.55rem; }
.image-strip img { width:100%; height:100%; min-height:190px; object-fit:cover; border-radius:14px; }
.compact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top:1.4rem; }

@media (max-width: 920px) {
  .hero-collage { min-height:380px; }
  .about-layout { grid-template-columns: 1fr; }
  .portrait-card { position:static; max-width:560px; }
  .workshop-project { grid-template-columns:1fr; }
}

@media (max-width: 760px) {
  .hero-collage { grid-template-columns:1fr 1fr; grid-template-rows: 260px 145px; min-height:0; }
  .hero-photo-main { grid-row:1; grid-column:1 / 3; }
  .photo-gallery { grid-template-columns:1fr; }
  .photo-gallery img { aspect-ratio: 16 / 11; }
  .about-teaser { grid-template-columns:95px 1fr; }
  .about-teaser > img { width:95px; height:125px; }
  .image-strip { grid-template-columns:1fr; }
  .image-strip img { min-height:0; aspect-ratio: 4 / 3; }
  .compact-grid { grid-template-columns:1fr; }
}

@media (max-width: 420px) {
  .hero-collage { grid-template-columns:1fr; grid-template-rows:auto; }
  .hero-photo-main { grid-row:auto; grid-column:auto; aspect-ratio:4/3; }
  .hero-photo-small { aspect-ratio:16/9; }
  .about-teaser { grid-template-columns:1fr; }
  .about-teaser > img { width:100%; height:220px; object-position:center 28%; }
  .browser-shot { padding:.35rem .35rem 0; }
}

/* V0.8: ausführliche Projektberichte LSD und PODC */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
  margin: 1.5rem 0 2rem;
}
.decision-card {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,253,248,.78);
}
.decision-card h3 { margin: 1rem 0 .5rem; }
.decision-card p { margin: 0; color: var(--ink-soft); }

.project-timeline {
  display: grid;
  gap: .85rem;
  margin: 1.5rem 0 2rem;
}
.timeline-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.56);
}
.timeline-item > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--graphite);
  color: #fff;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 800;
}
.timeline-item strong { display: block; margin: .1rem 0 .28rem; }
.timeline-item p { margin: 0; }
.flow-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .decision-grid { grid-template-columns: 1fr; }
  .flow-four { grid-template-columns: 1fr; }
}


/* V0.13: klare Navigation, Labels statt Schein-Buttons und Artikelserien */
.nav-item { position: relative; }
.nav-mainline { display: flex; align-items: center; }
.submenu-toggle {
  width: 28px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  margin-left: -.45rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #dce3e4;
  cursor: pointer;
}
.submenu-toggle:hover, .submenu-toggle:focus-visible { background: rgba(255,255,255,.09); color:#fff; }
.submenu-toggle span { transition: transform .16s ease; }
.has-submenu.submenu-open .submenu-toggle span { transform: rotate(180deg); }
.submenu {
  position: absolute;
  top: calc(100% + .35rem);
  left: 0;
  z-index: 70;
  display: none;
  min-width: 275px;
  margin: 0;
  padding: .45rem;
  list-style: none;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #172024;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}
.submenu li + li { margin-top: .1rem; }
.submenu a { padding: .68rem .78rem; border-radius: 9px; color:#e8eeee; font-size:.88rem; }
.submenu a:hover, .submenu a:focus-visible { background: rgba(255,255,255,.09); }
.has-submenu.submenu-open > .submenu { display:block; }
@media (hover:hover) and (min-width:761px) {
  .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu { display:block; }
}

.prompt-template { margin-top: 1.35rem; white-space: pre-wrap; }
.article h2 + .prompt-template { margin-top: 1.35rem; }

.series-nav {
  margin-top: 3.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.series-overview { display:inline-block; margin-bottom:1rem; color:var(--accent); font-weight:800; text-underline-offset:3px; }
.series-links { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.series-prev, .series-next {
  display:flex;
  flex-direction:column;
  gap:.22rem;
  min-height:92px;
  padding:1rem 1.1rem;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,253,248,.78);
  text-decoration:none;
}
.series-next { text-align:right; align-items:flex-end; }
.series-prev:hover, .series-next:hover { border-color:#b9a995; box-shadow:0 8px 24px rgba(26,31,33,.07); }
.series-prev span, .series-next span { color:var(--ink-soft); font-size:.84rem; }
.series-prev strong, .series-next strong { line-height:1.25; }
.series-spacer { min-height:1px; }

@media (max-width:760px) {
  .nav-mainline { justify-content:space-between; }
  .nav-mainline > a { flex:1; }
  .submenu-toggle { width:46px; height:42px; margin:0; }
  .submenu {
    position: static;
    min-width:0;
    margin:.1rem .6rem .45rem 1rem;
    padding:.2rem 0 .35rem .65rem;
    border:0;
    border-left:2px solid rgba(211,138,69,.55);
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .submenu a { padding:.6rem .7rem; color:#cfd8da; }
  .series-links { grid-template-columns:1fr; }
  .series-next { text-align:left; align-items:flex-start; }
  .series-spacer { display:none; }
  .flow > div:not(:last-child)::after { content:'↓'; right:auto; left:50%; top:auto; bottom:-.62rem; transform:translate(-50%,50%); }
}

/* V0.15: portrait-friendly gallery for the wooden box photos */
.photo-gallery.portrait-gallery img { aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 760px) {
  .photo-gallery.portrait-gallery img { aspect-ratio: 3 / 4; }
}
