/* =============================================
   now, seriously. — Haupt-CSS
   ============================================= */


/* ---------------------------------------------
   1. Design Tokens
   --------------------------------------------- */

:root {
  /* Farben */
  --bg: #f5f2eb;
  --text: #1a1a18;
  --muted: #8f897d;
  --accent: #c0392b;
  --accent-hover: #e85d4a;
  --border: #d9d4c9;
  --surface: #efebe3;
  --text-hover: #55524d;

  /* Layout */
  --pad: 48px;

  /* Typografie */
  --t-display: clamp(3rem, 7vw, 5rem);
  --t-h2: clamp(2rem, 4vw, 2.8rem);
  --t-h3: 1.35rem;
  --t-body: 1rem;
  --t-small: 0.92rem;
  --t-label: 0.66rem;
  --t-quote: clamp(1.8rem, 3vw, 2.6rem);
  --t-contact: clamp(1.2rem, 1.8vw, 1.45rem);
}


/* ---------------------------------------------
   2. Reset + Base
   --------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 400;
  font-size: var(--t-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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


/* ---------------------------------------------
   3. WordPress / Astra Overrides
   --------------------------------------------- */

.site-header,
.site-footer,
#ast-scroll-top,
.ast-scroll-top-wrap {
  display: none !important;
}


/* ---------------------------------------------
   4. Global Layout
   --------------------------------------------- */

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--border);
}

.section-grid {
  display: block;
}

.section-label {
  display: block;
  font-size: var(--t-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}

.section-content h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: var(--t-h2);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

.section-content h2 em {
  color: var(--accent);
  font-style: italic;
}


/* ---------------------------------------------
   5. Navigation
   --------------------------------------------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: rgba(245, 242, 235, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

nav.scrolled {
  border-color: var(--border);
}

.nav-wordmark {
  font-family: 'Instrument Serif', serif;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.nav-wordmark em {
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  text-decoration: none;
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  color: var(--text) !important;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}


/* ---------------------------------------------
   6. Mobile Navigation
   --------------------------------------------- */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  padding: 4px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px var(--pad) 28px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  text-decoration: none;
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .m-cta {
  color: var(--text);
}


/* ---------------------------------------------
   7. Hero
   --------------------------------------------- */

#hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-inner {
  width: 100%;
}

.hero-main {
  padding: 72px 0 56px;
}

.hero-meta {
  display: none !important;
}


/* ---------------------------------------------
   8. Hero Wordmark
   --------------------------------------------- */

.mark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
}

.logo {
  font-family: 'Instrument Serif', serif;
  font-size: var(--t-display);
  line-height: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  letter-spacing: -0.03em;
  color: var(--text);
  user-select: none;
}

.part-now {
  opacity: 0;
  transform: translateY(6px);
  transition: color 0.35s ease;
}

.part-comma {
  opacity: 0;
  transform: translateY(-8px) rotate(-16deg);
  color: var(--accent);
  font-style: italic;
  margin-right: 0.02em;
  transition: color 0.35s ease;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 0.9em;
  background: var(--text);
  margin-left: 0.12em;
  margin-right: 0.18em;
  transform: translateY(0.06em);
  opacity: 0;
}

.cursor.active {
  opacity: 1;
  animation: cursorBlink 0.65s step-end infinite;
}

.cursor.hide {
  opacity: 0;
  animation: none;
}

.part-seriously {
  font-style: italic;
  min-height: 1em;
}

.part-dot {
  opacity: 0;
  color: var(--accent);
  transform: scale(0) translateY(4px);
  transition:
    opacity 0.25s ease,
    transform 0.28s cubic-bezier(.34,1.8,.64,1),
    color 0.35s ease;
}

.seriously-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  vertical-align: baseline;
}

.seriously-row {
  display: inline-flex;
  align-items: baseline;
}

.underline {
  height: 1.5px;
  background: var(--text);
  width: 0%;
  margin-top: 4px;
  transition: width 0.55s ease, background 0.35s ease;
  transform-origin: left;
}

.mark:hover .part-now {
  color: var(--text-hover);
}

.mark:hover .part-comma,
.mark:hover .part-dot {
  color: var(--accent-hover);
}

.mark:hover .underline {
  background: var(--accent);
}


/* ---------------------------------------------
   9. Hero Copy + Actions
   --------------------------------------------- */

