:root {
  font-family: system-ui, sans-serif;
  color: #19232d;
  background: #fff;
  line-height: 1.6;
  --dark: #17222c;
  --ink: #19232d;
  --muted: #4c5a66;
  --accent: #b63713;
  --bright: #ff6b3b;
  --soft: #f2f5f7;
  --border: #d7dfe5;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #297ac2; outline-offset: 4px; }
p, ul, dl, figure { margin: 0; }
p + p { margin-top: 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.13; }
h1 { font-size: clamp(2.45rem, 5.6vw, 4.7rem); letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); letter-spacing: -.045em; margin-bottom: .6em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
h3 + p, h4 + p, h4 + ul { margin-top: .65rem; }
.wrap { width: min(100% - 2.5rem, 74rem); margin-inline: auto; }
.skip-link { position: absolute; top: .6rem; left: .6rem; z-index: 1; background: white; padding: .65rem 1rem; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }
.site-header { background: #101921; color: white; }
.header-inner, .site-footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.header-inner { min-height: 5.25rem; padding-block: .8rem; }
.brand { flex: 0 0 auto; }
.brand img { width: 6rem; }
nav ul, .resource-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem clamp(.75rem, 2.5vw, 2rem); }
nav a { color: #f7f8fa; font-weight: 650; text-decoration: none; display: inline-block; padding-block: .35rem; }
nav a:hover { text-decoration: underline; }
.language { padding-inline: .7rem; border: 1px solid #60717e; border-radius: .35rem; }
.hero { background: var(--dark); color: white; border-bottom: 4px solid var(--bright); }
.hero-inner { display: grid; grid-template-columns: 1.12fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(3rem, 8vw, 7rem); }
.eyebrow { color: #ff997b; text-transform: uppercase; letter-spacing: .14em; font-size: .88rem; font-weight: 750; margin-bottom: .95rem; }
.intro { font-size: clamp(1.12rem, 2vw, 1.34rem); line-height: 1.5; }
.hero .intro { color: #d7e0e7; max-width: 36rem; margin-top: 1.35rem; }
.hero-image { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .65rem; border: 1px solid #50606c; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.7rem; }
.button { display: inline-block; width: fit-content; padding: .72rem 1.05rem; border: 1px solid transparent; border-radius: .4rem; background: var(--accent); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #922b10; }
.hero .button { background: var(--bright); color: #181b20; }
.hero .button:hover { background: #ff9879; }
.hero .secondary { background: transparent; border-color: #6e7f8c; color: white; }
.hero .secondary:hover { background: #32434f; }
.section { padding-block: clamp(3.25rem, 7vw, 6rem); }
.services, .content-types, .features, .media-grid { display: grid; gap: 1rem; }
.services { grid-template-columns: repeat(4, 1fr); }
.services article { border-top: 2px solid var(--accent); padding: 1.1rem .85rem 0 0; }
.services p, .content-types ul, .features p, .features ul, .modules p { color: var(--muted); }
.cms, .technology { background: var(--soft); }
.split, .cms-overview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.cms-overview { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.counts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.counts > div { display: flex; flex-direction: column-reverse; justify-content: start; background: var(--dark); color: #fff; padding: 1rem; border-radius: .5rem; }
.counts dt { font-weight: 650; }
.counts dd { margin: 0; color: #ff997b; font-size: clamp(2.7rem, 5vw, 4.25rem); font-weight: 750; line-height: 1.15; }
.subheading { margin-block: 2rem .85rem; font-size: 1.55rem; }
.content-types, .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.content-types article { background: #fff; border: 1px solid var(--border); border-radius: .5rem; padding: 1.2rem; }
.content-types ul, .features ul { padding-inline-start: 1.15rem; }
.features { margin-top: 1.5rem; }
.features article { padding: .8rem 1rem .8rem 0; border-top: 1px solid #bfcbd4; }
.modules { border-top: 1px solid var(--border); }
details { border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 700; padding: .85rem .35rem; }
summary::marker { color: var(--accent); }
details p { padding: 0 .35rem .95rem 1.4rem; }
.resource-links { margin-top: 1.2rem; font-weight: 650; }
.media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media-grid img { border-radius: .5rem; }
.media-grid figcaption { margin-top: .65rem; }
#kontakt > div a { display: inline-block; margin-top: .8rem; }
form { display: grid; gap: .55rem; }
label { font-weight: 650; }
input, textarea { width: 100%; border: 1px solid #8a9aa7; border-radius: .35rem; color: var(--ink); background: white; font: inherit; padding: .65rem .75rem; margin-bottom: .4rem; }
textarea { resize: vertical; }
.form-status:empty { display: none; }
.form-status { font-weight: 650; }
.site-footer { background: #101921; color: #e4ebf0; padding-block: 1.25rem; }
.site-footer a { color: inherit; }
@media (max-width: 54rem) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 1.5rem; }
}
@media (max-width: 43rem) {
  .header-inner { align-items: start; flex-direction: column; }
  nav a { font-size: .94rem; }
  .hero-inner, .split, .cms-overview { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 16 / 8; }
  .content-types, .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 29rem) {
  .wrap { width: calc(100% - 1.75rem); }
  .services, .content-types, .features, .media-grid { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-wrap: wrap; }
}

.projects { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.projects article, .project-invitation { border: 1px solid var(--border); border-radius: .55rem; }
.project-image { display: block; width: min(100% - 2rem, 19rem); margin: 1rem auto 0; }
.projects img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: contain;
  border-radius: .35rem;
  border: 1px solid var(--border);
}
.project-copy { padding: clamp(1rem, 3vw, 1.6rem); }
.project-copy a { display: inline-block; margin-top: .9rem; font-weight: 650; }
.privacy-check { display: flex; align-items: flex-start; gap: .65rem; }
.privacy-check input {
  width: 1.15rem;
  height: 1.15rem;
  margin: .23rem 0 0;
  flex: none;
  accent-color: var(--accent);
}
.privacy-help { margin: 0 0 .55rem; }
.policy { max-width: 48rem; }
.policy h2 { font-size: 1.4rem; letter-spacing: -.025em; margin-top: 1.6rem; }
.policy h1 { margin-block: 1rem; overflow-wrap: anywhere; }
.project-invitation {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: .85rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  background: var(--soft);
}
.project-invitation p { margin: 0; }
@media (min-width: 37rem) and (max-width: 56rem) {
  .project-invitation { grid-column: 1 / -1; }
}

.dashboard-gallery:has(figure) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}
.dashboard-gallery figure { max-width: 18rem; }
.dashboard-gallery a { display: block; }
.dashboard-gallery img { width: 100%; border: 1px solid var(--border); border-radius: .4rem; }
.dashboard-gallery figcaption { color: var(--muted); margin-top: .4rem; }
.gallery-dialog {
  width: min(70rem, 100% - 1.5rem);
  max-width: none;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: .6rem;
  color: var(--ink);
}
.gallery-dialog::backdrop { background: rgb(16 25 33 / .85); }
.gallery-dialog > img { width: 100%; max-height: 72vh; object-fit: contain; margin-block: .75rem; }
.gallery-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.gallery-toolbar[hidden] { display: none; }
.gallery-toolbar button {
  border: 1px solid #8a9aa7;
  border-radius: .35rem;
  padding: .45rem .6rem;
  background: var(--soft);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.gallery-toolbar button:hover { border-color: var(--accent); }

.cms-media { margin-top: 1.5rem; border-top: 1px solid var(--border); }
details > .dashboard-gallery { margin: 0 .35rem 1rem; }
.dashboard-gallery figcaption span { display: block; margin-top: .25rem; }
.gallery-description { margin-bottom: .75rem; }
.gallery-dialog > img { max-height: 65vh; }
