:root {
  --bg: #f5f3ee;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-strong: #ffffff;
  --surface-soft: #ece8df;
  --text: #1f2930;
  --muted: #63707a;
  --line: rgba(31, 41, 48, 0.1);
  --accent: #2f4956;
  --accent-soft: #dde6ea;
  --shadow: 0 18px 48px rgba(21, 31, 36, 0.08);
  --radius: 26px;
  --container: 1120px;
  /* Optional hero background image controls */
  --hero-bg-position: center 60%;
  --hero-bg-size: cover;
  --hero-bg-image-opacity: 0.52;
  --hero-bg-strength: 0.12;
  --hero-bg-saturation: 0.78;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Instrument Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(221, 230, 234, 0.9), transparent 30%),
    radial-gradient(circle at right 20%, rgba(232, 224, 210, 0.8), transparent 24%),
    linear-gradient(180deg, #faf8f3 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(245, 243, 238, 0.72);
  border-bottom: 1px solid rgba(31, 41, 48, 0.06);
}

.header-row,
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-row {
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 76px;
  height: auto;
}

.brand-text {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a,
.footer-links a,
.contact-list a {
  color: var(--muted);
  transition: color 180ms ease;
}

.site-nav a:hover,
.footer-links a:hover,
.contact-list a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.9rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  box-shadow: 0 10px 26px rgba(47, 73, 86, 0.22);
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(47, 73, 86, 0.24);
}

.button-secondary,
.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
  box-shadow: none;
}

.button-secondary:hover,
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.button-small {
  min-height: 44px;
  padding-inline: 1rem;
}

.button-full {
  width: 100%;
}

.hero {
  position: relative;
  padding: 4.5rem 0 3rem;
  overflow: hidden;
}

.hero-grid,
.benefit-grid,
.steps-grid,
.trust-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: start;
}

.hero-copy {
  padding: 3rem 0 1rem;
}

.hero--with-bg-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url("assets/berlin_cityscape.jpg");
  background-position: var(--hero-bg-position);
  background-size: var(--hero-bg-size);
  background-repeat: no-repeat;
  filter: saturate(var(--hero-bg-saturation));
  opacity: var(--hero-bg-image-opacity);
  pointer-events: none;
}

.hero--with-bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(250, 248, 243, 0.58) 0%, rgba(250, 248, 243, 0.26) 26%, rgba(250, 248, 243, 0.18) 58%, rgba(245, 243, 238, 0.86) 100%),
    linear-gradient(90deg, rgba(245, 243, 238, 0.44) 0%, rgba(245, 243, 238, 0.12) 30%, rgba(245, 243, 238, 0.36) 100%),
    linear-gradient(180deg, rgba(47, 73, 86, var(--hero-bg-strength)) 0%, rgba(47, 73, 86, 0.02) 100%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.eyebrow,
.card-kicker {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-text,
.inquiry-text,
.benefit-card p,
.step-card p,
.faq-list p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 34rem;
  margin-top: 1.4rem;
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-signals,
.trust-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 0;
}

.trust-tags span {
  padding: 0.72rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-signal {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 1rem 1.1rem;
  border-top: 1px solid rgba(47, 73, 86, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.12));
}

.hero-signal-label {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.contact-card,
.benefit-card,
.step-card,
.form-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-card {
  position: relative;
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221, 230, 234, 0.9) 0%, rgba(221, 230, 234, 0) 72%);
  pointer-events: none;
}

