/* Selbst gehostete Webfonts (OFL), keine externen CDNs. */
@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/archivo-variable.woff2") format("woff2");
}

:root {
  --font-sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --ink: #20251f;
  --ink-soft: #1f3d2f;
  --heading: #1f3d2f;
  --teal: #2e5641;
  --teal-dark: #1f3d2f;
  --teal-pale: #e5ece4;
  --moss: #6b8f71;
  --gold: #c08a2d;
  --gold-hover: #a97623;
  --paper: #fffdf8;
  --ground: #f5f2ea;
  --text: #20251f;
  --muted: #6e726b;
  --line: #ddd8cc;
  --line-dark: #58705f;
  --warning: #7d591f;
  --warning-bg: #fbf0da;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(31, 61, 47, 0.09);
  --container: 1180px;
  --header-bg: rgba(255, 253, 248, 0.97);
  --dark-panel: #1f3d2f;
  --dark-panel-deep: #13251c;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f5f2ea;
  --ink-soft: #e3e8df;
  --heading: #fffdf8;
  --teal: #6b8f71;
  --teal-dark: #abc2ae;
  --teal-pale: #263e30;
  --moss: #8faa93;
  --gold: #d4a14b;
  --gold-hover: #e0b15d;
  --paper: #182b22;
  --ground: #13251c;
  --text: #e5e4dc;
  --muted: #bdc4bb;
  --line: #385242;
  --line-dark: #667d6a;
  --warning: #e1b66d;
  --warning-bg: #342a18;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  --header-bg: rgba(19, 37, 28, 0.97);
  --dark-panel: #1f3d2f;
  --dark-panel-deep: #0e1c15;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  transition: background-color 180ms ease, color 180ms ease;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 1000;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(calc(100% - 48px), 780px);
  margin-inline: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.025em;
  hyphens: auto;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 6vw, 5.15rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.site-header {
  position: relative;
  z-index: 100;
  min-height: 88px;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-symbol {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
}

.brand-logo {
  position: absolute;
  top: 0;
  left: 50%;
  width: 84px;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
}

.brand-logo-lift {
  opacity: 0;
  filter: brightness(0) invert(1);
  clip-path: polygon(24% 29%, 35% 36%, 40% 45%, 50% 50%, 60% 45%, 65% 36%, 76% 29%, 74% 48%, 63% 57%, 61% 70%, 57% 83%, 43% 83%, 39% 70%, 37% 57%, 26% 48%);
  pointer-events: none;
  transition: opacity 220ms ease;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  position: relative;
  padding: 30px 0 27px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 560;
  text-decoration: none;
  transition: color 150ms ease;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--teal-dark);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gold);
}

.theme-toggle,
.menu-toggle {
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--ground);
  border-color: var(--muted);
}

.theme-icon {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: opacity 180ms ease, transform 180ms ease;
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(-45deg) scale(0.82);
}

html[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(45deg) scale(0.82);
}

html[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}

html[data-theme="dark"] .brand-logo-lift {
  opacity: 1;
}

html[data-theme="dark"] .brand-symbol {
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.24));
}

.menu-toggle {
  display: none;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 132px) 0;
  color: #dfe6dd;
  background-color: var(--dark-panel);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: hero-grid-drift 24s linear infinite;
}

.hero::after,
.page-hero::after {
  content: "DATENHIRSCH";
  position: absolute;
  right: -0.05em;
  bottom: -0.28em;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 14rem);
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.hero h1,
.page-hero h1 {
  color: #ffffff;
}

.hero-lead {
  max-width: 720px;
  margin-top: 28px;
  color: #ced7cc;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 7px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.button:hover {
  color: #ffffff;
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.hero-actions .button:first-child {
  color: #20251f;
  background: var(--gold);
  border-color: var(--gold);
}

.hero-actions .button:first-child:hover {
  color: #20251f;
  background: var(--gold-hover);
  border-color: var(--gold-hover);
}

.button-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.button-secondary:hover {
  color: var(--ink);
  background: var(--ground);
  border-color: var(--muted);
}

.hero .button-secondary {
  color: #ffffff;
  background: transparent;
  border-color: var(--moss);
}

.hero .button-secondary:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: #abc2ae;
}

