/* ===================================================
   LEGAL OWLS — Stylesheet
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Work+Sans:wght@300;400;500&display=swap');

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --paper-warm: #f6f5f1;
  --mist: #c9cdc7;
  --mist-dark: #3a3d38;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, sans-serif;

  --gutter: clamp(1.5rem, 5vw, 4rem);
  --max-line: 34rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.7;
  margin: 0 0 1rem;
}

p {
  max-width: var(--max-line);
  margin: 0;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
}

/* ---------- Navigation ---------- */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem var(--gutter);
  color: var(--ink);
}

.nav--hero {
  color: #ffffff;
}

.nav--hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
  z-index: -1;
  pointer-events: none;
}

.nav__logo {
  display: inline-flex;
  text-decoration: none;
}

.nav__logo svg {
  width: auto;
  height: 34px;
  display: block;
}

.nav--hero .nav__logo svg {
  height: 40px;
}

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

.nav__login {
  font-size: 0.78rem;
  opacity: 0.5;
  text-decoration: none;
}

.nav__login:hover {
  opacity: 0.85;
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
}

.nav--hero .nav__links a {
  font-size: 1.05rem;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 4.5rem;
    right: var(--gutter);
    background: var(--ink);
    padding: 1.5rem;
    gap: 1rem;
    border-radius: 4px;
  }
  .nav__toggle { display: block; }
}

/* ---------- Section base ---------- */

.section {
  padding: 7rem var(--gutter);
  position: relative;
}

.section--dark {
  background: var(--ink);
  color: var(--paper);
}

.section--warm {
  background: var(--paper-warm);
  color: var(--ink);
}

.section--image {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--paper);
}

.section--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 0;
}

.section--image > * {
  position: relative;
  z-index: 1;
}

/* ---------- Hero ---------- */

.hero {
  padding-bottom: 5rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 8vw, 6rem);
}

.hero__sub {
  margin-top: 1.2rem;
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  letter-spacing: 0.01em;
}

/* ---------- Why Owls ---------- */

.owl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.owl-grid__item h3 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.owl-grid__item p {
  font-size: 0.95rem;
  opacity: 0.85;
}

@media (max-width: 900px) {
  .owl-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .owl-grid { grid-template-columns: 1fr; }
}

/* ---------- What We Do ---------- */

.service-sub {
  margin-top: 1.2rem;
  max-width: 38rem;
  font-size: 1.02rem;
  opacity: 0.8;
  line-height: 1.6;
}

.service-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-grid__item {
  background: var(--paper-warm);
  padding: 2.2rem 1.8rem;
  border-radius: 6px;
}

.service-grid__num {
  font-size: 0.75rem;
  opacity: 0.5;
  margin-bottom: 1.2rem;
  font-variant-numeric: tabular-nums;
}

.service-grid__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.service-grid__item p {
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.5;
}

.service-grid__note {
  display: flex;
  align-items: center;
}

.service-grid__note p {
  font-size: 0.88rem;
  opacity: 0.65;
  font-style: italic;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid__note { grid-column: span 2; }
}

@media (max-width: 560px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-grid__note { grid-column: span 1; }
}

/* ---------- Who We Work With ---------- */

.who-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--mist);
  border: 1px solid var(--mist);
}

.who-grid__item {
  background: var(--paper);
  padding: 2.4rem 2rem;
}

.who-grid__item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.9rem;
}

.who-grid__item p {
  font-size: 0.92rem;
  opacity: 0.75;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .who-grid { grid-template-columns: 1fr; }
}

/* ---------- Tools ---------- */

.tools-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--mist);
  border: 1px solid var(--mist);
}

.tools-grid__item {
  background: var(--paper);
  padding: 2.4rem 2rem;
}

.tools-grid__tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.55;
  border: 1px solid var(--mist-dark);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 1.1rem;
}

