/* ===========================
   style.css (vollständig)
   – Global Styles + Circles Mobile Fix
   =========================== */

@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap");

:root {
  --red: #e3051a;
  --cream: #ffefcc;
  --ink: #020202;
  --mist: #f2f2f2;
  --radius: 22px;
  --pad: clamp(16px, 2.2vw, 28px);
  --max: 1200px;
  --headline-font: "Syne", system-ui, sans-serif;

  --grain-opacity: 0.07;
  --grain-scale: 320px;
  --grain-speed: 12s;
  --line: rgba(242, 242, 242, 0.12);
  --line-strong: rgba(242, 242, 242, 0.22);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Space Grotesk", system-ui, sans-serif;
  color: var(--mist);
  background: var(--ink);
  letter-spacing: 0.01em;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 var(--pad);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--red) !important;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

/* Grain BG */
.grain {
  position: fixed;
  inset: -20vmax;
  z-index: 1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="4" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
  background-size: var(--grain-scale) var(--grain-scale);
  animation: grainShift var(--grain-speed) steps(10) infinite;
}
@keyframes grainShift {
  to {
    transform: translate3d(-160px, -160px, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .grain {
    animation: none;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(
    180deg,
    rgba(2, 2, 2, 0.9),
    rgba(2, 2, 2, 0.6) 70%,
    rgba(2, 2, 2, 0)
  );
  backdrop-filter: blur(8px);
}
main {
  position: relative;
  z-index: 5;
  background: var(--ink);
}

/* NAV wie index */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad);
  background-color: #020202;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(227, 5, 26, 0.2);
}
.brand b {
  font-weight: 700;
  letter-spacing: 0.02em;
}
.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
  padding: 8px 4px;
}
.nav-list a:hover,
.nav-list a.active {
  opacity: 1;
  color: var(--red);
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(242, 242, 242, 0.16);
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s transform, 0.25s background-color;
}
.cta:hover {
  transform: translateY(-1px);
  background: rgba(255, 239, 204, 0.06);
}
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(242, 242, 242, 0.22);
  border-radius: 999px;
  color: var(--mist);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
}
.nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 242, 242, 0.38);
  background: rgba(255, 255, 255, 0.05);
}
.nav-toggle svg {
  display: block;
  stroke: currentColor;
}
@media (max-width: 980px) {
  .nav-list,
  .cta {
    display: none !important;
  }
  .nav-toggle {
    display: grid;
  }
}

