/* ===========
   Basis-Design
   =========== */

   :root {
    --bg-page: #f6f1e8;
    --bg-panel: #fdfaf4;
    --accent: #c9a15a;
    --accent-soft: #e1c993;
    --accent-dark: #040404;
    --text-main: #151515;
    --text-muted: #666666;
    --border-soft: rgba(0, 0, 0, 0.06);
    --slideshow-offset-x: 70px;
    --slideshow-offset-y: 20px;
  
    --fs-base: 16px;
  
    /* Desktop Controls */
    --logo-size: clamp(1rem, 0.5vw, 6rem);
    --logo-offset-x: 175px;
    --logo-offset-y: 55px;
  
    --signature-width: 400px;
    --signature-offset-x: -50%;
    --signature-offset-y: -35%;
  
    --subtitle-size: 0.8rem;
    --subtitle-offset-x: 0px;
    --subtitle-offset-y: 45px;
  
    /* Mobile Controls */
    --logo-size-mobile: 0.75rem;
    --logo-offset-x-mobile: 115px;
    --logo-offset-y-mobile: 50px;
  
    --signature-width-mobile: 280px;
    --signature-offset-x-mobile: -55%;
    --signature-offset-y-mobile: -30%;
  
    --subtitle-size-mobile: 0.5rem;
    --subtitle-offset-x-mobile: 5px;
    --subtitle-offset-y-mobile: 2px;
  
    /* Buchstaben Animation Tuning */
    --char-stagger: 0.045s;
    --char-duration: 0.32s;
    --char-shift: 10px;
  
    /* ✅ Slideshow kompakt Controls */
    --slideshow-max-width: 250px;
    --slideshow-aspect: 3.2 / 4;
  }
  
  html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden; /* verhindert seitliches "Verschieben" */
  }
  
  html {
    scroll-behavior: smooth;
  }
  
  @font-face {
    font-family: "AnticDidone";
    src: url("fonts/AnticDidone-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
  }
  
  *,
  *::before,
  *::after { box-sizing: border-box; }
  
  body {
    margin: 0;
    font-family: "AnticDidone", serif;
    font-size: var(--fs-base);
    background: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
  }
  
  /* ===========
     Overlay
     =========== */
  
  .intro-overlay {
    position: fixed;
    inset: 0;
    /* ✅ dunklerer grauer Hintergrund */
    background: rgba(0,0,0,0.40);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.8s ease;
  }
  
  .intro-overlay.hidden {
    opacity: 0;
    pointer-events: none;
  }
  
  /* ✅ Fullscreen Overlay-Content (kein kleiner Kasten mehr) */
  .intro-box.intro-box-elegant {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 3.2rem;
    border-radius: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    color: #f5f5f5;
  
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* ✅ Smoke-in Animation */
  @keyframes introSmokeIn {
    0%   { opacity: 0; transform: translateY(10px); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0);  filter: blur(0); }
  }
  
  /* THERE   IS   MORE */
  .intro-headline{
    display: flex;
    justify-content: center;
    gap: 7rem;
    margin: 0;
  
    text-transform: uppercase;
    letter-spacing: 0.9em;
    font-size: 1.2rem;
    color: rgba(245,245,245,0.95);
  
    text-shadow: 0 20px 60px rgba(0,0,0,0.6);
    user-select: none;
  
    /* ✅ Animation */
    opacity: 0;
    animation: introSmokeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.15s;
  }
  
  /* ✅ JOIN MY NEW CHAPTER – gleiche Typo wie Headline, unten rechts */
  .enter-btn.enter-btn-overlay{
    position: absolute;
    right: 2.4rem;
    bottom: 2.2rem;
  
    background: transparent;
    border: none;
    padding: 0;
  
    font-family: inherit;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 1.2rem;
    color: rgba(245,245,245,0.90);
    cursor: pointer;
  
    transition: opacity 0.25s ease, transform 0.25s ease;
  
    /* ✅ Animation (minimal später als Headline) */
    opacity: 0;
    animation: introSmokeIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.28s;
  }
  
  .enter-btn.enter-btn-overlay:hover{
    opacity: 1;
    transform: translateY(-1px);
  }
  
  /* ===========
     Main Page Smoke-In
     =========== */
  
  .main-page { min-height: 100vh; }
  
  @keyframes smokeIn {
    0% { opacity: 0; filter: blur(12px); transform: translateY(20px) scale(1.01); }
    100% { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
  }
  
  .main-page.smoke-in {
    animation: smokeIn 0.6s ease-out forwards;
  }
  
  /* ===========
     Sections
     =========== */
  
  .section {
    padding: 4rem 1.5rem;
    background: #f6f1e8;
  }
  
  .section-inner {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  h1, h2, h3 { text-align: center; }
  
  p { margin: 0 0 1rem; color: var(--text-muted); }
  
  /* ===========
     HERO
     =========== */
  
  .hero {
    padding: 4rem 1.5rem 4.5rem;
    background: #f6f1e8;
  }
  
  .hero-inner {
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .hero-left{
    transform: translate(var(--slideshow-offset-x), var(--slideshow-offset-y));
  }
  
  .hero-glass {
    width: 100%;
    padding: 4.5rem 2rem;
    min-height: 560px;
    border-radius: 2rem;
    background: rgba(250,247,240,0.65);
    box-shadow:
      0 35px 80px rgba(0,0,0,0.12),
      0 10px 30px rgba(0,0,0,0.06);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }
  
  /* Header */
  .hero-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
  }
  
  /* Logo + Signatur Stack */
  .logo-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 0.6rem;
  }
  
  /* LOGO */
  .logo-mark {
    position: relative;
    z-index: 2;
    font-size: var(--logo-size);
    letter-spacing: 0.5em;
    transform: translate(var(--logo-offset-x), var(--logo-offset-y));
    will-change: transform;
  }
  
  .logo-benedict { color: #000; }
  .logo-dot { color: #000; }
  .logo-kerbl { color: var(--accent-dark); }
  
  /* Signatur */
  .signature {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(var(--signature-offset-x), var(--signature-offset-y));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }
  
  .signature.visible { opacity: 1; }
  
  .signature-image {
    width: var(--signature-width);
    height: auto;
    display: block;
  }
  
  /* Subtitle */
  .site-subtitle {
    margin-top: 5rem;
    font-size: var(--subtitle-size);
    letter-spacing: 0.5em;
    text-transform: uppercase;
    color: var(--accent-dark);
    transform: translate(var(--subtitle-offset-x), var(--subtitle-offset-y));
  }
  
  /* Letter Reveal */
  .logo-mark .char {
    display: inline-block;
    opacity: 0;
    transform: translateX(calc(-1 * var(--char-shift)));
    will-change: transform, opacity;
  }
  
  .main-page.logo-started .logo-mark .char {
    animation: charIn var(--char-duration) cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(var(--i) * var(--char-stagger));
  }
  
  @keyframes charIn {
    to { opacity: 1; transform: translateX(0); }
  }
  
  /* Layout */
  .hero-layout {
    display: grid;
    grid-template-columns: 0.6fr 1fr;
    gap: 4.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
  }
  
  /* ✅ Slideshow kompakt */
  .hero-slideshow {
    position: relative;
    max-width: var(--slideshow-max-width);
    width: 100%;
    aspect-ratio: var(--slideshow-aspect);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: #e7dfd0;
  }
  
  .hero-slideshow .slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
  }
  
  .hero-slideshow .slide.active {
    opacity: 1;
    position: relative;
  }
  
  .hero-slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  
  /* Arrows (Hero Slideshow) */
  .slide-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    border: none;
    background: rgba(0,0,0,0.35);
    color: #fdfaf4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.3rem;
    z-index: 3;
  
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.1s ease;
  }
  
  .hero-slideshow:hover .slide-control {
    opacity: 1;
    pointer-events: auto;
  }
  
  .slide-control.prev { left: 0.75rem; }
  .slide-control.next { right: 0.75rem; }
  
  .slide-control:hover {
    background: rgba(0,0,0,0.55);
    transform: translateY(-50%) scale(1.05);
  }
  
  /* Text + Buttons */
  .hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: 0.5rem;
    max-width: 36rem;
  }
  
  .hero-text p { text-align: left; }
  
  .hero-buttons {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
  }
  
  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1.4rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  }
  
  .btn.primary {
    background: #e9e1d0;
    color: #3b3528;
    border: 1px solid #d4c8b0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  }
  
  .btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
    background: #f0e8d7;
  }
  
  .btn.secondary {
    background: transparent;
    border-color: rgba(0,0,0,0.4);
    color: #222;
  }
  
  .btn.secondary:hover { background: rgba(0,0,0,0.03); }
  
  /* About */
  .about { background: #f6f1e8; }
  
  .about-content {
    display: grid;
    grid-template-columns: 0.75fr 1.5fr;
    gap: 4rem;
    align-items: start;
  }
  
  .about-image { max-width: 420px; }
  
  .about-image img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid rgba(0,0,0,0.15);
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    display: block;
  }
  
  .about-text {
    padding-left: 3rem;
    max-width: 33rem;
  }
  
  .about-text h2 {
    text-align: left;
    margin-bottom: 2rem;
  }
  
  .about-text p {
    text-align: justify;
    margin: 0;
  }
  
  /* ---- ALT (deaktiviert): falls du noch .about-text-slider/.about-arrow im HTML hast ---- */
  .about-text-slider { position: relative; max-width: 33rem; }
  .about-slides { position: relative; overflow: hidden; }
  .about-slide { display: none; max-height: 420px; overflow: auto; padding-right: 0.5rem; }
  .about-slide.active { display: block; }
  
  /* Alte Pfeile neutralisieren (damit nix doppelt wirkt) */
  .about-arrow { display: none; }
  
  /* ==========================
     About Text Swipe / Pages
     ========================== */
  
  .about-carousel {
    position: relative;
  }
  
  /* Sichtfenster (wichtig: clippt Pfeile/Track gegen Overflow) */
  .about-viewport {
    overflow: hidden;
    position: relative;
  }
  
  /* Track mit Seiten */
  .about-track {
    display: flex;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }
  
  /* Jede Seite nimmt genau die Breite des Viewports ein */
  .about-page {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  /* ===== About Pfeile: SCHLICHT / IMMER KLICKBAR ===== */
  .about-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: rgba(0,0,0,10.0);
    font-size: 30px;
    line-height: 1;
    padding: 0;
    width: auto;
    height: auto;
    cursor: pointer;
    z-index: 50;
  
    opacity: 5;
    pointer-events: auto;
    transition: opacity 0.88s ease, color 0.90s ease, transform 0.2s ease;
  }
  
  /* außerhalb platzieren (Desktop) */
  .about-prev { left: -2.5rem; }
  .about-next { right: -2.5rem; }
  
  .about-nav:hover {
    opacity: 1;
    color: rgba(0,0,0,0.65);
    transform: translateY(-50%) scale(1.06);
  }
  
  /* Wenn am Rand: deaktiviert */
  .about-nav.is-disabled {
    opacity: 0.18 !important;
    pointer-events: none !important;
  }
  
  /* Mobile: innen platzieren */
  @media (max-width: 900px) {
    .about-prev { left: -1.2rem; }
    .about-next { right: -1.2rem; }
    .about-nav  { font-size: 40px; opacity: 0.5; }
  }
  
  /* Gallery */
  .gallery {
    background: #f8f3ea;
    border-top: 4px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
  
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease-out 0.15s, transform 0.8s ease-out 0.15s;
  }
  
  .gallery.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  .section-description {
    margin-bottom: 2.2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  .art-grid {
    display: grid;
    gap: 2.2rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  
  .art-image-wrapper {
    overflow: hidden;
    background: #e7dfd0;
    aspect-ratio: 4 / 5;
  }
  
  .art-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
  }
  
  .art-card:hover .art-image-wrapper img { transform: scale(1.04); }
  
  .art-caption {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.9rem;
  }
  
  .art-title { font-weight: 600; color: var(--text-main); }
  .art-meta { font-size: 0.85rem; color: #7a7468; }
  .art-note { font-size: 0.8rem; color: var(--accent-dark); text-transform: uppercase; letter-spacing: 0.12em; }
  
  /* Coming Soon + Footer */
  .coming-soon {
    background: #f6f1e8;
    text-align: center;
  }
  
  .coming-soon p {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .coming-soon-note {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    color: var(--text-main);
  }
  
  .footer {
    padding: 2rem 1.5rem 2.6rem;
    border-top: 1px solid var(--border-soft);
    background: #ece1d3;
  }
  
  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
  }
  
  .footer-small {
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  .footer-links {
    margin-top: 0.6rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.75rem;
  }
  
  .footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .footer-links a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
  }
  
  .footer-sep {
    color: var(--text-muted);
  }
  
  /* ==========================
     Legal Pages (Impressum / Datenschutz)
     ========================== */
  
  .legal-page h2,
  .legal-page h3,
  .legal-page p,
  .legal-page ul,
  .legal-page li {
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .legal-page .impressum-title {
    text-align: center;
  }
  
  /* ======================
     Footer Kontakt – clean icons
     ====================== */
  
  .footer-contact {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
  }
  
  .contact-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }
  
  .contact-item svg {
    width: 14px;
    height: 14px;
    fill: var(--text-muted);
    opacity: 0.7;
  }
  
  .footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
  }
  
  .footer-contact a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
  }
  
  /* ======================
     Instagram Follow Icon
     ====================== */
  
  .instagram-follow {
    margin-top: 1.4rem;
    display: flex;
    justify-content: center;
  }
  
  .instagram-follow a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .instagram-icon {
    width: 28px;
    height: 28px;
    fill: var(--text-muted);
    opacity: 0.85;
    animation: instaPulse 2.6s ease-in-out infinite;
    transition: fill 0.25s ease, transform 0.25s ease;
  }
  
  .instagram-follow a:hover .instagram-icon {
    fill: var(--accent-dark);
    transform: scale(1.05);
  }
  
  @keyframes instaPulse {
    0% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.08); opacity: 1; }
    100% { transform: scale(1); opacity: 0.75; }
  }
  
  .ig-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.35);
    transition: transform 0.2s ease, border-color 0.2s ease;
    animation: igPulse 1.6s ease-in-out infinite;
  }
  
  .ig-link:hover {
    transform: translateY(-1px);
    border-color: rgba(0,0,0,0.18);
    color: var(--accent-dark);
  }
  
  .ig-icon {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
  }
  
  @keyframes igPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .hero-glass { padding: 2.4rem 1.8rem; gap: 2.4rem; min-height: auto; }
    .hero-layout { grid-template-columns: 1fr; gap: 2.2rem; }
    .hero-text { align-items: center; text-align: center; padding-left: 0; }
    .hero-text p { text-align: center; }
    .hero-buttons { justify-content: center; }
    .about-content { grid-template-columns: 1fr; }
    .about-image { margin: 0 auto; max-width: 320px; }
    .about-text { padding-left: 0; max-width: 100%; }
  
    /* ✅ auf Tablets darf die Slideshow etwas größer sein */
    .hero-slideshow { max-width: 420px; }
  }
  
  @media (max-width: 600px) {
    .section { padding: 3.2rem 1.2rem; }
    .hero { padding: 3.5rem 1.2rem 2.8rem; }
    .hero-glass { padding: 2rem 1.4rem; }
    .hero-left { transform: translate(60px, 0.5px); }
  
    /* Mobile Logo/Subtitle Tuning */
    :root {
      --char-duration: 0.45s;
      --char-stagger: 0.07s;
    }
  
    .logo-mark {
      font-size: var(--logo-size-mobile);
      transform: translate(var(--logo-offset-x-mobile), var(--logo-offset-y-mobile));
    }
  
    .signature {
      transform: translate(var(--signature-offset-x-mobile), var(--signature-offset-y-mobile));
    }
  
    .signature-image { width: var(--signature-width-mobile); }
  
    .site-subtitle {
      font-size: var(--subtitle-size-mobile);
      transform: translate(var(--subtitle-offset-x-mobile), var(--subtitle-offset-y-mobile));
    }
  
    .footer-contact {
      flex-direction: column;
      gap: 0.4rem;
    }
  
    /* ✅ Mobile: Slideshow wieder breiter, aber nicht riesig */
    .hero-slideshow { max-width: 180px; }
  
    /* ✅ Overlay Mobile: engerer Abstand + kleinere Schrift */
    .intro-headline{
      gap: 1.9rem;
      font-size: 1.02rem;
      letter-spacing: 0.26em;
    }
  
    .enter-btn.enter-btn-overlay{
      font-size: 1.02rem;
      letter-spacing: 0.26em;
      right: 1.4rem;
      bottom: 1.4rem;
    }
  }


/* =========================================
   iPad / iOS Safari Portrait FIX
   - affects iPad portrait only (no desktop/laptop change)
   ========================================= */

@media (max-width: 1024px) and (orientation: portrait) {
  .hero-left{
    transform: translate(0, 0);
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .hero-text {
    max-width: 100%;
    padding-left: 0;
    align-items: center;
    text-align: center;
  }

  .hero-text p {
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-slideshow {
    max-width: 420px;
    margin: 0 auto;
  }
}


/* =========================================
   iOS / iPad Safari: backdrop-filter + border-radius corner fix
   - fixes unfilled/pointy corners (no desktop/laptop change)
   ========================================= */

@supports (-webkit-touch-callout: none) {
  .hero-glass {
    overflow: hidden;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    background-clip: padding-box;
  }
}

/* =========================================
   CTA Pulse – JOIN MY NEW CHAPTER
   subtle & elegant
   ========================================= */

@keyframes ctaPulse {
  0% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-1px);
  }
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
}

.enter-btn.enter-btn-overlay {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@media (max-width: 1024px) and (orientation: portrait) {
  .logo-stack {
    transform: scale(0.79) translateY(20px);
  }
}
