/* Click, Clack, Bumm – Gestaltung aus dem WordPress-Theme. */

@font-face {
  font-family: Jost;
  src: url('../assets/fonts/jost.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f4ed;
  --ink: #202722;
  --green: #234a3a;
  --muted: #526259;
  --yellow: #f5d558;
  --line: #d5d9cd;
  --white: #fffefa;
  --font: Jost, Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ==========================================================================
   Grundlagen
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 7rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

a {
  color: inherit;
  text-underline-offset: .22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

input,
textarea {
  caret-color: var(--green);
}

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

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

svg {
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  vertical-align: middle;
}

/* Typografie */

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

h1,
h2,
h3 {
  text-wrap: balance;
  font-weight: 500;
}

h1 {
  font-size: clamp(3.2rem, 5.7vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -.035em;
}

h2 {
  font-size: clamp(2.15rem, 3.5vw, 3.8rem);
  line-height: 1.13;
  letter-spacing: -.03em;
}

h3 {
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

p {
  max-width: 70ch;
}

p + p {
  margin-top: 1rem;
}

/* Layout-Helfer */

.wrap {
  width: min(1280px, calc(100% - 112px));
  margin-inline: auto;
}

.section-space {
  padding-block: 100px;
}

/* Buttons & Links */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 1.3rem;
  background: var(--yellow);
  color: var(--ink);
  padding: 17px 25px;
  border: 0;
  border-radius: 6px;
  line-height: 1.2;
  font-weight: 600;
  text-decoration: none;
  min-height: 56px;
  transition: background .2s;
}

.button {
  white-space: nowrap;
}

.button:hover {
  background: #edc63a;
  text-decoration: none;
}

.button:disabled {
  opacity: .65;
  cursor: wait;
}

.button-small {
  padding: 13px 19px;
  min-height: 48px;
  font-size: 17px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  font-weight: 500;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  background: var(--yellow);
  padding: 12px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  line-height: 1.3;
  font-size: 18px;
  font-weight: 500;
}

.brand img {
  width: 47px;
  height: 70px;
  object-fit: contain;
}

.brand span span {
  font-weight: 400;
  color: var(--muted);
  font-size: 16px;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

#site-nav > a:not(.button) {
  text-decoration: none;
  font-size: 18px;
}

#site-nav > a:hover {
  color: var(--green);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 12px;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 70px;
  padding-block: 65px 75px;
  align-items: center;
}

.hero h1 > span {
  display: block;
  font-size: .57em;
  font-weight: 400;
  letter-spacing: -.02em;
  line-height: 1.25;
  margin-top: 22px;
  color: var(--green);
}

.hero-intro {
  font-size: 21px;
  line-height: 1.55;
  margin-block: 26px 27px;
  max-width: 43ch;
}

.hero-note {
  font-size: 16px;
  color: var(--muted);
  margin-top: 22px;
  line-height: 1.55;
}

.hero-portrait {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.portrait-frame {
  position: relative;
  isolation: isolate;
  background: #e5e9dc;
  border-radius: 120px 6px 6px 6px;
  overflow: hidden;
  height: 510px;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.hero-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 15px;
  line-height: 1.4;
  padding-top: 18px;
  color: var(--muted);
}

.hero-portrait figcaption span:first-child {
  font-weight: 600;
  color: var(--ink);
}

/* ==========================================================================
   „Kommt dir das bekannt vor?“
   ========================================================================== */

.recognition {
  background: var(--green);
  color: var(--paper);
}

.recognition-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.situations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.situations p {
  font-size: 18px;
  max-width: 52ch;
  color: #dce5d9;
}

.situations p + p {
  margin: 0;
}

.situations strong {
  display: block;
  font-weight: 500;
  color: var(--white);
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 10px;
}

/* ==========================================================================
   Angebote
   ========================================================================== */

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 48px;
}

.section-heading > p {
  font-size: 18px;
  color: var(--muted);
  padding-bottom: 4px;
}

.offer-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr;
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-block: 34px;
}

.offer-row:last-child {
  border-bottom: 1px solid var(--line);
}

.offer-row p {
  font-size: 18px;
  color: var(--muted);
}

.offer-row > a {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 205px;
  font-size: 17px;
  line-height: 1.45;
}

/* ==========================================================================
   Bildstudie (Ausschnitt-Regler)
   ========================================================================== */

.photo-study {
  background: #e7ebe1;
}

.study-grid {
  display: grid;
  grid-template-columns: .75fr 1.4fr;
  align-items: center;
  gap: 70px;
}

.study-copy p {
  margin-top: 24px;
  max-width: 38ch;
  color: #44574a;
}

.study-copy .text-link {
  margin-top: 25px;
  font-size: 17px;
}

.crop-window {
  aspect-ratio: 1.35;
  overflow: hidden;
  border-radius: 6px;
  background: var(--green);
}

.crop-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
  transform: scale(var(--crop-zoom, 1));
  transform-origin: 70% 48%;
  transition: transform .25s var(--ease);
}

.crop-control {
  padding-top: 20px;
}

.crop-control label {
  display: block;
  font-size: 17px;
  font-weight: 500;
}

.crop-control input {
  width: 100%;
  accent-color: var(--green);
  margin: 14px 0 4px;
  cursor: ew-resize;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #44574a;
}

.crop-study figcaption {
  font-size: 14px;
  color: #44574a;
  margin-top: 15px;
}

/* ==========================================================================
   Über Tim
   ========================================================================== */

.meet-tim {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 95px;
}

.meet-tim figure img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
}