/* Mobile Overlay wie index */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  background: radial-gradient(
      120% 100% at 50% -10%,
      rgba(227, 5, 26, 0.22),
      transparent 40%
    ),
    rgba(2, 2, 2, 0.94);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(242, 242, 242, 0.25);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, background-color 0.2s;
  color: var(--mist);
}
.nav-close:hover {
  transform: translateY(-1px);
  border-color: rgba(242, 242, 242, 0.4);
  background: rgba(255, 255, 255, 0.05);
}
.nav-close svg {
  display: block;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.nav-menu {
  display: grid;
  gap: 22px;
  text-align: center;
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.nav-overlay.open .nav-menu {
  transform: translateY(0);
  opacity: 1;
}
.nav-menu a {
  font-family: "Space Grotesk", system-ui, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(28px, 8vw, 64px);
  letter-spacing: -0.01em;
  color: var(--mist);
}

/* Buttons */
.btn {
  --bg: rgba(255, 239, 204, 0.08);
  --bd: rgba(242, 242, 242, 0.15);
  --fg: var(--mist);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  transition: 0.25s transform, 0.25s background-color, 0.25s border-color;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn.primary {
  --bg: var(--red);
  --bd: transparent;
  --fg: #fff;
}

/* HERO */
.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 12vh var(--pad) 6vh;
  overflow: hidden;
}
.hero-title {
  font-family: var(--headline-font);
  font-size: clamp(40px, 12vw, 140px);
  line-height: 0.82;
  letter-spacing: -0.015em;
  font-weight: 800;
  margin: 0;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  text-align: center;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
  opacity: 0.9;
}
.hero-intro-text {
  max-width: 55ch;
  font-size: clamp(16px, 1.2vw, 18px);
  opacity: 0.9;
  margin: 22px auto 0;
  line-height: 1.6;
}
.hero-actions {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.35;
  mix-blend-mode: screen;
}
.orb.red {
  background: radial-gradient(
    closest-side,
    rgba(227, 5, 26, 0.9),
    rgba(227, 5, 26, 0)
  );
  width: 420px;
  height: 420px;
  top: -80px;
  right: -80px;
}
.orb.yellow {
  background: radial-gradient(
    closest-side,
    rgba(255, 239, 204, 0.9),
    rgba(255, 239, 204, 0)
  );
  width: 520px;
  height: 520px;
  bottom: -120px;
  left: -140px;
}
@media (max-width: 820px) {
  .orb {
    filter: blur(26px);
  }
  .orb.red {
    width: 300px;
    height: 300px;
    top: -60px;
    right: -100px;
  }
  .orb.yellow {
    width: 360px;
    height: 360px;
    bottom: -120px;
    left: -180px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .orb {
    animation: float 12s ease-in-out infinite alternate;
  }
  .orb.red {
    animation-delay: 0.4s;
  }
}
@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(18px);
  }
}

section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(32px, 3.5vw, 48px);
  font-family: var(--headline-font);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Projekte */
.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  margin-top: 26px;
}
.tile {
  grid-column: span 6;
  position: relative;
  border: 1px solid rgba(242, 242, 242, 0.12);
  border-radius: 16px;
  overflow: hidden;
  background: #0c0c0c;
}
.tile .meta {
  position: absolute;
  inset: 10px 12px auto 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  opacity: 0.8;
}
.tile h3 {
  position: absolute;
  left: 12px;
  bottom: 10px;
  font-size: clamp(18px, 2.4vw, 28px);
  margin: 0;
}
.tile figure {
  aspect-ratio: 16/10;
  margin: 0;
  overflow: hidden;
}
.tile img {
  transition: transform 0.4s ease;
}
.tile:hover img {
  transform: scale(1.05);
}
@media (max-width: 980px) {
  .work-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .tile {
    grid-column: span 6;
  }
}

/* Services Kreise */
.services-circles .wrap {
  display: grid;
  gap: 38px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(14px, 2vw, 20px);
  margin-top: 8px;
  align-items: center;
}
.circle-item {
  grid-column: span 6;
  display: grid;
  place-items: center;
  min-height: clamp(220px, 34vw, 360px);
}
@media (max-width: 820px) {
  .circle-item {
    grid-column: span 12;
    min-height: clamp(220px, 62vw, 340px);
  }
}
.circle {
  width: 100%;
  max-width: min(50vw, 380px);
  aspect-ratio: 1/1;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  border: 2px solid rgba(242, 242, 242, 0.55);
  background: radial-gradient(
    60% 60% at 50% 50%,
    rgba(227, 5, 26, 0.08) 0%,
    transparent 70%
  );
  transition: 0.25s;
  box-shadow: 0 0 0 6px var(--ink) inset,
    0 0 0 1px rgba(242, 242, 242, 0.18) inset;
}
.circle-item:hover .circle {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: 0 0 0 6px var(--ink) inset,
    0 0 0 1px rgba(227, 5, 26, 0.35) inset,
    0 4px 40px rgba(227, 5, 26, 0.14);
}
.circle-content {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  max-width: 62%;
  text-align: center;
}
.badge-no {
  font-size: clamp(10px, 0.9vw, 11px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.72;
}
.circle-title {
  font-family: var(--headline-font);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 0.96;
  font-weight: 800;
}
.circle-text {
  max-width: 40ch;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.45;
  opacity: 0.9;
}
.circle-cta {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  border: 1px solid rgba(242, 242, 242, 0.18);
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: 0.25s;
}
.circle-cta:hover {
  background: rgba(255, 239, 204, 0.06);
  transform: translateY(-2px);
  border-color: rgba(242, 242, 242, 0.32);
}

/* Who */
.who {
  background: var(--cream);
  color: var(--ink);
}
.who .wrap {
  padding-block: 64px;
}
.who .copy {
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1.3;
  max-width: 35ch;
}
.who .copy b {
  color: var(--red);
}

/* FAQ kompakt */
.faq {
  padding-top: 56px;
}
.faq h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 12px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: clamp(16px, 1.4vw, 18px);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .plus {
  margin-left: auto;
  color: var(--red);
  font-weight: 800;
  font-size: 20px;
}
.faq .answer {
  opacity: 0.9;
  max-width: 70ch;
  padding: 8px 0 6px 0;
  line-height: 1.65;
}
.faq a {
  text-decoration: underline;
}

/* Kontakt CTA */
#kontakt .wrap {
  text-align: center;
}
#kontakt p {
  max-width: 45ch;
  margin: 12px auto 24px;
  opacity: 0.85;
}

