/* ==========================================================================
   lust keramik – Heike von Bredow
   Farben: helles Warmgrau, Beige/Sand, sanftes Neon-Orange
   ========================================================================== */

@font-face {
  font-family: "Josefin Sans";
  src: url("../fonts/josefinsans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/dmsans-latin.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #efece7;          /* helles Warmgrau */
  --bg-2: #e7e2da;        /* Grau-Beige */
  --paper: #f7f5f1;       /* fast Weiß */
  --sand: #c9a98b;        /* Blob-Rand */
  --clay: #b98a66;
  --glow: #ff5a2e;        /* Neon-Orange (Blob-Kern) */
  --glow-soft: #ff8a5c;
  --ink: #2a2622;         /* warmes Anthrazit */
  --ink-2: #6f665e;
  --line: rgba(42, 38, 34, 0.12);

  --radius: 28px;
  --radius-sm: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;

  --font-display: "Josefin Sans", "Futura", "Century Gothic", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw + 10px, 18px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* feines Korn über allem – wirkt wie Papier / Ton */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

::selection { background: var(--glow-soft); color: #fff; }

:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 999px; z-index: 200;
}
.skip:focus { left: 16px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 200;
  line-height: 1.08;
  letter-spacing: -0.005em;
  margin: 0;
}
h2 { font-size: clamp(2.1rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.35rem; font-weight: 300; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  color: var(--clay);
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
.eyebrow::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, var(--glow-soft) 55%, var(--sand) 100%);
  box-shadow: 0 0 12px 2px rgba(255, 90, 46, 0.45);
}

.lead { font-size: 1.12em; color: var(--ink-2); max-width: 34ch; }

/* ---------- weiche Leucht-Flecken im Hintergrund ---------- */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.ambient span {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35;
}
.ambient span:nth-child(1) { width: 46vmax; height: 46vmax; right: -18vmax; top: 30vh; background: radial-gradient(circle, #ffb08a, transparent 65%); }
.ambient span:nth-child(2) { width: 40vmax; height: 40vmax; left: -16vmax; bottom: -14vmax; background: radial-gradient(circle, #e3cdb6, transparent 65%); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease, color .35s ease;
}
.btn-glow {
  color: #fff;
  background: radial-gradient(120% 160% at 30% 20%, var(--glow) 0%, var(--glow-soft) 45%, var(--clay) 110%);
  box-shadow: 0 10px 30px -10px rgba(255, 90, 46, 0.65), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 90, 46, 0.8), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.45); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { background: var(--paper); transform: translateY(-2px); }
.btn svg { width: 1em; height: 1em; }

/* ==========================================================================
   Header + Blob-Logo
   ========================================================================== */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: flex-end; align-items: center;
  padding: clamp(18px, 3vw, 34px) var(--gutter);
}
.site-nav { display: flex; gap: clamp(14px, 2.4vw, 34px); align-items: center; }
.site-nav a {
  font-family: var(--font-display); font-weight: 300; font-size: 1.02rem; letter-spacing: 0.06em;
  text-decoration: none; color: var(--ink); position: relative; padding: 4px 0;
}
.site-nav a:not(.pill)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--glow);
  transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.site-nav a:not(.pill):hover::after { transform: scaleX(1); }
.site-nav .pill { padding: 0.55em 1.2em; border-radius: 999px; background: var(--ink); color: var(--paper); }
.site-nav .pill:hover { background: var(--glow); }

/* Der Blob aus der Visitenkarte – läuft oben links aus dem Bild */
.brand-blob {
  position: absolute; top: 0; left: 0; z-index: 10;
  width: clamp(300px, 40vw, 620px);
  aspect-ratio: 600 / 520;
  text-decoration: none;
  transform: translate(-6%, -8%);
}
.brand-blob .blob-shape { width: 100%; height: 100%; overflow: visible; animation: breathe 16s ease-in-out infinite; transform-origin: 40% 40%; }
.brand-blob .wordmark {
  position: absolute; left: 51%; top: 47%; transform: translate(-50%, -50%);
  width: 36%; height: auto; aspect-ratio: 178 / 108; overflow: visible;
  filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.25));
  animation: none;
}
@keyframes breathe {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(-2.5deg) scale(1.03); }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-top: clamp(120px, 14vw, 200px); }
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end;
  min-height: clamp(300px, 34vw, 480px);
}
.hero-text { grid-column: 2; padding-bottom: clamp(10px, 3vw, 40px); }
.hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); }
.hero h1 em { font-style: normal; font-weight: 100; color: var(--clay); display: block; }
.hero .lead { margin: 1.4rem 0 2rem; }
.hero .eyebrow { font-size: clamp(1.1rem, 1.3vw + 0.5rem, 1.45rem); letter-spacing: 0.1em; }
.hero .eyebrow::before { width: 11px; height: 11px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-image { margin-top: clamp(40px, 6vw, 80px); }

/* ==========================================================================
   Bild mit harter (runder) Kante auf einer Seite, weichem Auslauf auf der anderen
   ========================================================================== */
.fade-img { position: relative; overflow: hidden; border-radius: var(--radius); }
.fade-img img { width: 100%; height: 100%; object-fit: cover; }
.fade-img.to-right  { -webkit-mask-image: linear-gradient(90deg, #000 50%, transparent 98%); mask-image: linear-gradient(90deg, #000 50%, transparent 98%); }
.fade-img.to-left   { -webkit-mask-image: linear-gradient(270deg, #000 50%, transparent 98%); mask-image: linear-gradient(270deg, #000 50%, transparent 98%); }
.fade-img.to-bottom { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }

.hero-image .fade-img { aspect-ratio: 21 / 9; width: calc(100% + var(--gutter)); }

/* ==========================================================================
   Atelier / Über
   ========================================================================== */
section { position: relative; }
.section { padding-block: clamp(80px, 11vw, 160px); }

.about-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-grid .fade-img { aspect-ratio: 4 / 5; margin-left: calc(-1 * var(--gutter)); }
.about-text p { color: var(--ink-2); max-width: 46ch; }
.about-text h2 { margin-bottom: 1.6rem; }

.facts { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.facts li {
  background: rgba(255,255,255,.5); border-radius: var(--radius-sm); padding: 18px 18px 16px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-display); font-weight: 300; font-size: 1.02rem; line-height: 1.3;
}
.facts li b { display: block; font-weight: 200; font-size: 1.9rem; color: var(--glow); margin-bottom: 4px; }

/* ==========================================================================
   Arbeiten / Galerie
   ========================================================================== */
.works { background: var(--bg-2); border-radius: clamp(28px, 4vw, 56px); margin-inline: clamp(8px, 1.5vw, 20px); }
.works-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 64px); }
.works-head p { color: var(--ink-2); max-width: 38ch; margin: 0; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(90px, 9vw, 130px);
  gap: clamp(10px, 1.4vw, 18px);
}
.tile { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption {
  position: absolute; left: 14px; bottom: 14px;
  padding: 0.4em 0.95em; border-radius: 999px;
  background: rgba(247, 245, 241, 0.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-display); font-weight: 400; font-size: 0.9rem; letter-spacing: 0.04em;
}
.t1 { grid-column: 1 / 6;  grid-row: span 4; }
.t2 { grid-column: 6 / 13; grid-row: span 2; }
.t3 { grid-column: 6 / 9;  grid-row: span 2; }
.t4 { grid-column: 9 / 13; grid-row: span 2; }
.t5 { grid-column: 1 / 8;  grid-row: span 3; }
.t6 { grid-column: 8 / 13; grid-row: span 3; }

.placeholder-note { margin-top: 18px; font-size: 0.85rem; color: var(--ink-2); opacity: .8; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.contact-card {
  position: relative; overflow: hidden;
  background: var(--paper);
  border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(32px, 6vw, 88px);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  box-shadow: 0 40px 80px -50px rgba(90, 60, 40, 0.35);
}
.contact-card .glow-blob {
  position: absolute; right: -12%; bottom: -30%; width: 60%; pointer-events: none; opacity: .9;
  filter: blur(2px);
}
.contact-card > * { position: relative; }
.contact-card h2 { margin-bottom: 1.2rem; }
.contact-card .lead { margin-bottom: 2rem; }

.mail-link {
  display: inline-block;
  font-family: var(--font-display); font-weight: 200;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  text-decoration: none; line-height: 1.2;
  background: linear-gradient(90deg, var(--ink), var(--ink)) left bottom / 100% 1px no-repeat;
  padding-bottom: 6px; word-break: break-word;
  transition: color .3s ease, background-size .3s ease;
}
.mail-link:hover { color: var(--glow); background-image: linear-gradient(90deg, var(--glow), var(--glow-soft)); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center;
  background: rgba(239, 236, 231, 0.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm); padding: 14px 18px;
}
.contact-list .ico {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--glow);
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-size: 0.8rem; letter-spacing: 0.1em; color: var(--ink-2); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--glow); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { padding: clamp(48px, 7vw, 90px) 0 36px; }
.footer-row { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 200; font-size: 1.5rem; text-decoration: none; }
.footer-brand img { width: 46px; height: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 0.92rem; }
.footer-links a { text-decoration: none; color: var(--ink-2); }
.footer-links a:hover { color: var(--glow); }
.footer-meta { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 0.85rem; color: var(--ink-2); }

/* ==========================================================================
   Rechtstexte (Impressum / Datenschutz)
   ========================================================================== */
.legal-page .brand-blob { width: clamp(200px, 24vw, 340px); }
.legal { padding-top: clamp(190px, 22vw, 300px); padding-bottom: 40px; }
.legal-inner { max-width: 760px; }
.legal h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 2.2rem; }
.legal h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); font-weight: 300; margin: 2.6rem 0 0.8rem; }
.legal h3 { font-size: 1.1rem; font-weight: 400; margin: 1.6rem 0 0.4rem; }
.legal p, .legal li { color: #4a433d; }
.legal address { font-style: normal; }
.legal .box { background: var(--paper); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); margin-bottom: 1.6rem; }
.legal .back { display: inline-flex; margin-top: 2.6rem; }

/* ==========================================================================
   Einblenden beim Scrollen (nur wenn JS aktiv)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s ease, transform 1s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-blob .blob-shape { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tile img, .btn { transition: none; }
}

/* ==========================================================================
   Tablet
   ========================================================================== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .fade-img { aspect-ratio: 5 / 4; margin-left: 0; margin-right: calc(-1 * var(--gutter)); }
  .contact-card { grid-template-columns: 1fr; }
  .contact-card .glow-blob { width: 90%; right: -30%; bottom: -12%; }
}

/* ==========================================================================
   Handy
   ========================================================================== */
@media (max-width: 720px) {
  .site-nav a:not(.pill) { display: none; }

  .brand-blob { width: min(62vw, 290px); transform: translate(-17%, -19%); }

  /* Startbildschirm füllt genau das Display und endet mit den Buttons */
  .hero { padding-top: min(40vw, 180px); }
  .hero-grid {
    grid-template-columns: 1fr; align-items: end;
    min-height: calc(100vh - min(40vw, 180px));
    min-height: calc(100svh - min(40vw, 180px));
  }
  .hero-text { padding-bottom: 26px; }
  .hero::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    right: -38vw; top: 34vh; top: 34svh; width: 100vw; height: 100vw; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 106, 58, 0.30) 0%, rgba(255, 150, 100, 0.14) 42%, transparent 70%);
  }
  .hero .eyebrow { margin-bottom: 0.9rem; font-size: 1.12rem; }
  .hero .lead { font-size: 1.06rem; margin: 1.1rem 0 1.6rem; }
  .hero-actions .btn { padding: 1.05em 1.4em; font-size: 1.04rem; }
  .hero-image { margin-top: 8px; }
  .hero-text { grid-column: 1; }
  .hero h1 { font-size: clamp(3.3rem, 16.5vw, 4.6rem); line-height: 1.02; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-image .fade-img { aspect-ratio: 4 / 3; }

  .facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .facts li { padding: 14px 12px; font-size: 0.88rem; }
  .facts li b { font-size: 1.5rem; }

  .works { margin-inline: 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 44vw; gap: 10px; grid-auto-flow: dense; }
  .t1, .t2, .t3, .t4, .t5, .t6 { grid-column: auto; grid-row: span 1; }
  .t1 { grid-row: span 2; }
  .t2, .t5, .t6 { grid-column: 1 / -1; }
  .t6 { grid-row: span 2; }

  .contact-list li { padding: 12px 14px; grid-template-columns: 40px 1fr; }
  .contact-list .ico { width: 40px; height: 40px; }

  .legal-page .brand-blob { width: min(70vw, 300px); }
  .legal { padding-top: min(60vw, 260px); }
}

/* Rechtstexte ebenfalls kleingeschrieben – wie überall auf der Seite */
.legal { text-transform: lowercase; }

/* sehr kleine / niedrige Handydisplays: Startbildschirm etwas kompakter */
@media (max-width: 720px) and (max-height: 640px) {
  .hero { padding-top: min(34vw, 150px); }
  .brand-blob { width: min(54vw, 250px); }
  .hero h1 { font-size: clamp(2.8rem, 14vw, 3.6rem); }
  .hero .lead { font-size: 1rem; margin: 0.8rem 0 1.2rem; }
  .hero-actions { gap: 8px; }
  .hero-actions .btn { padding: 0.9em 1.3em; }
  .hero-text { padding-bottom: 14px; }
}

/* echte fotos: bildausschnitt, wenn das format im handy anders ist */
.fade-img img.pos-low { object-position: 50% 80%; }
.hero-image .fade-img img { object-position: 50% 6%; }