.meet-tim figcaption {
  font-size: 15px;
  color: var(--muted);
  padding-top: 15px;
}

.lead {
  font-size: 24px;
  line-height: 1.5;
}

.meet-tim .lead {
  margin-top: 25px;
}

.meet-tim p:not(.lead) {
  font-size: 19px;
  color: var(--muted);
}

.meet-tim .text-link {
  margin-top: 26px;
}

/* ==========================================================================
   Ablauf
   ========================================================================== */

.process {
  background: var(--yellow);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  list-style: none;
  counter-reset: step;
  margin: 52px 0 0;
  padding: 0;
}

.process-list li {
  counter-increment: step;
}

.process-list li::before {
  content: counter(step);
  display: block;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 17px;
}

.process-list p {
  font-size: 18px;
  margin-top: 16px;
  line-height: 1.55;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list {
  max-width: 900px;
}

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

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

.faq-list summary {
  position: relative;
  font-size: 22px;
  cursor: pointer;
  padding: 23px 40px 23px 0;
  list-style: none;
  font-weight: 500;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* Plus/Minus-Symbol */
.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  content: '';
  width: 16px;
  height: 2px;
  background: var(--green);
  right: 5px;
  top: 38px;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: none;
}

.faq-list details p {
  padding-bottom: 25px;
  padding-right: 35px;
  color: var(--muted);
  max-width: 65ch;
}

/* ==========================================================================
   Anfrage & Formular
   ========================================================================== */

.request-section {
  background: var(--green);
  color: var(--paper);
}

.request-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 85px;
}

.request-grid > div:first-child > p {
  color: #dce5d9;
  font-size: 21px;
  margin-top: 28px;
  max-width: 35ch;
}

.request-grid .text-link {
  margin-top: 28px;
}

.request-form {
  display: grid;
  gap: 22px;
}

.request-form label {
  display: block;
  font-size: 17px;
  font-weight: 500;
  margin-bottom: 7px;
}

.request-form label > span {
  font-size: 15px;
  font-weight: 400;
}

.form-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.request-form input:not([type=hidden]),
.request-form textarea {
  display: block;
  width: 100%;
  border: 1px solid #8da491;
  border-radius: 4px;
  padding: 12px 14px;
  background: #fffefa;
  color: var(--ink);
  line-height: 1.5;
  min-height: 50px;
}

.request-form textarea {
  resize: vertical;
}

.request-form textarea::placeholder {
  color: #657269;
  opacity: 1;
}

.request-form input:focus-visible,
.request-form textarea:focus-visible {
  outline-color: var(--yellow);
}

.request-form .button {
  justify-self: start;
}

.form-note {
  font-size: 14px;
  line-height: 1.55;
  color: #dce5d9;
}

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

.form-error {
  padding: 18px;
  background: #fae8dc;
  color: #692f15;
  border-radius: 4px;
  margin-bottom: 25px;
}

.form-message h2 {
  font-size: 2rem;
}

.form-message p {
  margin-block: 20px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding-block: 65px 26px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 40px;
}

.footer-title {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.4;
}

.footer-title > span {
  color: var(--muted);
  font-weight: 400;
}

.footer-top > div {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}

