/* LINUXTEC WERKSTATT
   Gemeinsam für Startseite und Praxisnotizen.
   Farben, Abstände und Schriftgrössen zuerst hier anpassen. */
:root {
  --ink: #122d33;
  --muted: #52686d;
  --paper: #f6f5f0;
  --white: #ffffff;
  --line: #d6ded9;
  --green: #36715d;
  --lime: #d8f46c;
  --terminal: #16363a;
}


/* Grundeinstellungen */
*
 {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  font-size: clamp(2.8rem, 4.8vw, 4.9rem);
}

h2 {
  font-size: clamp(2rem, 3.2vw, 3.3rem);
}

h3 {
  font-size: 1.35rem;
}

p + p {
  margin-top: 16px;
}

a {
  color: var(--ink);
  text-underline-offset: 5px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

section {
  scroll-margin-top: 30px;
}

.wrap {
  width: min(1180px, calc(100% - 64px));
  margin-inline: auto;
}

.section {
  padding-block: 88px;
}

.eyebrow {
  margin-bottom: 20px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.5;
}

.text-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 49px;
  padding: 12px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--ink);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--green);
  border-color: var(--green);
}

.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  color: white;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 20;
  background: white;
  padding: 12px;
}

.skip-link:focus {
  top: 10px;
}


/* Navigation */
.site-header
 {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  min-height: 94px;
}

.brand {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -1px;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 34px;
  margin-right: 8px;
  background: var(--lime);
  border-radius: 4px;
  font-family: Consolas, monospace;
  font-size: 20px;
  color: var(--ink);
}

.brand-tld {
  color: var(--muted);
  font-weight: 400;
}

.site-header nav {
  display: flex;
  gap: 30px;
}

.site-header nav a {
  padding-block: 10px;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover {
  text-decoration: underline;
}


/* Einstieg und Terminal Illustration */
.hero
 {
  padding-block: 80px 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 75px;
}

.hero-copy h1 span {
  color: var(--green);
}

.hero-copy .lead {
  max-width: 500px;
  margin-top: 30px;
}

.hero-copy > p:not(.eyebrow):not(.lead) {
  max-width: 480px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.hero-actions > .text-link {
  font-size: 0.85rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}

.terminal-figure {
  position: relative;
  min-width: 0;
  padding-bottom: 30px;
}

.terminal {
  overflow: hidden;
  background: var(--terminal);
  border-radius: 9px;
  color: #eaf3ec;
  box-shadow: 17px 24px 0 #e5e8df;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  border-bottom: 1px solid #ffffff26;
  font-family: Consolas, monospace;
  font-size: 0.68rem;
  color: #bacfc6;
}

.terminal-top > span:first-child {
  display: flex;
  gap: 6px;
}

.terminal-top i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70948b;
}

.terminal-top i:first-child {
  background: #eab59d;
}

.terminal-top i:nth-child(2) {
  background: #d8d79a;
}

.terminal-content {
  padding: 28px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.84rem;
}

.terminal-content p + p {
  margin-top: 15px;
}

.prompt {
  color: var(--lime);
}

.terminal-muted {
  color: #b3c9c1;
}

.terminal-status {
  display: grid;
  gap: 12px;
  margin-block: 28px;
}

.terminal-status > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px dashed #ffffff26;
  padding-bottom: 9px;
}

.terminal-status dd {
  margin: 0;
  color: var(--lime);
  text-align: right;
}

.terminal-status dd.terminal-warm {
  color: #f2b99d;
}

.terminal-note {
  color: #b3c9c1;
  margin-bottom: 24px;
}

.cursor {
  color: var(--lime);
}

.terminal-figure figcaption {
  max-width: 320px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.66rem;
}

.workshop-stamp {
  position: absolute;
  bottom: 10px;
  right: -14px;
  transform: rotate(-6deg);
  background: var(--lime);
  padding: 21px 25px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.manifesto-strip {
  border-block: 1px solid var(--line);
}

.manifesto-strip > .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-block: 19px;
}