.section {
  padding: clamp(72px, 9vw, 112px) 0;
}

.section-muted {
  background: var(--ground);
  border-block: 1px solid var(--line);
}

.section-dark {
  color: #d4ddd2;
  background: var(--dark-panel);
}

.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(32px, 8vw, 110px);
  align-items: start;
  margin-bottom: 48px;
}

.section-intro p {
  max-width: 700px;
  font-size: 1.12rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.project-grid-primary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-showcase {
  border-top: 1px solid var(--line);
}

.project-feature {
  --feature-accent: var(--moss);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 7vw, 84px);
  align-items: center;
  padding: 42px 0 56px;
  border-bottom: 1px solid var(--line);
}

.project-feature-motorakte {
  --feature-accent: var(--gold);
}

.project-feature-reverse .project-feature-media {
  order: 2;
}

.project-feature-media,
.project-inline-preview {
  margin: 0;
}

.project-feature-copy {
  padding-top: 20px;
  border-top: 3px solid var(--feature-accent);
}

.project-feature-copy h3 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.project-feature-copy > p {
  margin-top: 18px;
}

.project-feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-top: 28px;
}

.project-feature-links .text-link {
  margin: 0;
}

.project-screenshot-link {
  display: block;
  overflow: hidden;
  background: #0d1014;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-screenshot-link img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: opacity 160ms ease;
}

.project-screenshot-link:hover img {
  opacity: 0.86;
}

.project-feature-media figcaption,
.project-inline-preview figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.project-inline-preview {
  margin-block: 34px 42px;
}

.project-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.project-card-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.project-card h3 {
  margin-top: 30px;
  font-size: 1.65rem;
}

.project-card p {
  margin-top: 16px;
}

.project-meta {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.project-meta span {
  color: var(--moss);
}

.project-card .project-meta {
  margin-top: 20px;
}

.project-card .text-link {
  margin-top: auto;
  padding-top: 26px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--teal-dark);
  font-weight: 650;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  font-size: 1.1em;
}

.text-link:hover {
  color: var(--ink);
  text-decoration: underline;
}

.reason-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(42px, 9vw, 120px);
  align-items: start;
}

.reason-grid > div p {
  margin-top: 20px;
}

.reason-list,
.feature-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.reason-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.reason-list span {
  padding-top: 2px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.reason-list h3 {
  color: var(--heading);
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}

.reason-list p {
  margin-top: 7px;
  color: var(--text);
  line-height: 1.55;
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 42px 0;
}

.cta-band h2 {
  max-width: 760px;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(68px, 9vw, 108px) 0;
  color: #d4ddd2;
  background-color: var(--dark-panel);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: hero-grid-drift 24s linear infinite;
}

.hero .container,
.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 940px;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
}

.page-hero p {
  max-width: 760px;
  margin-top: 24px;
  font-size: 1.18rem;
}

.breadcrumb {
  margin-bottom: 28px;
  color: #c0c9bd;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: #dfe6dd;
}

.breadcrumb span {
  margin-inline: 8px;
  color: #8faa93;
}

.project-list {
  border-top: 1px solid var(--line);
}

.project-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 48px;
  align-items: start;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.project-list-item-visual {
  grid-template-columns: 260px minmax(0, 1fr) 170px;
  gap: 34px;
  align-items: center;
}

.project-list-preview {
  align-self: stretch;
}

.project-list-preview img {
  height: 100%;
  min-height: 170px;
}

.project-list-item h2 {
  margin-bottom: 14px;
  font-size: 1.65rem;
}

.project-list-item .project-meta {
  margin-top: 14px;
}

.project-list-item .text-link {
  justify-self: end;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: clamp(48px, 9vw, 112px);
  align-items: start;
}

.content-copy > * + * {
  margin-top: 24px;
}