/* Footer wie index */
footer {
  position: sticky;
  bottom: 0;
  z-index: 4;
  background: #ffefcc;
}
.footer-content.wrap {
  width: 100%;
  max-width: 100%;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.footer-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 6vw, 64px);
  padding: 56px var(--pad);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-grow: 1;
  min-width: 280px;
}
.newsletter-form input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--mist);
  color: var(--mist);
  padding: 10px 0;
  font-size: 15px;
  width: 100%;
  max-width: 280px;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  width: 100%;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
}
.footer-logo {
  text-align: center;
  width: 100%;
  color: var(--red);
}
.footer-logo .logo-atelier {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 16vw, 140px);
  letter-spacing: -0.02em;
  margin-left: 8px;
}
.footer-credits {
  width: 100%;
  font-size: 12px;
  opacity: 0.7;
  border-top: 1px solid rgba(242, 242, 242, 0.12);
  padding-top: 16px;
  color: var(--mist);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 980px) {
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 30px !important;
  }
}
@media (max-width: 560px) {
  .footer-links {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Circles: Mobile-Optimierung (zusätzlich)
   =========================== */

/* nur Geräte mit Hover bekommen Hover-Effekt */
@media (hover: hover) {
  .circle-item:hover .circle {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 0 0 6px var(--ink) inset,
      0 0 0 1px rgba(227, 5, 26, 0.35) inset,
      0 4px 40px rgba(227, 5, 26, 0.14);
  }
}

/* Tablets / kleine Laptops */
@media (max-width: 820px) {
  .services-grid {
    gap: 18px;
  }
  .circle-item {
    grid-column: span 12;
    min-height: auto; /* Inhalt bestimmt Höhe */
    padding: 8px 0;
  }
  .circle {
    max-width: min(86vw, 420px); /* größer als 50vw */
    border-width: 2px;
  }
  .circle-content {
    max-width: 82%;
    gap: 8px;
    padding: 14px;
  }
  .circle-title {
    font-size: clamp(20px, 5.6vw, 28px);
    line-height: 1.02;
  }
  .circle-text {
    font-size: clamp(14px, 3.6vw, 16px);
    line-height: 1.55;
  }
  .circle-cta {
    padding: 10px 14px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
}

/* Phones */
@media (max-width: 560px) {
  .services-grid {
    gap: 14px;
  }
  .circle {
    max-width: 92vw;           /* nahezu volle Breite */
    border-width: 1.5px;       /* optisch feiner */
    box-shadow: 0 0 0 4px var(--ink) inset,
                0 0 0 1px rgba(242,242,242,0.18) inset;
  }
  .circle-content {
    max-width: 88%;
    padding: 16px 12px;
    gap: 10px;
  }
  .badge-no {
    font-size: 11px;
    letter-spacing: 0.18em;
  }
  .circle-title {
    font-size: clamp(18px, 7vw, 24px);
  }
  .circle-text {
    font-size: 15px;           /* besser lesbar */
    line-height: 1.6;
  }
  .circle-cta {
    padding: 12px 16px;        /* größere Tap-Area */
    font-size: 12px;
    min-height: 44px;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  .circle {
    max-width: 94vw;
  }
  .circle-content {
    max-width: 90%;
  }
}