.manifesto-strip p {
  font-weight: 700;
  font-size: 0.9rem;
}

.manifesto-strip p + p {
  margin-top: 0;
}

.manifesto-strip > .wrap > span:not(.strip-note) {
  color: #9aa7a2;
}

.strip-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.78rem;
}


/* Praxisnotiz auf der Startseite */
.section-head
 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 45px;
  margin-bottom: 40px;
}

.section-head > p {
  max-width: 350px;
  color: var(--muted);
}

.featured-note {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.note-art {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px;
  background: #e5eddf;
  text-decoration: none;
}

.note-art-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
}

.code-illustration {
  display: grid;
  gap: 8px;
  margin-block: 45px;
  font-family: Consolas, monospace;
}

.code-illustration > span {
  font-size: 0.95rem;
  color: var(--muted);
}

.code-illustration > strong {
  font-size: 3.7rem;
  font-weight: 400;
  letter-spacing: -0.07em;
  line-height: 1;
}

.code-illustration .code-failed {
  margin-top: 0;
  color: #913d2d;
}

.code-failed > span {
  color: var(--green);
}

.art-caption {
  margin-top: auto;
  font-size: 0.72rem;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 45px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}

.tags > span {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-family: Consolas, monospace;
  font-size: 0.65rem;
}

.featured-copy h3 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  margin-bottom: 22px;
}

.featured-copy h3 a {
  text-decoration: none;
}

.featured-copy h3 a:hover {
  text-decoration: underline;
}

.featured-copy > p {
  color: var(--muted);
}

.featured-copy .sample-label {
  margin-top: 18px;
  margin-bottom: 25px;
  font-size: 0.72rem;
}

.featured-copy > .text-link {
  margin-top: auto;
}


/* Themen und Über mich */
.subjects
 {
  background: #eef0e9;
  border-block: 1px solid var(--line);
}

.subject-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.subject-grid article {
  border-top: 1px solid #a9b7aa;
  padding-top: 20px;
}

.subject-number {
  font-family: Consolas, monospace;
  color: var(--green);
  font-size: 0.78rem;
}

.subject-grid h3 {
  margin-block: 24px 15px;
}

.subject-grid article > p {
  color: var(--muted);
}

.subject-grid .subject-example {
  margin-top: 25px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.about-grid h2 span {
  color: var(--green);
}

.about-grid .button {
  margin-top: 28px;
}

.about-grid > div:last-child > p:not(.lead) {
  color: var(--muted);
}

.closing {
  padding-block: 64px;
  text-align: center;
  background: var(--ink);
  color: white;
}

.closing .eyebrow {
  color: #bdcfc7;
}

.closing h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.closing .text-link {
  color: var(--lime);
  margin-top: 28px;
}

.site-footer {
  padding-block: 32px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner p {
  font-size: 0.75rem;
  color: var(--muted);
}

.footer-inner > a:last-child {
  font-size: 0.75rem;
}

.footer-inner .brand {
  font-size: 20px;
}


/* Unterseite für Praxisnotizen */
.reading-width
 {
  width: min(810px, calc(100% - 64px));
  margin-inline: auto;
}

.article-header {
  padding-block: 52px 60px;
  border-bottom: 1px solid var(--line);
}

.back-link {
  display: inline-block;
  margin-bottom: 38px;
  font-size: 0.8rem;
}

.article-header h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.article-header h1 span {
  color: var(--green);
}

.article-header .lead {
  margin-top: 28px;
  max-width: 680px;
}

.article-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.reading-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: space-between;
  gap: 60px;
  padding-block: 55px 85px;
}

.article-nav nav {
  display: grid;
  gap: 14px;
}

.article-nav nav a {
  font-size: 0.82rem;
}

.article-body {
  min-width: 0;
}

.article-disclosure {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.article-body section {
  padding-top: 38px;
}

.article-body h2 {
  font-size: 1.9rem;
  margin-bottom: 22px;
}

.article-body h3 {
  font-size: 1.2rem;
  margin-block: 27px 14px;
  letter-spacing: -0.02em;
}

.article-body p {
  max-width: 69ch;
}

code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 0.9em;
}

p code {
  background: #e4e9e0;
  padding: 2px 4px;
  border-radius: 2px;
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
  max-width: 100%;
  padding: 20px;
  margin-block: 20px;
  border-radius: 5px;
  background: var(--terminal);
  color: #eff9e3;
  line-height: 1.6;
  white-space: pre;
}

pre code {
  font-size: 0.83rem;
}

.takeaway {
  font-weight: 700;
}

.source-list {
  padding-left: 20px;
}

.source-list li {
  margin-bottom: 12px;
}

.article-body > .button {
  margin-top: 30px;
}


/* Tablet */
@media (max-width: 1000px)
 {
  .hero-grid {
    gap: 40px;
  }

  .terminal-content {
    padding: 23px;
    font-size: 0.75rem;
  }

  .workshop-stamp {
    right: 0;
  }

  .featured-copy {
    padding: 30px;
  }

  .about-grid {
    gap: 50px;
  }

  .reading-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 35px;
  }

}