.contact-card h2 {
  max-width: 11ch;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.contact-copy {
  display: block;
}

.contact-copy > span {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: rgba(47, 73, 86, 0.08);
  color: var(--accent);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-list strong {
  font-size: 1.05rem;
  color: var(--text);
}

.contact-address {
  margin-top: 1.6rem;
  color: var(--muted);
}

.section {
  padding: 2.5rem 0;
}

.section-soft {
  margin: 1rem 0;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 1.8rem;
}

.section-heading-left {
  margin-bottom: 1.2rem;
}

.trust-strip {
  padding-top: 1rem;
}

.trust-grid {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 1rem 0;
  border-top: 1px solid rgba(31, 41, 48, 0.08);
  border-bottom: 1px solid rgba(31, 41, 48, 0.08);
}

.trust-grid p {
  color: var(--muted);
  font-size: 1.02rem;
}

.benefit-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.benefit-card,
.step-card {
  min-height: 100%;
  background: rgba(255, 255, 255, 0.7);
}

.benefit-card h3,
.step-card h3 {
  margin-bottom: 0.8rem;
}

.step-number {
  display: inline-block;
  margin-bottom: 1.2rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.inquiry-text {
  max-width: 38rem;
  margin: 1rem auto 0;
}

.inquiry-wrap {
  width: min(100%, 760px);
  margin: 0 auto;
}

.inquiry-heading {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.form-card {
  background: var(--surface-strong);
}

.form-card-focus {
  padding: 2rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(31, 41, 48, 0.12);
  border-radius: 18px;
  background: #fbfbf8;
  color: var(--text);
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(47, 73, 86, 0.45);
  background: #ffffff;
}

textarea {
  resize: vertical;
  min-height: 132px;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-note {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-list a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

details {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  padding: 0;
  overflow: hidden;
}

summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  padding: 1.15rem 3.75rem 1.15rem 1.25rem;
  transition: background 180ms ease;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before,
summary::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(31, 41, 48, 0.65);
  transform: translateY(-50%);
  transition: transform 240ms ease, opacity 240ms ease;
}

summary::after {
  transform: translateY(-50%) rotate(90deg);
}

details[open] summary {
  background: rgba(255, 255, 255, 0.3);
}

details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
  opacity: 0;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 320ms ease, opacity 240ms ease;
}

.faq-answer > * {
  overflow: hidden;
}

.faq-answer p {
  margin: 0;
  padding: 0 1.25rem 1.2rem;
}

details[open] .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.site-footer {
  padding: 2rem 0 3rem;
}

.legal-main {
  padding: 4rem 0;
}

.legal-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.legal-card h1 {
  max-width: none;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.legal-card h2 {
  margin: 2rem 0 0.8rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.75;
}

.legal-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.footer-row {
  padding-top: 1.6rem;
  border-top: 1px solid rgba(31, 41, 48, 0.08);
}

.footer-links {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

@media (max-width: 920px) {
  .site-nav {
    display: none;
  }

  .hero-grid,
  .hero-signals,
  .benefit-grid,
  .steps-grid,
  .trust-grid,
  .footer-row {
    grid-template-columns: 1fr;
  }

  .header-row {
    min-height: 72px;
    padding: 0.9rem 0;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy {
    padding-top: 1rem;
  }

  .footer-row {
    display: grid;
  }

  .footer-links {
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .site-header {
    background: rgba(245, 243, 238, 0.88);
  }

  .header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 64px;
    padding: 0.7rem 0;
  }

  .brand {
    min-width: 0;
    gap: 0.55rem;
    flex: 1 1 auto;
  }

  .brand-logo {
    width: 42px;
  }

  .brand-text {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
  }

  .button-small {
    width: auto;
    min-height: 40px;
    padding: 0.72rem 0.95rem;
    flex: 0 0 auto;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .hero {
    padding-top: 1.35rem;
    padding-bottom: 2.4rem;
  }

  .hero-copy {
    padding-top: 0.5rem;
  }

  .hero-text {
    margin-top: 1rem;
    max-width: 30rem;
  }

  .section {
    padding: 2.2rem 0;
  }

  .section-heading {
    margin-bottom: 1.35rem;
  }

  .contact-card,
  .benefit-card,
  .step-card,
  .form-card {
    padding: 1.35rem;
    border-radius: 22px;
  }

  .contact-list {
    gap: 0.85rem;
    margin-top: 1.25rem;
  }

  .contact-list a {
    gap: 0.8rem;
    padding-bottom: 0.85rem;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 12px;
  }

  .contact-list strong {
    font-size: 0.98rem;
  }

  .trust-strip {
    padding-top: 0.3rem;
  }

  .trust-grid {
    gap: 0.95rem;
    padding: 0.85rem 0;
  }

  .trust-tags {
    gap: 0.6rem;
    margin-top: 0.9rem;
  }

  .trust-tags span {
    padding: 0.62rem 0.9rem;
  }

  .inquiry-wrap {
    width: 100%;
  }

  .form-card-focus {
    padding: 1.4rem;
  }

  input,
  textarea {
    padding: 0.88rem 0.95rem;
    border-radius: 16px;
  }

  summary {
    padding: 1rem 3.3rem 1rem 1rem;
  }

  .faq-answer p {
    padding: 0 1rem 1rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.3rem);
    line-height: 0.95;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.6rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  :root {
    --hero-bg-position: center 68%;
    --hero-bg-image-opacity: 0.44;
    --hero-bg-strength: 0.1;
  }
}

.legal-card-wide {
  width: min(100%, 920px);
}

.legal-copy {
  color: var(--text);
}

.legal-copy h1 {
  max-width: none;
  margin: 0 0 1.25rem;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.legal-copy h2 {
  margin: 2.4rem 0 1rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.legal-copy h3 {
  margin: 1.5rem 0 0.7rem;
  font-size: 1.06rem;
  line-height: 1.35;
}

.legal-copy h4 {
  margin: 1rem 0 0.55rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: var(--text);
}

.legal-copy p,
.legal-copy ul,
.legal-copy ol {
  color: var(--muted);
  line-height: 1.78;
}

.legal-copy p {
  margin: 0.75rem 0;
}

.legal-copy ul,
.legal-copy ol {
  margin: 0.8rem 0 1rem 1.2rem;
  padding: 0;
}

.legal-copy li + li {
  margin-top: 0.45rem;
}

.legal-copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  word-break: break-word;
}

.legal-copy strong,
.legal-copy b {
  color: var(--text);
}

@media (max-width: 640px) {
  .legal-card-wide {
    width: 100%;
    padding: 1.35rem;
  }

  .legal-copy h2 {
    margin-top: 2rem;
  }
}