.subline {
  margin-top: 28px;
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.subline.show {
  opacity: 1;
}

.copy {
  max-width: 600px;
  margin-top: 20px;
  font-size: var(--t-body);
  line-height: 1.75;
  color: var(--text);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.copy.show {
  opacity: 1;
  transform: translateY(0);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-actions.show {
  opacity: 1;
}

.hint {
  margin-top: 22px;
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  cursor: pointer;
  transition: color 0.35s ease, opacity 0.35s ease;
}

.hint.show {
  opacity: 1;
}

.hint:hover {
  color: var(--text);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: var(--t-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 22px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
}


/* ---------------------------------------------
   10. Services
   --------------------------------------------- */

.services-list {
  border-top: 1px solid var(--border);
}

.service-row {
  display: grid;
  grid-template-columns: 52px 1fr 1fr;
  gap: 24px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.service-number {
  font-family: 'Instrument Serif', serif;
  font-size: var(--t-small);
  color: var(--muted);
  line-height: 1;
  padding-top: 4px;
}

.service-title {
  font-family: 'Instrument Serif', serif;
  font-size: var(--t-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.service-title em {
  color: var(--accent);
  font-style: italic;
}

.service-desc {
  font-size: var(--t-small);
  line-height: 1.75;
  color: var(--muted);
}


/* ---------------------------------------------
   11. Quote
   --------------------------------------------- */

#quote {
  background: var(--text);
  border-top: none;
  color: var(--bg);
  padding: 88px 0;
}

.quote-inner {
  display: block;
}

.quote-aside {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.quote-aside-line {
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

.quote-aside-label {
  font-size: var(--t-label);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.4);
}

.quote-text {
  font-family: 'Instrument Serif', serif;
  font-size: var(--t-quote);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--bg);
  max-width: 800px;
}

.quote-text em {
  color: var(--accent);
  font-style: italic;
}

.quote-source {
  margin-top: 28px;
  font-size: var(--t-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.4);
  display: flex;
  align-items: center;
  gap: 14px;
}

.quote-source::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
  flex-shrink: 0;
}


/* ---------------------------------------------
   12. About
   --------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  align-items: start;
}

.about-copy p {
  font-size: var(--t-small);
  line-height: 1.82;
  color: var(--muted);
  margin-bottom: 16px;
  max-width: 540px;
}

.about-copy p strong {
  color: var(--text);
  font-weight: 500;
}

.about-card {
  aspect-ratio: 3 / 4;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.about-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
  z-index: 0;
}

.about-card:has(img)::before {
  display: none;
}

.about-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
}

.about-card span {
  position: relative;
  font-size: var(--t-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}


/* ---------------------------------------------
   13. Contact
   --------------------------------------------- */

#contact {
  background: var(--surface);
}

#contact h2,
.contact-copy h2 {
  font-family: 'Instrument Serif', serif;
  font-size: var(--t-h2);
  font-weight: 400;
  font-style: normal;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

#contact h2 em,
.contact-copy h2 em {
  font-style: italic;
  color: var(--accent);
}

.contact-grid {
  display: block;
}

.contact-copy p {
  font-size: var(--t-small);
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 500px;
}

.contact-mail {
  font-family: 'Instrument Serif', serif;
  font-size: var(--t-contact);
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  display: inline-block;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.contact-box {
  display: none;
}


/* ---------------------------------------------
   14. Footer
   --------------------------------------------- */

footer {
  padding: 32px 0 40px !important;
  border-top: 1px solid var(--border) !important;
  background: var(--bg) !important;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-mark {
  font-family: 'Instrument Serif', serif;
  font-size: 1rem;
  text-decoration: none;
  color: var(--muted);
}

.footer-mark em {
  color: var(--accent);
  font-style: italic;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a,
.footer-copy {
  font-size: var(--t-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}


/* ---------------------------------------------
   15. Reveal / Motion
   --------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes commaIn {
  from { opacity: 0; transform: translateY(-8px) rotate(-16deg); }
  to { opacity: 1; transform: translateY(0); }
}


/* ---------------------------------------------
   16. Reduced Motion
   --------------------------------------------- */

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .part-now,
  .part-comma,
  .part-dot,
  .subline,
  .copy,
  .hero-actions,
  .hint {
    opacity: 1 !important;
    transform: none !important;
  }

  .underline {
    width: 100% !important;
  }
}


/* ---------------------------------------------
   17. Responsive — Tablet
   --------------------------------------------- */

@media (max-width: 900px) {
  :root {
    --pad: 28px;
  }

  nav {
    padding: 0 var(--pad);
  }

  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    padding: 12px var(--pad) 28px;
  }

  .section {
    padding: 72px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-card {
    aspect-ratio: 4 / 3;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}


/* ---------------------------------------------
   18. Responsive — Mobile
   --------------------------------------------- */

@media (max-width: 640px) {
  :root {
    --pad: 20px;
    --t-h2: 1.9rem;
    --t-h3: 1.2rem;
    --t-quote: 1.7rem;
  }

  .logo {
    font-size: clamp(2.4rem, 12vw, 3.2rem);
  }

  .copy {
    font-size: var(--t-body);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .service-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px 0;
  }

  .service-number {
    font-size: var(--t-label);
    letter-spacing: 0.12em;
    color: var(--muted);
  }

  .service-title {
    font-size: var(--t-h3);
  }

  .service-desc {
    font-size: var(--t-small);
    margin-top: 4px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card {
    aspect-ratio: 3 / 2;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .footer-inner {
    gap: 12px;
  }
}