/* Self-hosted fonts (Latin subset): Montserrat 500-800, DM Sans 400-600 */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../assets/fonts/montserrat-latin-500-800.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../assets/fonts/dmsans-latin-400-600.woff2') format('woff2');
}

:root {
  color-scheme: light dark;

  /* fixed brand tokens - do not flip between themes */
  --gold-1: #FBD34D;
  --gold-2: #C9880A;
  --violet: #3B2A6E;
  --violet-dark: #271C4A;
  --violet-soft: #6B5AA0;

  /* adaptive tokens - redefined under dark mode below */
  --bg: #FFFFFF;
  --bg-alt: #F8F6F2;
  --surface: #FFFFFF;
  --text: #2B2540;
  --text-light: #6B6580;
  --border: #E9E4F0;
  --ink: var(--violet-dark);

  --radius: 14px;
  --shadow: 0 10px 30px rgba(59, 42, 110, 0.08);
  --max-width: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1B1533;
    --bg-alt: #221B3C;
    --surface: #241D42;
    --text: #EFEAFB;
    --text-light: #B3A7D6;
    --border: #382D5C;
    --ink: #E7DEFB;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 12px;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--text-light); font-size: 1.05rem; }

section { padding: 96px 0; }

/* Scroll-reveal (motivated: guides attention to each section as it enters, communicates hierarchy of arrival) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: var(--violet-dark);
  box-shadow: 0 8px 20px rgba(201, 136, 10, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(201, 136, 10, 0.45); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-outline:active { transform: scale(0.98); }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(27, 21, 51, 0.82); }
  .site-header .logo .logo-default { display: none; }
  .site-header .logo .logo-light { display: block; }
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(59, 42, 110, 0.06);
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.logo img { height: 38px; width: auto; }
.logo .logo-light { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover { color: var(--gold-2); }

.nav-actions { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero: full-width banner. Headline, subline and button are part of the image,
   so a transparent link sits over the pictured button (positions are % of the image). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 74px;
  width: 100%;
  aspect-ratio: 3168 / 1344;
  min-height: 540px;
  max-height: 86dvh;
  background: var(--violet-dark);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 8% center;
}

/* brand-violet scrim on the left keeps the text readable over the landscape */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(25, 17, 52, 0.86) 0%, rgba(25, 17, 52, 0.66) 36%, rgba(25, 17, 52, 0) 60%);
}

.hero .container { width: 100%; }

/* text stays in the left landscape area; it must never run onto the bright middle panel */
.hero-copy { max-width: min(46%, 480px); }

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(15, 9, 35, 0.45);
}

.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 440px;
  margin-bottom: 30px;
  text-shadow: 0 1px 14px rgba(15, 9, 35, 0.5);
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero .btn-outline { border-color: #fff; color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--violet-dark); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about-hex {
  aspect-ratio: 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: var(--bg-alt);
  border: 2px solid var(--border);
  overflow: hidden;
}

.about-hex img { width: 100%; height: 100%; object-fit: cover; }

.about-text p { color: var(--text-light); margin-bottom: 18px; font-size: 1.02rem; }

.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 20px; }

/* Services */
.services { background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(59, 42, 110, 0.14); }

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-icon i { font-size: 26px; color: var(--violet-dark); }

.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-light); font-size: 0.98rem; }

/* Medien & Webdesign: brand-violet surface, the one area that is not classic print/craft */
.service-card--featured {
  background: linear-gradient(135deg, var(--violet), var(--violet-dark));
  border-color: transparent;
}

.service-card--featured h3 { color: #fff; }
.service-card--featured p { color: rgba(255, 255, 255, 0.86); }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item .frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
}

.portfolio-item .ph {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--violet-soft), var(--violet-dark));
  color: rgba(255, 255, 255, 0.9);
}

.portfolio-item .ph .hex-mini {
  width: 46px;
  height: 46px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
}

.portfolio-item .ph span {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 16px;
}