.footer-contact address {
  font-style: normal;
  margin-top: 10px;
}

.footer-top > div a {
  display: inline-block;
  margin-top: 20px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.footer-bottom nav {
  display: flex;
  gap: 25px;
}

/* ==========================================================================
   Unterseiten & Fließtext
   ========================================================================== */

.page-content {
  max-width: 1040px;
  min-height: 60vh;
}

.page-heading {
  max-width: 850px;
  margin-bottom: 55px;
}

.page-heading h1 {
  font-size: clamp(2.8rem, 5vw, 4.7rem);
}

.page-heading .lead {
  margin-top: 28px;
  color: var(--muted);
}

.prose {
  max-width: 850px;
}

.prose h2 {
  margin-top: 55px;
  margin-bottom: 20px;
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.prose h3 {
  margin-top: 32px;
  margin-bottom: 15px;
}

.prose p,
.prose li {
  max-width: 70ch;
}

.prose p {
  margin-bottom: 22px;
}

.prose ul {
  padding-left: 24px;
  margin-block: 22px;
}

.prose figure {
  margin-block: 35px;
}

.prose figure img {
  width: 100%;
  border-radius: 6px;
}

.prose figcaption {
  font-size: 15px;
  color: var(--muted);
  margin-top: 12px;
}

.prose .button {
  margin-block: 20px 10px;
}

.prose .request-form-container {
  background: var(--green);
  color: var(--paper);
  padding: 40px;
  border-radius: 6px;
  margin-top: 38px;
}

.prose .form-note {
  margin: 0;
}

.prose .form-message p {
  color: var(--paper);
}

.prose .request-form .button {
  margin: 0;
}

.prose .faq-list p {
  margin: 0;
}

.prose .about-portrait {
  width: 360px;
  max-width: 100%;
}

.prose [id] {
  scroll-margin-top: 40px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 761px) {
  .footer-title > span {
    white-space: nowrap;
  }
}

.request-section :focus-visible,
.prose .request-form-container :focus-visible {
  outline-color: var(--yellow);
}

@media (min-width: 761px) {
  .brand > span,
  #site-nav > a,
  .hero-portrait figcaption span:first-child,
  .footer-bottom > span {
    white-space: nowrap;
  }

  .footer-contact {
    width: 280px;
    flex: 0 0 280px;
    white-space: nowrap;
  }

  .footer-bottom nav {
    width: 280px;
    flex: 0 0 280px;
    justify-content: space-between;
    gap: 16px;
  }
}

/* Große Bildschirme */
@media (min-width: 1600px) {
  .hero {
    gap: 100px;
  }

  .portrait-frame {
    height: 560px;
  }
}

/* Tablet / schmaler Desktop */
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }

  .hero {
    gap: 40px;
  }

  .portrait-frame {
    height: 470px;
  }

  #site-nav {
    gap: 23px;
  }

  .brand > span {
    display: none;
  }

  .hero-portrait figcaption {
    display: block;
  }

  .hero-portrait figcaption > span {
    display: block;
  }

  .offer-row {
    grid-template-columns: 1fr 1.4fr;
    gap: 25px;
  }

  .offer-row > a {
    grid-column: 2;
    justify-self: start;
    max-width: none;
  }

  .recognition-grid {
    gap: 40px;
  }

  .study-grid {
    gap: 40px;
  }

  .meet-tim {
    gap: 55px;
  }

  .request-grid {
    gap: 45px;
  }

  .section-space {
    padding-block: 80px;
  }
}

