@charset "UTF-8";

:root {
  color-scheme: dark;
  --ink: #f6f1e9;
  --muted: #d2c9bc;
  --line: rgba(246, 241, 233, 0.28);
  --accent: #d5b78f;
  --surface: rgba(22, 19, 17, 0.54);
  --font-display: Georgia, "Iowan Old Style", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #2c2925;
  --muted: #5f574d;
  --line: rgba(44, 41, 37, 0.28);
  --accent: #765f42;
  --surface: rgba(250, 247, 241, 0.68);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  background: var(--page-bg, #171412);
  color: var(--ink);
  font-family: var(--font-body);
}

:root[data-theme="light"] body {
  --page-bg: #f1ece4;
}

.teaser {
  isolation: isolate;
  min-height: 100svh;
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.teaser-image,
.teaser-overlay {
  position: absolute;
  inset: 0;
}

.teaser-image {
  z-index: -2;
  background: url("hero.jpg") center 42% / cover no-repeat;
  filter: saturate(0.76) contrast(1.04);
  transform: scale(1.02);
}

.teaser-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(15, 12, 10, 0.88) 0%, rgba(15, 12, 10, 0.61) 47%, rgba(15, 12, 10, 0.27) 100%),
    linear-gradient(0deg, rgba(15, 12, 10, 0.76) 0%, transparent 42%, rgba(15, 12, 10, 0.28) 100%);
}

:root[data-theme="light"] .teaser-image {
  filter: saturate(0.7) contrast(0.98) brightness(1.08);
}

:root[data-theme="light"] .teaser-overlay {
  background:
    linear-gradient(90deg, rgba(250, 247, 241, 0.86) 0%, rgba(250, 247, 241, 0.58) 47%, rgba(250, 247, 241, 0.18) 100%),
    linear-gradient(0deg, rgba(250, 247, 241, 0.52) 0%, transparent 42%, rgba(250, 247, 241, 0.16) 100%);
}

.teaser-tools {
  position: absolute;
  top: clamp(1rem, 3vw, 2.5rem);
  right: clamp(1rem, 4vw, 4rem);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.language-switch {
  display: flex;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid #e2ddd3;
  border-radius: 999px;
  background: #f2efe9;
  backdrop-filter: blur(5px);
}

:root[data-theme="dark"] .language-switch {
  border-color: rgba(122, 101, 75, 0.35);
  background: #201e1b;
}

.language-button {
  min-width: 0;
  min-height: 0;
  padding: 0.25rem 0.475rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.6;
}

.language-button.is-active,
.language-button:hover,
.language-button:focus-visible {
  background: #fff;
  color: #24211d;
}

:root[data-theme="dark"] .language-button.is-active,
:root[data-theme="dark"] .language-button:hover,
:root[data-theme="dark"] .language-button:focus-visible {
  background: #2d2a26;
  color: #ede8e0;
}

.theme-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.theme-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-slider {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 3.6rem;
  height: 2rem;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: background-color 300ms ease, border-color 300ms ease;
}

.theme-slider-knob {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 16, 12, 0.18);
  transform: translateX(0);
  transition: transform 300ms ease, background-color 300ms ease;
}

:root[data-theme="dark"] .theme-slider-knob {
  background: #201e1b;
}

.theme-switch input:checked + .theme-slider {
  background: rgba(205, 185, 146, 0.2);
  border-color: rgba(205, 185, 146, 0.8);
}

.theme-switch input:checked + .theme-slider .theme-slider-knob {
  transform: translateX(1.6rem);
  background: var(--accent);
}

.theme-switch .icon-sun,
.theme-switch .icon-moon {
  position: absolute;
  font-size: 0.75rem;
  line-height: 1;
}

.theme-switch .icon-sun {
  left: 0.42rem;
  color: #d18a00;
}

.theme-switch .icon-moon {
  right: 0.42rem;
  color: #dfe7ff;
}

[data-theme="light"] .theme-switch .icon-sun { opacity: 1; }
[data-theme="light"] .theme-switch .icon-moon { opacity: 0.25; }
[data-theme="dark"] .theme-switch .icon-sun { opacity: 0.25; }
[data-theme="dark"] .theme-switch .icon-moon { opacity: 1; }

.language-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.teaser-content {
  align-self: center;
  min-width: 0;
  width: min(100%, 42rem);
  max-width: 100%;
  padding: clamp(1.5rem, 5vw, 4rem);
  border-left: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(5px);
  animation: reveal 700ms ease both;
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

h1 {
  max-width: none;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.8vw, 4.8rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0;
}

.services {
  margin: 2rem 0 0;
  color: var(--ink);
  font-size: clamp(0.95rem, 1.6vw, 1.2rem);
  letter-spacing: 0.04em;
}

.services span {
  margin: 0 0.35em;
  color: var(--accent);
}

.intro {
  max-width: 31rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.teaser-footer {
  justify-self: end;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .teaser {
    min-height: 100svh;
    padding: 1rem;
  }

  .teaser-content {
    align-self: end;
    padding: 1.4rem;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .teaser-tools {
    top: 1rem;
    right: 1rem;
  }

  h1 {
    font-size: clamp(2.4rem, 10vw, 3.6rem);
  }

  .services {
    line-height: 1.7;
  }

  .teaser-footer {
    padding: 1rem 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .teaser-content {
    animation: none;
  }
}