.content-copy h2 {
  margin-top: 44px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.content-copy h3 {
  margin-top: 32px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 30px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.feature-list li {
  position: relative;
  padding: 16px 0 16px 24px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  top: 16px;
  left: 0;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
}

.side-fact {
  padding: 26px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.side-fact h2,
.side-fact h3 {
  font-size: 1.25rem;
}

.side-fact p,
.side-fact ul {
  margin-top: 14px;
}

.side-fact ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.side-fact .button {
  width: 100%;
  margin-top: 22px;
}

.notice {
  padding: 18px 20px 18px 52px;
  position: relative;
  color: var(--warning);
  background: var(--warning-bg);
  border: 1px solid #d9b877;
  border-radius: 8px;
}

.notice::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 9v4M12 17h.01M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3C/svg%3E");
}

html[data-theme="dark"] .notice {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: #5d4928;
}

html[data-theme="dark"] .notice strong {
  color: #f3cf91;
}

.notice strong {
  display: block;
  color: #6c3c08;
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.service-group {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-group ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.quote {
  position: relative;
  margin: 36px 0;
  padding: 26px 28px 24px;
  color: var(--heading);
  background: var(--teal-pale);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.3;
}

.quote::before {
  content: "\201C";
  display: block;
  margin-bottom: -0.34em;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 3.2rem;
  line-height: 1;
}

.idea-mark {
  color: var(--gold);
  font-weight: 650;
}

.proj-pq34 {
  color: var(--teal-dark);
  font-weight: 650;
}

.proj-motorakte {
  color: var(--gold);
  font-weight: 650;
}

.idea-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.idea-card {
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.idea-tag::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
}

.idea-card-motorakte .idea-tag::before {
  background: var(--gold);
}

.idea-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  padding: 3px 12px 3px 10px;
  border-radius: 999px;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 650;
}

.idea-card p {
  margin: 0;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(48px, 10vw, 120px);
  align-items: start;
}

.contact-details h2 {
  font-size: 1.55rem;
}

.contact-details p {
  margin-top: 16px;
}

.contact-details address {
  margin-top: 28px;
  font-style: normal;
}

.contact-form {
  padding: 32px;
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-form-disabled {
  opacity: 0.55;
}

.contact-form-disabled input,
.contact-form-disabled textarea,
.contact-form-disabled .button {
  cursor: not-allowed;
}

.form-disabled-note {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(192, 138, 45, 0.14);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-email {
  display: inline-block;
  margin-top: 4px;
  color: var(--teal-dark);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}

.contact-email:hover {
  color: var(--ink);
}

.form-feedback {
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-feedback a {
  font-weight: 600;
}

.form-feedback-ok {
  color: var(--teal-dark);
  background: var(--teal-pale);
  border-color: var(--moss);
}

.form-feedback-error {
  color: var(--warning);
  background: var(--warning-bg);
  border-color: #c67919;
}

.field-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field + .field,
.form-row + .field,
.field + .form-row {
  margin-top: 20px;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 7px;
}

.field textarea {
  min-height: 180px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--moss);
  outline: 3px solid rgba(107, 143, 113, 0.2);
}

/* Community & Feedback: feste helle Fläche (#d4ddd2), bewusst theme-unabhängig */
/* Community & Feedback: feste dunkelgrüne Fläche (#1f3d2f), bewusst theme-unabhängig */
.community-feedback {
  background: #1f3d2f;
  border-top: 1px solid #2f4a39;
  color: #d4ddd2;
}

.community-feedback h2,
.community-feedback h3 {
  color: #ffffff;
}

.community-panel {
  display: block;
}

.community-heading {
  max-width: 760px;
}

.community-heading p {
  margin-top: 16px;
  font-size: 1.08rem;
  color: #c6d0c4;
}

.community-thanks {
  margin-top: clamp(40px, 6vw, 64px);
}

.community-thanks h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.community-thanks > p {
  max-width: 760px;
  margin-top: 14px;
  color: #b9c5b7;
}

/* Danksagungen im Startseiten-Feature-Format: Foto + Text mit Akzentbalken, abwechselnd */
.thanks-features {
  margin-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.thanks-feature {
  --feature-accent: #8faa93;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(32px, 5vw, 48px) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.thanks-feature-motorakte {
  --feature-accent: #d4a14b;
}

.thanks-feature-reverse .thanks-feature-media {
  order: 2;
}

.thanks-feature-media {
  margin: 0;
}

.thanks-feature-photo {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  max-width: 300px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  background: #162c21;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.thanks-feature-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thanks-feature-photo-placeholder {
  color: var(--gold);
  background-color: #142a20;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 650;
}

.thanks-feature-copy {
  padding-top: 20px;
  border-top: 3px solid var(--feature-accent);
}

.thanks-feature-context {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e3e8df;
  font-size: 0.8rem;
  font-weight: 600;
}

.thanks-feature-copy h3 {
  margin-top: 14px;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
}

.thanks-feature-copy p {
  margin-top: 16px;
  line-height: 1.6;
  color: #d4ddd2;
}

.thanks-feature-copy .thanks-personal {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebcab;
  font-size: 0.96rem;
}

.thanks-feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.thanks-feature-links a {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.thanks-feature-links a:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

.community-note {
  max-width: 820px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebcab;
  font-size: 0.86rem;
  line-height: 1.55;
}

.community-note strong {
  color: #ffffff;
  font-weight: 650;
}

.form-help {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form .button {
  margin-top: 22px;
}

.form-status {
  min-height: 1.5em;
  margin-top: 12px;
  color: var(--teal-dark);
  font-size: 0.92rem;
}

.legal-placeholder {
  margin-bottom: 38px;
}

.legal-copy h2 {
  margin-top: 36px;
  font-size: 1.55rem;
}

.legal-copy h3 {
  margin-top: 26px;
  font-size: 1.16rem;
}

.legal-copy p,
.legal-copy ul {
  margin-top: 12px;
}

.site-footer {
  color: #c6ccc4;
  background: var(--dark-panel-deep);
  border-top: 1px solid #2f4a39;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.7fr;
  gap: 48px;
  padding: 56px 0 44px;
}

.footer-brand {
  max-width: 430px;
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.footer-brand p {
  margin-top: 12px;
}

.footer-column h2 {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0;
}

.footer-column ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.footer-column li + li {
  margin-top: 8px;
}

.site-footer a {
  color: #dbe2d8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 28px;
  border-top: 1px solid #2f4a39;
  font-size: 0.88rem;
}

.footer-bottom p:last-child {
  text-align: right;
}

/* Ruhige Bewegungen: Inhalte bauen sich auf, ohne die Bedienung zu überlagern. */
@keyframes hero-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, 48px 48px; }
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes line-enter {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes theme-circle-reveal {
  from {
    clip-path: circle(0 at var(--theme-x) var(--theme-y));
  }
  to {
    clip-path: circle(var(--theme-radius) at var(--theme-x) var(--theme-y));
  }
}

@keyframes theme-wave-expand {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.theme-fallback body::after {
  content: "";
  position: fixed;
  top: var(--theme-y);
  left: var(--theme-x);
  z-index: 10000;
  width: calc(var(--theme-radius) + var(--theme-radius));
  height: calc(var(--theme-radius) + var(--theme-radius));
  border: 1px solid rgba(192, 138, 45, 0.42);
  border-radius: 50%;
  background: rgba(107, 143, 113, 0.12);
  pointer-events: none;
  animation: theme-wave-expand 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 720ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation: none;
}

::view-transition-new(root) {
  animation-name: theme-circle-reveal;
}

.theme-fallback body,
.theme-fallback .site-header,
.theme-fallback .section-muted,
.theme-fallback .project-card,
.theme-fallback .side-fact,
.theme-fallback .contact-form,
.theme-fallback .field input,
.theme-fallback .field textarea {
  transition:
    color 460ms ease,
    background-color 460ms ease,
    border-color 460ms ease,
    box-shadow 460ms ease;
}

.motion-ready .hero h1,
.motion-ready .page-hero h1 {
  animation: content-enter 650ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-ready .hero-lead,
.motion-ready .page-hero p {
  animation: content-enter 650ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-ready .hero-actions,
.motion-ready .breadcrumb {
  animation: content-enter 650ms 180ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-ready .reveal-target {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms var(--reveal-delay, 0ms) ease,
    transform 600ms var(--reveal-delay, 0ms) cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-ready .site-nav a[aria-current="page"]::after {
  transform-origin: left;
  animation: line-enter 420ms 120ms ease both;
}

@media (max-width: 1020px) {
  .header-inner {
    gap: 18px;
  }

  .site-nav a {
    padding-inline: 7px;
    font-size: 0.88rem;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-list-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .project-list-item-visual {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .project-list-item .text-link {
    grid-column: auto;
    justify-self: start;
  }

  .project-list-item-visual .text-link {
    grid-column: 2;
  }
}

@media (max-width: 880px) {
  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: 88px;
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px 14px;
    font-size: 1rem;
  }

  .site-nav a[aria-current="page"]::after {
    top: 12px;
    right: auto;
    bottom: 12px;
    left: 0;
    width: 2px;
    height: auto;
  }

  .project-feature,
  .thanks-feature,
  .section-intro,
  .community-panel,
  .reason-grid,
  .content-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .project-feature-reverse .project-feature-media,
  .thanks-feature-reverse .thanks-feature-media {
    order: 0;
  }

  .section-intro {
    gap: 22px;
  }

  .content-grid {
    gap: 44px;
  }

  .side-fact {
    max-width: 560px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 650px) {
  body {
    font-size: 16px;
  }

  .container,
  .narrow {
    width: min(calc(100% - 32px), var(--container));
  }

  .header-actions {
    gap: 8px;
  }

  .brand-symbol {
    width: 48px;
    height: 49px;
  }

  .brand-logo {
    width: 72px;
  }

  .brand-wordmark {
    font-size: 1.14rem;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 3.55rem);
  }

  .hero,
  .page-hero {
    padding-block: 64px;
  }

  .hero-lead {
    margin-top: 22px;
  }

  .hero-actions,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-grid,
  .service-groups,
  .feature-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 330px;
  }

  .community-thanks {
    margin-top: 34px;
  }

  .thanks-feature-photo {
    max-width: 260px;
  }

  .cta-band {
    grid-template-columns: 1fr;
  }

  .project-list-item {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .project-list-item-visual {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-list-item-visual .text-link {
    grid-column: auto;
  }

  .project-list-preview img {
    min-height: 0;
  }

  .project-list-item .text-link {
    grid-column: auto;
  }

  .feature-list {
    gap: 0;
  }

  .contact-form {
    padding: 22px 18px;
  }

  .form-row .field + .field {
    margin-top: 20px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-bottom p:last-child {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-ready .reveal-target {
    opacity: 1;
    transform: none;
  }

  .motion-ready .hero-antler-traces path {
    stroke-dashoffset: 0;
    animation: none;
  }

  .motion-ready .hero-antler-nodes circle {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Hero: Platinen-Geweih als Signatur-Motiv (zeichnet sich beim Laden ein) */
.hero-antler {
  position: absolute;
  z-index: 0;
  top: clamp(-48px, -3vw, 8px);
  right: clamp(-110px, -1vw, 16px);
  width: clamp(240px, 36vw, 480px);
  height: auto;
  color: #7fa588;
  opacity: 0.5;
  pointer-events: none;
}

.hero-antler-traces path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-antler-nodes circle {
  fill: currentColor;
}

.hero-antler-tip {
  fill: #d4a14b;
}

.motion-ready .hero-antler-traces path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: antler-draw 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.motion-ready .hero-antler-nodes circle {
  opacity: 0;
  transform: scale(0.35);
  transform-box: fill-box;
  transform-origin: center;
  animation: antler-node 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.05s forwards;
}

@keyframes antler-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes antler-node {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 880px) {
  .hero-antler {
    top: -6%;
    right: -24%;
    width: 64vw;
    opacity: 0.26;
  }
}
