/* Layout: Werkstatt-Papier, schmale kräftige Überschriften, Handschrift als Randnotiz, eine dunkle Werkzeug-Bande */
:root {
  --paper: #F7F5F0;
  --sheet: #FFFFFF;
  --ink: #23262B;
  --ink-soft: #3F434A;
  --muted: #5A5E66;
  --line: #DDD7CA;
  --shade: #E6E1D6;
  --red: #C4161C;
  --red-text: #B3141A;
  --band: #23262B;
  --band-text: #F2EFE8;
  --band-muted: #C9C5BC;
  --band-line: #4A4E55;
  --band-red: #F0827E;
  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--red-text); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--red); outline-offset: 2px;
}
h1, h2, h3 { text-wrap: balance; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* Kopf */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-sign { background: var(--red); color: #FFFFFF; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.3; letter-spacing: 0.04em; padding: 0 10px; transform: rotate(-1.5deg); box-shadow: 3px 3px 0 var(--ink); }
.logo-word { font-family: var(--f-display); font-weight: 700; font-size: 28px; letter-spacing: 0.08em; color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--red-text); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--red); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav .lang { color: var(--muted); font-size: 14px; }
.nav .btn-dark { padding: 10px 18px; }

/* Bausteine */
.hand { font-family: var(--f-hand); color: var(--red-text); font-size: 28px; line-height: 1.15; margin: 0 0 4px; }
.h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(42px, 6vw, 64px); line-height: 1.02; letter-spacing: 0.01em; margin: 0; }
.h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(34px, 4.4vw, 44px); line-height: 1.05; margin: 0; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 600px; margin: 0; }
.prose { max-width: 66ch; color: var(--ink-soft); }
.prose p { margin: 0 0 16px; }
.prose h3 { font-family: var(--f-display); font-size: 28px; line-height: 1.1; color: var(--ink); margin: 40px 0 12px; }
.scribble { display: block; margin: 14px 0 22px; }
.section { padding-block: 88px; }
.band-white { background: var(--sheet); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--band); color: var(--band-text); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 48px; }
.row > * { min-width: 0; }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 4px; background: var(--red); color: #FFFFFF; border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--ink); color: #FFFFFF; }
.btn-line { display: inline-block; text-decoration: none; font-weight: 600; padding: 12px 22px; border: 2px solid var(--ink); border-radius: 4px; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #FFFFFF; }
.btn-dark { background: var(--ink); color: #FFFFFF !important; border-radius: 4px; text-decoration: none; }
.btn-dark:hover { background: var(--red); }
.more { font-weight: 600; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 80px 72px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-text .hand { font-size: 34px; margin-bottom: 12px; }
.hero-text .lead { margin-bottom: 32px; }
.hero-pic { flex: 1 1 400px; min-width: 0; position: relative; }
.photo { border: 2px solid var(--ink); border-radius: 4px; background: var(--shade); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-pic .photo { aspect-ratio: 4 / 3; transform: rotate(1deg); }
.hero-pic .photo-tall { aspect-ratio: 4 / 5; max-width: 460px; margin-left: auto; }
.hero-pic .photo-tall img { object-position: center 30%; }
@media (max-width: 900px) { .hero-pic .photo-tall { margin: 0 auto; } }

/* Werkstatt-Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; margin-top: 56px; }
.gallery figure { margin: 0; background: var(--sheet); border: 2px solid var(--ink); padding: 10px; box-shadow: 4px 4px 0 var(--line); }
.gallery figure:nth-child(1) { transform: rotate(-1.2deg); }
.gallery figure:nth-child(2) { transform: rotate(0.8deg); }
.gallery figure:nth-child(3) { transform: rotate(-0.6deg); }
.gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-family: var(--f-hand); font-size: 22px; line-height: 1.2; padding: 8px 4px; color: var(--ink); }
.tag { position: absolute; left: -10px; bottom: -18px; margin: 0; background: var(--sheet); border: 2px solid var(--ink); padding: 6px 14px; font-family: var(--f-hand); font-size: 24px; line-height: 1.1; transform: rotate(-3deg); }
@media (max-width: 600px) { .tag { left: 8px; } }
.caption { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* Leistungskarten */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: 28px; box-shadow: 4px 4px 0 var(--line); display: flex; flex-direction: column; }
.card h3 { margin: 16px 0 8px; font-size: 19px; line-height: 1.3; }
.card p { margin: 0; font-size: 16px; color: #4A4E55; }
.card .more { margin-top: auto; padding-top: 16px; font-size: 15px; }
.icon { width: 32px; height: 32px; stroke: var(--red); }

/* Werkzeuge (dunkel) */
.band-dark .hand { color: var(--band-red); }
.band-dark .lead, .band-dark p { color: var(--band-muted); }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tool { border: 1px solid var(--band-line); border-radius: 4px; padding: 32px; }
.tool h3 { margin: 0 0 8px; font-family: var(--f-display); font-size: 34px; letter-spacing: 0.02em; color: var(--band-text); }
.tool a { color: #FFFFFF; font-weight: 600; }
.tool a:hover { color: var(--band-red); }

/* Portrait */
.portrait { flex: 0 1 320px; aspect-ratio: 1 / 1; max-width: 320px; border: 2px solid var(--ink); border-radius: 50%; overflow: hidden; background: #111; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Beiträge */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.post { display: block; text-decoration: none; color: var(--ink); border-top: 4px solid var(--ink); padding-top: 16px; }
.post.alert { border-top-color: var(--red); }
.post:hover h3 { color: var(--red-text); }
.post .kicker { margin: 0 0 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #4A4E55; }
.post.alert .kicker { color: var(--red-text); }
.post h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.post .meta { margin: 0; font-size: 14px; color: var(--muted); }
.example { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border: 1px dashed var(--muted); padding: 2px 8px; border-radius: 3px; }

/* Formulare */
.signup { margin-top: 48px; background: var(--paper); border: 2px dashed var(--ink); border-radius: 4px; padding: 28px; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; }
.signup > div { flex: 1 1 320px; min-width: 0; }
.signup h3 { margin: 0 0 4px; font-size: 20px; }
.signup p { margin: 0; font-size: 15px; color: #4A4E55; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; padding: 0; border: 0; font-size: 15px; }
.checks label { display: flex; align-items: center; gap: 6px; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 12px; border: 1px solid #8A8E95; border-radius: 4px; background: var(--sheet); color: var(--ink); width: 100%; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.inline-form .field { flex: 1 1 200px; }
.notice { margin-top: 12px; font-size: 15px; color: var(--ink); background: var(--shade); border-radius: 4px; padding: 10px 14px; }

/* Abschluss */
.cta { text-align: center; padding-block: 96px; }
.cta .h2 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 12px; }
.cta p { margin: 0 auto 28px; max-width: 620px; color: var(--ink-soft); }

.site-foot { border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-foot a { color: var(--muted); }

/* Unterseiten */
.page-head { padding-block: 72px 48px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 18px; }
.service { display: flex; flex-wrap: wrap; gap: 24px 56px; padding-block: 56px; border-bottom: 1px solid var(--line); }
.service:last-of-type { border-bottom: 0; }
.service-title { flex: 1 1 280px; min-width: 0; }
.service-title .h2 { font-size: 34px; }
.service-body { flex: 2 1 460px; min-width: 0; color: var(--ink-soft); }
.service-body p { margin: 0 0 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 16px; height: 8px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.quote { margin: 0 0 20px; font-family: var(--f-hand); font-size: 30px; line-height: 1.2; color: var(--ink); }
.figure { margin: 0; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > .prose { flex: 2 1 480px; }
.split > aside { flex: 1 1 300px; min-width: 0; }
.facts { background: var(--sheet); border: 2px solid var(--ink); border-radius: 4px; padding: 24px; box-shadow: 4px 4px 0 var(--line); }
.facts dl { margin: 0; display: grid; gap: 12px; }
.facts dt { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-grid form { flex: 2 1 460px; min-width: 0; display: grid; gap: 16px; }
.contact-grid aside { flex: 1 1 280px; min-width: 0; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mail { font-family: var(--f-display); font-size: 26px; letter-spacing: 0.02em; user-select: all; }
.copy { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 1px solid var(--ink); border-radius: 4px; padding: 6px 12px; cursor: pointer; color: var(--ink); }
.placeholder { background: var(--shade); border: 1px dashed var(--muted); border-radius: 4px; padding: 20px; color: var(--muted); }

/* Claim mit Rotstrich */
.hero-text .claim { color: var(--ink); }
.mark { position: relative; white-space: nowrap; }
.mark svg { position: absolute; left: -4%; bottom: -4px; width: 108%; height: 12px; overflow: visible; }
.hero-text .h1 { margin-bottom: 22px; }

/* Screenshots der Produkte */
.screen { border-radius: 6px; box-shadow: 6px 6px 0 var(--line); }
.screen img { height: auto; }

/* Logo im Kopf */
.logo img { display: block; height: 40px; width: auto; }
@media (max-width: 480px) { .logo img { height: 32px; } }

/* Dunkle Bänder mit rotem Glow */
.band-dark {
  background:
    radial-gradient(120% 85% at 50% -15%, rgba(150, 18, 28, 0.55) 0%, rgba(80, 14, 20, 0.35) 38%, rgba(23, 24, 29, 0) 75%),
    #17181D;
}
.band-dark .cta p { color: var(--band-muted); }
.band-dark .btn:hover { background: #FFFFFF; color: var(--ink); }
.onair-lamp {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px;
  padding: 6px 16px; border: 1px solid rgba(214, 20, 28, 0.55); border-radius: 999px;
  background: rgba(214, 20, 28, 0.1); color: #F28A86;
  font-family: var(--f-body); font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
}
.onair-lamp .dot {
  width: 10px; height: 10px; border-radius: 50%; background: #E3161F;
  box-shadow: 0 0 10px 2px rgba(227, 22, 31, 0.7);
  animation: lamp 2.6s ease-in-out infinite;
}
@keyframes lamp { 50% { opacity: 0.55; box-shadow: 0 0 4px 1px rgba(227, 22, 31, 0.35); } }
@media (prefers-reduced-motion: reduce) { .onair-lamp .dot { animation: none; } }

/* Über-mich-Kasten oben auf der Startseite */
.about-top { border-top: 0; }
.about-top .portrait { flex: 0 1 220px; max-width: 220px; }
.about-top .h2 { font-size: clamp(30px, 3.6vw, 38px); }
.about-top + .hero { padding-top: 64px; }

/* Variante B: Person im Aufmacher */
.person { display: flex; align-items: center; gap: 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 560px; }
.person img { flex: none; width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--ink); object-fit: cover; }
.person p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.person strong { color: var(--ink); font-size: 16px; }

/* Panorama mit Schwenk bei Mausberührung (OnAirPanel) */
.pan { --h: clamp(360px, 62vw, 600px); position: relative; height: var(--h); max-width: 840px; margin: 0 auto; overflow: hidden; background: #1B1D23; }
.pan img { display: block; width: 100%; height: auto; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pan { cursor: ns-resize; }
  .pan img { animation: pan 28s ease-in-out infinite; animation-play-state: paused; }
  .pan:hover img { animation-play-state: running; }
}
@keyframes pan {
  0%, 4% { transform: translateY(0); }
  45%, 55% { transform: translateY(calc(-100% + var(--h))); }
  96%, 100% { transform: translateY(0); }
}
@media (hover: none), (prefers-reduced-motion: reduce) {
  .pan { overflow-y: auto; -webkit-overflow-scrolling: touch; }
}
.pan-figure { max-width: 840px; margin: 0 auto; }
.pan-hint { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.pan-hint .touch { display: none; }
@media (hover: none) { .pan-hint .mouse { display: none; } .pan-hint .touch { display: inline; } }

/* Hinweis auf die Sprachen */
.lang-badge { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 6px 14px; border: 1px solid rgba(242, 239, 232, 0.4); border-radius: 999px; color: var(--band-text); font-size: 14px; font-weight: 600; }
.lang-badge svg { width: 18px; height: 18px; stroke: var(--band-red); }

/* Für wen ich arbeite: versetzte Texte */
.usecases-section { border-bottom: 1px solid var(--line); }
.usecases { display: flex; flex-direction: column; gap: 48px; margin-top: 48px; }
.usecase { max-width: 600px; }
.usecase:nth-child(even) { margin-left: auto; }
.usecase h3 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.usecase .uc-line { display: block; width: 140px; height: 10px; margin: 8px 0 14px; }
.usecase p { margin: 0 0 12px; color: var(--ink-soft); }
.usecase .more { font-size: 15px; }
@media (min-width: 900px) {
  .usecases { gap: 24px; }
  .usecase:nth-child(even) { margin-top: -40px; }
}