.portfolio-item .ph small {
  font-size: 0.72rem;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-item .frame:hover img { transform: scale(1.05); }

.portfolio-item .caption {
  margin-top: 12px;
  font-size: 0.92rem;
  color: var(--text-light);
}

.portfolio-item .caption strong { color: var(--ink); font-weight: 600; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
}

.contact-info h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.contact-info p.lead { color: var(--text-light); margin-bottom: 32px; }

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-detail .icon i { font-size: 19px; color: var(--gold-2); }

.contact-detail strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 0.95rem; margin-bottom: 2px; color: var(--ink); }
.contact-detail span, .contact-detail a { color: var(--text-light); font-size: 0.95rem; }

.contact-form {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--border);
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.form-row input, .form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
}

.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-light); opacity: 1; }

.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--gold-2);
}

.form-row textarea { resize: vertical; min-height: 120px; }

.hp-field { position: absolute; left: -9999px; }

/* Footer */
footer {
  background: var(--violet-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img { height: 34px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  list-style: none;
  font-size: 0.92rem;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding-top: 24px;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

/* Legal pages */
.legal-page {
  padding: 140px 0 100px;
  max-width: 820px;
}

.legal-page h1 { margin-bottom: 24px; }
.legal-page h2 { font-size: 1.25rem; margin: 32px 0 12px; }
.legal-page p, .legal-page li { color: var(--text-light); margin-bottom: 14px; }
.legal-page ul { padding-left: 20px; }
.legal-page a.back { display: inline-block; margin-bottom: 32px; font-family: 'Montserrat', sans-serif; font-weight: 600; color: var(--gold-2); }

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-hex { max-width: 280px; margin: 0 auto; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .nav-links {
    display: flex;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  section { padding: 64px 0; }
  /* Phones: tall crop on the landscape, text sits at the bottom on a vertical scrim */
  .hero { aspect-ratio: auto; min-height: 600px; max-height: none; align-items: flex-end; padding-bottom: 40px; }
  .hero-bg { object-position: 18% center; }
  .hero-copy { max-width: none; }
  .hero-overlay { background: linear-gradient(0deg, rgba(25, 17, 52, 0.92) 0%, rgba(25, 17, 52, 0.6) 48%, rgba(25, 17, 52, 0.1) 100%); }
  .services-grid, .portfolio-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 28px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Cookie consent banner: both choices carry equal weight (no dark pattern) */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 200;
  width: min(440px, calc(100% - 32px));
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px rgba(25, 17, 52, 0.28);
}

.consent h2 { font-size: 1.05rem; margin-bottom: 8px; }
.consent p { font-size: 0.92rem; color: var(--text-light); margin-bottom: 16px; }
.consent p a { color: var(--ink); text-decoration: underline; }
.consent-actions { display: flex; gap: 12px; }
.consent-actions .btn { flex: 1; padding: 12px 16px; }

footer a[data-consent-open] { text-decoration: underline; }

/* FAQ */
.faq { background: var(--bg-alt); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: 'Montserrat', 'Segoe UI', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}

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

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--gold-2);
  border-bottom: 2px solid var(--gold-2);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item summary:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: var(--radius); }
.faq-item p { padding: 0 22px 20px; color: var(--text-light); }

/* Contact form feedback */
:root { --error: #B3261E; }
@media (prefers-color-scheme: dark) { :root { --error: #FF8F85; } }

.form-status { margin-top: 14px; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.form-status:empty { display: none; }
.form-status.is-ok { padding-left: 12px; border-left: 3px solid var(--gold-2); }
.form-status.is-error { color: var(--error); padding-left: 12px; border-left: 3px solid var(--error); }
.form-note { margin-top: 14px; font-size: 0.85rem; color: var(--text-light); }
.form-note a { color: var(--ink); text-decoration: underline; }
.contact-form .btn[disabled] { opacity: 0.65; cursor: progress; }