/* Mobile */
@media (max-width: 760px)
 {
  .wrap, .reading-width {
    width: calc(100% - 40px);
  }

  .header-inner {
    min-height: 88px;
    gap: 18px;
    flex-wrap: wrap;
    padding-block: 17px;
  }

  .site-header nav {
    gap: 20px;
  }

  .hero {
    padding-block: 45px 55px;
  }

  .hero-grid, .featured-note, .about-grid, .reading-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  h1 {
    font-size: clamp(2.7rem, 8vw, 4.5rem);
  }

  .terminal-figure {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }

  .terminal-content {
    padding: 27px;
    font-size: 0.84rem;
  }

  .terminal {
    box-shadow: 8px 14px 0 #e5e8df;
  }

  .manifesto-strip > .wrap {
    flex-wrap: wrap;
    gap: 12px;
  }

  .strip-note {
    width: 100%;
    margin-left: 0;
  }

  .section {
    padding-block: 55px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .section-head > p {
    max-width: 500px;
  }

  .subject-grid {
    gap: 25px;
  }

  .featured-copy {
    padding: 32px;
  }

  .featured-copy h3 {
    font-size: 2.25rem;
  }

  .code-illustration {
    margin-block: 30px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }

  .reading-layout {
    gap: 35px;
    padding-block: 35px 60px;
  }

  .article-nav {
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }

  .article-nav nav {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

}

@media (max-width: 480px) {
  .site-header nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .site-header nav a {
    font-size: 0.78rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  .eyebrow {
    font-size: 0.62rem;
  }

  .hero-copy .lead {
    font-size: 1.08rem;
  }

  .terminal-content {
    padding: 22px;
    font-size: 0.7rem;
  }

  .terminal-figure figcaption {
    max-width: 175px;
  }

  .workshop-stamp {
    padding: 17px;
    font-size: 0.85rem;
  }

  .terminal-top {
    padding: 15px;
  }

  .subject-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .subject-grid h3 {
    margin-top: 14px;
  }

  .subject-grid .subject-example {
    margin-top: 15px;
  }

  .note-art, .featured-copy {
    padding: 25px;
  }

  .code-illustration > strong {
    font-size: 3rem;
  }

  .footer-inner {
    flex-direction: column;
  }

  .article-header {
    padding-block: 35px 45px;
  }

  .article-header h1 {
    font-size: 2.5rem;
  }

  .article-body h2 {
    font-size: 1.7rem;
  }

  .article-nav nav {
    grid-template-columns: 1fr;
  }

}

@media print {
  .site-header nav, .article-nav, .closing {
    display: none;
  }

  .reading-layout {
    display: block;
  }

  .section {
    padding-block: 25px;
  }

}