/* Mobil */
@media (max-width: 760px) {
  body {
    font-size: 18px;
  }

  .wrap {
    width: calc(100% - 40px);
  }

  /* Header & Navigation */
  .header-inner {
    min-height: 92px;
    flex-wrap: wrap;
    gap: 0;
  }

  .brand img {
    width: 37px;
    height: 58px;
  }

  .brand > span {
    display: block;
    font-size: 15px;
    margin-left: -5px;
  }

  .brand span span {
    font-size: 14px;
  }

  .has-js .menu-toggle {
    display: flex;
  }

  .has-js #site-nav {
    display: none;
  }

  .has-js #site-nav.is-open {
    display: flex;
  }

  #site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 22px;
  }

  #site-nav > a {
    padding: 14px 10px;
  }

  #site-nav .button {
    margin-top: 12px;
  }

  /* Hero */
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-block: 42px 45px;
  }

  .hero h1 {
    font-size: clamp(3.3rem, 11vw, 4.6rem);
  }

  .hero h1 > span {
    font-size: .59em;
    margin-top: 18px;
  }

  .hero-intro {
    font-size: 19px;
    margin-block: 23px;
  }

  .hero-note {
    font-size: 15px;
  }

  .hero-portrait {
    max-width: 520px;
    width: 100%;
  }

  .portrait-frame {
    height: auto;
    aspect-ratio: 1.15;
    border-radius: 75px 6px 6px 6px;
  }

  .hero-portrait figcaption {
    display: flex;
    font-size: 13px;
    padding-top: 13px;
  }

  .hero-portrait figcaption span:last-child {
    max-width: 170px;
    text-align: right;
  }

  /* Sektionen */
  .section-space {
    padding-block: 60px;
  }

  .recognition-grid,
  .study-grid,
  .meet-tim,
  .request-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  h2 {
    font-size: 2.4rem;
  }

  .situations {
    gap: 27px;
  }

  .situations strong {
    font-size: 22px;
  }

  .section-heading {
    display: block;
    margin-bottom: 32px;
  }

  .section-heading > p {
    margin-top: 20px;
  }

  /* Angebote */
  .offer-row {
    display: block;
    padding-block: 27px;
  }

  .offer-row h3 {
    font-size: 25px;
  }

  .offer-row h3 br {
    display: none;
  }

  .offer-row p {
    margin-block: 14px 18px;
  }

  .offer-row > a {
    max-width: none;
    display: inline-flex;
    font-size: 16px;
  }

  /* Bildstudie & Über Tim */
  .study-copy p {
    max-width: 65ch;
    margin-top: 20px;
  }

  .crop-window {
    aspect-ratio: 1.2;
  }

  .meet-tim figure {
    max-width: 420px;
  }

  .meet-tim .lead,
  .lead {
    font-size: 22px;
  }

  /* Ablauf */
  .process-list {
    grid-template-columns: 1fr;
    gap: 33px;
    margin-top: 35px;
  }

  .process-list li {
    position: relative;
    padding-left: 42px;
  }

  .process-list li::before {
    position: absolute;
    left: 0;
    top: 4px;
    font-size: 17px;
  }

  .process-list h3 {
    font-size: 27px;
  }

  .process-list p {
    margin-top: 10px;
  }

  /* FAQ */
  .faq-list summary {
    font-size: 20px;
    padding-block: 20px;
  }

  .faq-list summary::before,
  .faq-list summary::after {
    top: 34px;
  }

  /* Anfrage */
  .request-grid > div:first-child > p {
    font-size: 19px;
    max-width: 65ch;
  }

  .form-two {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .request-form {
    gap: 22px;
  }

  /* Footer */
  .site-footer {
    padding-block: 45px 25px;
  }

  .footer-title > span {
    white-space: normal;
  }

  .footer-top {
    display: block;
  }

  .footer-top > div {
    margin-top: 28px;
  }

  .footer-title {
    font-size: 25px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    font-size: 13px;
  }

  .footer-bottom nav {
    flex-wrap: wrap;
  }

  /* Unterseiten */
  .page-heading {
    margin-bottom: 35px;
  }

  .page-heading h1 {
    font-size: 2.85rem;
  }

  .page-content {
    min-height: 50vh;
  }

  .prose .request-form-container {
    padding: 25px 20px;
    margin-left: -5px;
    margin-right: -5px;
  }

  .button {
    font-size: 17px;
    padding: 17px 21px;
  }

  .prose h2 {
    margin-top: 40px;
  }

  .prose .about-portrait {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================================
   Ergänzungen für den eigenständigen Formular-Endpunkt.
   ========================================================================== */

[hidden] {
  display: none !important;
}

.prose {
  overflow-wrap: anywhere;
}

.form-status:empty {
  display: none;
}

.request-form .form-error {
  margin: 0;
}

.form-status {
  font-size: 16px;
}

.prose .form-status {
  margin: 0;
}

.request-form-container .form-message .text-link {
  margin-top: 0;
}

html:not(.has-js) .request-form {
  display: none;
}

/* Lange Seitentitel, etwa „Datenschutzerklärung“, auf schmalen Displays. */
.page-heading {
  overflow-wrap: anywhere;
  hyphens: auto;
}