.tools-grid__item h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.tools-grid__item p {
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about__facts {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.about__facts dt {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 0.2rem;
}

.about__facts dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.about--text {
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 4rem;
}

.about--text .about__lede {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.2;
  max-width: 40rem;
  margin: 0;
}

.about--text .about__main p {
  max-width: 34rem;
  margin: 0;
  opacity: 0.85;
}

.about--text .about__main p + p {
  margin-top: 1rem;
}

.about--text .about__facts {
  margin-top: 0;
}

.about__portrait {
  aspect-ratio: 4/5;
  max-width: 50%;
  background: var(--mist);
  background-size: cover;
  background-position: center;
}

@media (max-width: 780px) {
  .about { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */

.contact {
  text-align: left;
}

.contact h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 20ch;
}

.contact-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 1.1rem;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.2rem;
}

/* ---------- Footer ---------- */

.footer {
  padding: 3rem var(--gutter);
  font-size: 0.85rem;
  opacity: 0.6;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__legal {
  display: flex;
  gap: 1.2rem;
}

.footer__legal a {
  text-decoration: none;
}

.footer__legal a:hover {
  text-decoration: underline;
}

/* ---------- Legal pages (Impressum / Datenschutz) ---------- */

.legal {
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.legal h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  max-width: 30rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  margin: 2.5rem 0 0.8rem;
}

.legal p,
.legal li {
  max-width: 42rem;
  opacity: 0.85;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.legal ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.legal a {
  text-decoration: underline;
}

.legal a.contact-link {
  text-decoration: none;
}

/* ---------- Datenschutz-Check ---------- */

.check-intro p {
  max-width: 42rem;
}

.check-category {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--mist);
}

.check-category:first-of-type {
  border-top: none;
}

.check-category h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 1.8rem;
}

.check-question {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.check-question label {
  display: block;
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.check-hint {
  font-size: 0.85rem;
  opacity: 0.6;
  font-style: italic;
  line-height: 1.5;
  margin: 0 0 0.7rem;
  max-width: 38rem;
}

.check-question select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--mist);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  min-width: 240px;
}

.check-submit {
  margin-top: 3rem;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 0.9rem 1.8rem;
  border-radius: 4px;
  cursor: pointer;
}

.check-submit:hover {
  opacity: 0.85;
}

.check-result {
  display: none;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--mist);
}

.check-result.is-visible {
  display: block;
}

.check-result h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.check-result__summary {
  background: var(--paper);
  border-left: 3px solid var(--ink);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2.8rem;
  max-width: 42rem;
}

.check-result__summary p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

.check-result__summary p + p {
  margin-top: 0.7rem;
}

.check-result__item {
  margin-bottom: 1.8rem;
  max-width: 42rem;
}

.check-result__head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.check-result__head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
  margin: 0;
}

.check-result__tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--mist-dark);
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  opacity: 0.8;
}

.check-result__item p {
  font-size: 0.92rem;
  opacity: 0.75;
  line-height: 1.55;
  margin-top: 0.3rem;
}

.check-note {
  margin-top: 2.5rem;
  font-size: 0.88rem;
  opacity: 0.65;
  max-width: 38rem;
}

/* ---------- Mitwandernde Eule ---------- */

.owl-follow {
  position: fixed;
  left: 0;
  top: 0;
  width: 34px;
  height: 41px;
  z-index: 150;
  pointer-events: none;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0.85;
  will-change: transform;
}

.owl-follow.on-image {
  mix-blend-mode: normal;
  opacity: 1;
}

.owl-follow path {
  transform-box: fill-box;
  transform-origin: 50% 100%;
}

.owl-follow[data-action="bounce"] path { animation: owl-bounce 2.4s ease-in-out infinite; }
.owl-follow[data-action="tilt"] path { animation: owl-tilt 3.2s ease-in-out infinite; }
.owl-follow[data-action="balance"] path { animation: owl-balance 2.8s ease-in-out infinite; }
.owl-follow[data-action="wave"] path { animation: owl-wave 3s ease-in-out infinite; }

@keyframes owl-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  18% { transform: translateY(-16%); }
  32% { transform: translateY(0); }
  44% { transform: translateY(-9%); }
}

@keyframes owl-tilt {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-14deg); }
  55% { transform: rotate(10deg); }
  80% { transform: rotate(0); }
}

@keyframes owl-balance {
  0%, 80%, 100% { transform: rotate(0); }
  15% { transform: rotate(8deg); }
  30% { transform: rotate(-8deg); }
  45% { transform: rotate(5deg); }
  60% { transform: rotate(-3deg); }
}

@keyframes owl-wave {
  0%, 50%, 100% { transform: rotate(0); }
  10% { transform: rotate(-12deg); }
  20% { transform: rotate(10deg); }
  30% { transform: rotate(-12deg); }
  40% { transform: rotate(8deg); }
}

/* ---------- Dienstleistungsmodelle ---------- */

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.model {
  background: #fff;
  border-radius: 6px;
  padding: 2rem 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
}

.model__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.7;
  min-height: 1.7rem;
}

.model__tag {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0.1rem 0.6rem;
  font-size: 0.72rem;
}

.model h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.2;
  margin: 1.4rem 0 0.3rem;
}

.model__sub {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.65;
}

.model__lead {
  margin: 1.2rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
}

.model__dims {
  margin: auto 0 0;
  padding-top: 1.8rem;
  display: grid;
  gap: 0.7rem;
}

.model__dims > div {
  border-top: 1px solid #e3e1d9;
  padding-top: 0.6rem;
  min-height: 2.4rem;
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 0.6rem;
  font-size: 0.82rem;
}

.model__dims dt { opacity: 0.55; }
.model__dims dd { margin: 0; }

@media (max-width: 960px) {
  .model-grid { grid-template-columns: 1fr; }
}

/* Zwei weisse Sektionen nacheinander: Abstand halbieren */
#what-we-do { padding-bottom: 3.5rem; }
#who-we-work-with { padding-top: 3.5rem; }
