:root {
  --ink: #0d0d0c;
  --paper: #f6f2ed;
  --yellow: #ffc21a;
  --soft-yellow: #ffd96a;
  --line: #d7d0c8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; font-size: 15px; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1080px, calc(100% - 72px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brush { font-family: "Marker Felt", "Chalkboard SE", "Comic Sans MS", cursive; font-weight: 500; letter-spacing: .02em; }
.kicker, .eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; }
.section-border { border-top: 1px solid var(--line); }

.site-header { width: min(1150px, calc(100% - 72px)); height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: block; }
.reference-crop { background-repeat: no-repeat; }
.logo-crop { width: 220px; height: 67px; background-image: url("assets/logo.png"); background-size: 100% auto; background-position: left center; }
.languages { border: 1px solid #c9c2bb; border-radius: 30px; padding: 8px 12px; display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.languages span { color: #8d877f; }
.language-button { appearance: none; margin: 0; padding: 4px 3px; border: 0; border-radius: 8px; color: var(--ink); background: transparent; font: inherit; line-height: 1; cursor: pointer; }
.language-button:hover { background: #ebe5de; }
.language-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.language-button[aria-pressed="true"] { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.hero { min-height: 575px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 45px; padding-block: 22px 50px; }
.hero-copy { padding-left: 0; }
.hero .eyebrow { margin: 0 0 16px; }
.hero h1 { margin: 0; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: clamp(64px, 7.1vw, 88px); line-height: .92; letter-spacing: .01em; font-weight: 900; }
.hero h1 em { color: var(--yellow); font-family: "Marker Felt", "Chalkboard SE", cursive; font-style: normal; font-size: .89em; letter-spacing: -.04em; }
.subhead { margin: 18px 0; font-size: 20px; line-height: 1.25; transform: rotate(-1deg); }
.intro { font-size: 16px; line-height: 1.55; }
.hero-actions { display: flex; gap: 16px; margin-top: 22px; }
.button { min-height: 47px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 24px; border-radius: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.button.dark { color: white; background: var(--ink); }
.button.light { border: 1px solid #8d8882; background: transparent; }
.reassurance { margin: 18px 0 0 65px; font-size: 17px; transform: rotate(-1deg); }
.curve-arrow { position: absolute; margin-left: -67px; margin-top: -15px; font-family: Arial; font-size: 42px; font-weight: 400; transform: rotate(27deg); }

.hero-art { position: relative; width: 100%; aspect-ratio: 436 / 464; overflow: visible; }
.hero-crop { position: absolute; inset: 0; background-image: url("assets/hero-illustration.png"); background-size: contain; background-position: center; }
.hero-language-tag { position: absolute; z-index: 1; right: 0; bottom: 1%; width: 53%; min-height: 9.5%; padding: 8px 10px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--ink); border-radius: 17px; background: var(--yellow); font-size: clamp(12px, 1.45vw, 19px); line-height: 1; text-align: center; white-space: nowrap; transform: rotate(2deg); }

html[lang="de"] .hero h1 { font-size: clamp(58px, 6.5vw, 80px); }
html[lang="de"] .hero h1 em { font-size: .72em; }

.services { padding: 32px 0 30px; }
.services-grid { display: grid; grid-template-columns: 230px 1fr; gap: 35px; }
.services-grid, .service-cards, .section-title { min-width: 0; }
.section-title h2, .about-quote h2 { margin: 34px 0 8px; font-size: 48px; line-height: 1.05; transform: rotate(-2deg); }
.yellow-stroke { display: block; width: 76px; height: 5px; background: var(--yellow); border-radius: 50%; transform: rotate(-7deg); }
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { min-height: 284px; padding: 20px 25px 16px; display: flex; flex-direction: column; border-radius: 10px; background: linear-gradient(135deg, #ffdc7f, #ffd260); }
.line-icon { display: block; width: 48px; height: 42px; background-repeat: no-repeat; background-size: 100% 100%; background-position: center; }
.icon-book { background-image: url("assets/icon-bookkeeping.png"); }
.icon-chart { background-image: url("assets/icon-reporting.png"); }
.icon-document { background-image: url("assets/icon-vat.png"); }
.service-card small { margin: 3px 0 5px; font-size: 11px; }
.service-card h3 { margin: 0; font-size: 20px; line-height: 1.05; }
.service-card p { font-size: 13px; line-height: 1.35; }

.about { padding: 28px 0; }
.about-grid { display: grid; grid-template-columns: 190px 420px 1fr; gap: 32px; align-items: stretch; }
.about-quote h2 { margin-top: 16px; font-size: 33px; }
.portrait-crop { min-height: 280px; border-radius: 10px; background-image: url("assets/gudie-photo.jpg"); background-size: cover; background-position: center center; }
.about-copy h3 { margin: 8px 0 10px; font-size: 20px; }
.about-copy p { font-size: 13px; line-height: 1.45; }
.pills { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.pills span { padding: 4px 10px; border: 1px solid #d1cbc4; border-radius: 12px; font-size: 10px; background: #faf7f3; }

.process { padding: 20px 0 22px; }
.process-label { margin: 0 0 8px; }
.process-grid { margin-left: 140px; display: grid; grid-template-columns: repeat(4, 1fr); }
.process-grid article { min-height: 70px; padding: 2px 18px; display: flex; gap: 12px; border-left: 1px solid var(--line); }
.process-grid article:first-child { border-left: 0; }
.process-icon { position: relative; width: 44px; height: 44px; flex: 0 0 44px; color: var(--ink); }
.icon-talk::before { content: ""; position: absolute; left: 3px; top: 4px; width: 31px; height: 25px; border: 2px solid currentColor; border-radius: 50%; }
.icon-talk::after { content: ""; position: absolute; left: 7px; top: 27px; width: 10px; height: 8px; border-left: 2px solid currentColor; transform: rotate(31deg); }
.icon-clipboard { left: 2px; width: 31px; height: 38px; margin-right: 11px; border: 2px solid currentColor; border-radius: 2px; background: repeating-linear-gradient(to bottom, transparent 0 7px, currentColor 7px 9px, transparent 9px 12px); background-clip: content-box; padding: 8px 5px 3px; }
.icon-clipboard::before { content: ""; position: absolute; left: 8px; top: -5px; width: 11px; height: 7px; border: 2px solid currentColor; border-radius: 4px 4px 0 0; background: var(--paper); }
.icon-search::before { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border: 2px solid currentColor; border-radius: 50%; }
.icon-search::after { content: ""; position: absolute; left: 29px; top: 29px; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.icon-heart { top: -4px; font-family: Arial, Helvetica, sans-serif; font-size: 49px; font-weight: 300; line-height: 1; }
.process-grid h3 { margin: 4px 0 9px; font-size: 12px; font-weight: 600; }
.process-grid p { margin: 0; font-size: 10px; line-height: 1.45; }

.contact { width: min(1188px, calc(100% - 56px)); padding-block: 8px 18px; }
.contact-panel { min-height: 160px; padding: 24px 36px; display: grid; grid-template-columns: 180px 1.1fr 1fr .9fr; align-items: center; gap: 24px; color: white; background: var(--ink); border-radius: 12px; }
.contact-panel > * + * { border-left: 1px solid #7a7a78; padding-left: 34px; }
.contact-note { color: var(--yellow); font-size: 15px; line-height: 1.5; transform: rotate(-2deg); }
.contact-note-copy { display: inline; }
.contact-note > span:last-child { display: block; text-align: right; font-family: Arial; font-size: 38px; }
.contact-panel h2 { margin: 0; font-size: 34px; line-height: 1.05; }
.contact-panel h2 em { display: inline-block; padding: 2px 8px; border: 2px solid var(--yellow); border-radius: 50%; font-style: normal; }
.contact-message { font-size: 15px; line-height: 1.4; transform: rotate(-1deg); }
.button.yellow { min-height: 39px; margin-top: 12px; padding: 0 15px; color: var(--ink); background: var(--yellow); font-family: Arial, sans-serif; font-size: 11px; transform: rotate(1deg); }
.contact-brand strong { display: block; font-family: Impact, sans-serif; font-size: 42px; letter-spacing: .05em; }
.contact-brand span { font-size: 13px; font-weight: 700; line-height: 1.45; }

footer { width: min(1148px, calc(100% - 72px)); min-height: 54px; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: start; gap: 20px; padding-top: 2px; font-size: 10px; font-weight: 600; }
footer span:last-child { text-align: right; }
.footer-link { appearance: none; margin: 0; padding: 0; border: 0; color: inherit; background: transparent; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.footer-link:hover { text-decoration-thickness: 2px; }
.footer-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

.impressum-dialog { width: min(620px, calc(100% - 32px)); max-height: min(760px, calc(100vh - 32px)); padding: 0; border: 0; border-radius: 14px; color: var(--ink); background: var(--paper); box-shadow: 0 22px 70px rgb(0 0 0 / 28%); }
.impressum-dialog::backdrop { background: rgb(13 13 12 / 62%); backdrop-filter: blur(3px); }
.impressum-card { position: relative; padding: 36px 42px 40px; }
.impressum-card h2 { margin: 6px 0 24px; font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size: 44px; letter-spacing: .02em; }
.impressum-card .kicker { margin: 0; }
.impressum-content { padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.55; }
.impressum-content p { margin: 0 0 18px; }
.impressum-content a { text-decoration: underline; text-underline-offset: 2px; }
.dialog-close { position: absolute; top: 18px; right: 20px; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #a9a29a; border-radius: 50%; color: var(--ink); background: transparent; font: 300 28px/1 Arial, sans-serif; cursor: pointer; }
.dialog-close:hover { background: #e9e3dc; }
.dialog-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 36px, 720px); }
  .site-header { height: 88px; grid-template-columns: 1fr auto; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-copy { padding-left: 0; }
  .hero-art { width: min(100%, 520px); height: auto; justify-self: center; }
  .services-grid { grid-template-columns: 1fr; }
  .section-title br { display: none; }
  .section-title h2 { margin-top: 14px; }
  .about-grid { grid-template-columns: 1fr 1.5fr; }
  .about-copy { grid-column: 1 / -1; }
  .process-grid { margin-left: 0; grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .contact-panel { grid-template-columns: 1fr 1fr; }
  .contact-panel > * + * { border-left: 0; padding-left: 0; }
}

@media (max-width: 620px) {
  body { font-size: 14px; }
  .wrap { width: calc(100% - 28px); }
  .logo-crop { width: 190px; height: 60px; background-size: 100% auto; background-position: left center; }
  .languages { padding: 10px 12px; font-size: 10px; }
  .hero { min-height: 0; gap: 20px; padding-top: 26px; }
  .hero h1 { font-size: clamp(46px, 13vw, 58px); }
  html[lang="de"] .hero h1 { font-size: clamp(42px, 11.5vw, 52px); }
  .subhead { font-size: 16px; }
  .hero-actions { flex-wrap: wrap; }
  .reassurance { margin-left: 58px; }
  .hero-art { width: 100%; height: auto; }
  .service-cards { grid-template-columns: 1fr; }
  .section-title h2 br, .about-quote h2 br { display: block; }
  .service-card { min-height: 240px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-crop { min-height: 310px; background-size: cover; background-position: center center; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { border-left: 0; border-top: 1px solid var(--line); padding-block: 14px; }
  .process-grid article:first-child { border-top: 0; }
  .contact-panel { grid-template-columns: 1fr; padding: 28px; }
  .contact-panel > * + * { border-top: 1px solid #666; padding-top: 22px; }
  footer { grid-template-columns: 1fr; gap: 10px; padding-bottom: 20px; }
  footer span:last-child { text-align: left; }
  .impressum-card { padding: 30px 24px 26px; }
  .impressum-card h2 { font-size: 38px; }
}

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