/* Ergänzungen für die IONOS-Version von C&N Friedrichs */

/* Auf klassischem IONOS-Webspace immer normale, zuverlässige Seitenwechsel nutzen. */
@view-transition {
  navigation: none;
}

.cn-luxury-intro {
  pointer-events: none;
}

html,
body {
  background: #15130f;
}

.cn-menu-showcase {
  position: relative;
  display: grid;
  overflow: hidden;
  margin-top: clamp(42px, 7vw, 84px);
  margin-bottom: clamp(58px, 8vw, 104px);
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid rgba(218, 177, 82, 0.5);
  border-radius: 28px;
  background:
    radial-gradient(circle at 84% 16%, rgba(225, 187, 98, 0.13), transparent 28%),
    linear-gradient(145deg, #171511, #0d0d0c 68%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.34);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  align-items: center;
  gap: clamp(34px, 6vw, 82px);
}

.cn-menu-showcase::before {
  position: absolute;
  width: 340px;
  height: 340px;
  top: -230px;
  right: -120px;
  border: 1px solid rgba(224, 187, 98, 0.24);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 42px rgba(224, 187, 98, 0.06),
    0 0 0 92px rgba(224, 187, 98, 0.035);
  pointer-events: none;
}

.cn-menu-copy {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.cn-menu-copy h2 {
  max-width: 620px;
  margin: 10px 0 22px;
  color: #f7efe2;
  font-size: clamp(2.25rem, 4.6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.cn-menu-copy > p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
  color: #c7beb0;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.75;
}

.cn-menu-actions {
  display: flex;
  margin-top: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.cn-menu-copy small {
  display: block;
  margin-top: 20px;
  color: #8f8679;
  font-size: 0.78rem;
  line-height: 1.55;
}

.cn-menu-preview {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  max-width: 390px;
  margin-left: auto;
  border: 1px solid rgba(225, 185, 88, 0.62);
  border-radius: 18px;
  background: #eae1d1;
  box-shadow:
    0 28px 65px rgba(0, 0, 0, 0.45),
    0 0 0 7px rgba(232, 198, 117, 0.045);
  color: #f6e5b9;
  transform: rotate(1.2deg);
  transition:
    transform 380ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 380ms ease;
}

.cn-menu-preview:hover,
.cn-menu-preview:focus-visible {
  transform: rotate(0deg) translateY(-7px);
  box-shadow:
    0 38px 80px rgba(0, 0, 0, 0.55),
    0 0 0 8px rgba(232, 198, 117, 0.075);
}

.cn-menu-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.cn-menu-preview span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 9px 13px;
  border: 1px solid rgba(232, 197, 112, 0.36);
  border-radius: 999px;
  background: rgba(13, 12, 10, 0.9);
  backdrop-filter: blur(10px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .cn-menu-showcase {
    grid-template-columns: 1fr;
  }

  .cn-menu-preview {
    width: min(100%, 430px);
    margin: 0 auto;
    transform: none;
  }
}

@media (max-width: 520px) {
  .cn-menu-showcase {
    padding: 24px 18px;
    border-radius: 20px;
  }

  .cn-menu-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cn-menu-actions .button {
    width: 100%;
    justify-content: center;
  }

  .cn-menu-copy h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cn-menu-preview {
    transition: none;
  }
}

/* Mobile Feinoptimierung für die gesamte Website */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 84px;
  }

  body {
    overflow-x: hidden;
  }

  main {
    overflow: hidden;
  }

  .container {
    width: min(100% - 28px, 620px);
  }

  .section {
    padding: clamp(58px, 15vw, 76px) 0;
  }

  h1,
  h2,
  h3,
  p,
  a,
  strong,
  small {
    overflow-wrap: anywhere;
  }

  h2 {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
    line-height: 1.03;
  }

  .site-header,
  .cn-scrolled .site-header {
    background: rgba(9, 8, 7, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .header-inner {
    min-height: 74px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    font-size: 0.96rem;
  }

  .brand-copy small {
    max-width: 178px;
    overflow: hidden;
    font-size: 0.5rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav summary {
    width: 46px;
    height: 46px;
  }

  .mobile-nav nav {
    width: min(330px, calc(100vw - 28px));
    max-height: calc(100svh - 96px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mobile-nav nav a {
    min-height: 50px;
  }

  .button,
  .nav-cta,
  .form-submit {
    min-height: 50px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .video-first .video-copy {
    width: min(100% - 28px, 620px);
    padding-top: 34px;
  }

  .video-first .video-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3.3rem);
  }

  .home-hero {
    min-height: 650px;
  }

  .hero-content {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .hero-content h1 {
    margin-bottom: 24px;
    font-size: clamp(2.85rem, 14vw, 4.2rem);
    line-height: 0.98;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: center;
  }

  .hero-proof {
    display: grid;
    margin-top: 32px;
    gap: 11px;
  }

  .marquee {
    padding: 14px 0;
  }

  .marquee-inner {
    min-height: 0;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
  }

  .marquee-inner span {
    display: inline-flex !important;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid rgba(216, 174, 84, 0.3);
    border-radius: 999px;
    align-items: center;
    color: #e9dfd0;
    background: rgba(216, 174, 84, 0.07);
    font-size: 0.78rem;
    line-height: 1;
    white-space: nowrap;
  }

  .marquee-inner i {
    display: none !important;
  }

  .split-heading,
  .media-split,
  .contact-layout,
  .video-layout,
  .feature-grid,
  .occasion-grid,
  .occasion-grid-four,
  .package-grid,
  .package-grid-four,
  .gallery-grid,
  .cn-region-layout,
  .home-package-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .split-heading,
  .media-split,
  .contact-layout,
  .video-layout,
  .cn-region-layout {
    gap: 34px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .media-frame {
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .media-frame img,
  .tall-frame img {
    min-height: 0;
    object-fit: cover;
  }

  .image-tag {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
    padding: 13px 15px;
    font-size: 0.76rem;
    line-height: 1.4;
  }

  .occasion-grid article,
  .occasion-grid-four article,
  .feature-grid article,
  .value-grid article {
    min-height: 0;
    padding: 32px 24px;
  }

  .occasion-grid article > svg {
    margin-bottom: 25px;
  }

  .home-packages {
    padding: 62px 0;
  }

  .home-packages-head {
    margin-bottom: 34px;
  }

  .home-packages-head .button-outline {
    width: 100%;
    justify-content: center;
  }

  .home-package-card,
  .package-card {
    min-height: 0;
    padding: 28px 22px;
    border-radius: 18px;
  }

  .home-package-price {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .home-package-price strong {
    font-size: clamp(2.55rem, 13vw, 3.4rem);
  }

  .home-business-package,
  .home-business-package div {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-business-package a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .page-hero {
    padding: 66px 0 60px;
  }

  .page-hero h1 {
    margin-bottom: 23px;
    font-size: clamp(2.7rem, 13vw, 4rem);
    line-height: 1;
  }

  .page-hero .lead {
    font-size: 1rem;
    line-height: 1.65;
  }

  .package-card h2 {
    padding-right: 0;
    font-size: clamp(2.3rem, 12vw, 3.1rem);
  }

  .package-badge {
    position: static;
    width: fit-content;
    margin: -8px 0 20px;
  }

  .package-note,
  .drink-note {
    padding: 23px 20px;
  }

  .cocktail-stats article,
  .cocktail-grid article {
    padding: 27px 21px;
  }

  .gallery-item,
  .gallery-wide {
    min-height: 350px;
  }

  .gallery-item figcaption {
    right: 20px;
    bottom: 20px;
    left: 20px;
  }

  .final-cta-card {
    padding: 34px 23px;
    border-radius: 18px;
    gap: 24px;
  }

  .final-cta-card .button {
    width: 100%;
    justify-content: center;
  }

  .cn-signature {
    padding: 68px 0;
  }

  .cn-signature-heading {
    margin-bottom: 38px;
  }

  .cn-signature-heading h2 {
    font-size: clamp(2.45rem, 12vw, 3.6rem);
  }

  .cn-signature-stage {
    gap: 34px;
  }

  .cn-signature-options {
    display: grid;
    margin: 0;
    padding: 0;
    overflow: visible;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .cn-signature-option {
    min-width: 0;
    padding: 14px 9px;
    border: 1px solid rgba(216, 174, 84, 0.2);
    border-radius: 10px;
  }

  .cn-signature-option:hover,
  .cn-signature-option:focus-visible,
  .cn-signature-option.active {
    padding-left: 9px;
  }

  .cn-signature-dial {
    width: min(294px, 82vw);
  }

  .cn-wizard-shell {
    min-height: 0;
  }

  .cn-wizard-heading {
    margin-bottom: 26px;
  }

  .cn-package-recommendation,
  .cn-wizard-summary {
    padding: 21px 18px;
  }

  .cn-wizard-actions {
    margin-top: 28px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    min-height: 54px;
    font-size: 16px;
  }

  .form-card,
  .legal-card {
    padding: 25px 18px;
  }

  .direct-contact a {
    min-width: 0;
  }

  .direct-contact span,
  .direct-contact small {
    min-width: 0;
  }

  .cn-region-cities {
    padding: 21px 17px;
  }

  .footer-grid {
    gap: 34px;
  }

  .footer-bottom {
    align-items: flex-start;
  }

  .cn-whatsapp-float {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .container {
    width: min(100% - 22px, 370px);
  }

  .brand-copy small {
    max-width: 142px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: clamp(2.55rem, 13.5vw, 3.35rem);
  }

  .marquee-inner span {
    padding: 8px 10px;
    font-size: 0.73rem;
  }

  .cn-signature-options {
    grid-template-columns: 1fr;
  }

  .cn-signature-dial {
    width: min(270px, 80vw);
  }
}

.cn-small-business-note {
  margin: 22px 0 0;
  padding: 15px 18px;
  border: 1px solid rgba(224, 188, 103, 0.27);
  border-radius: 12px;
  background: rgba(246, 238, 220, 0.055);
  color: #bdb3a5;
  font-size: 0.82rem;
  line-height: 1.65;
}

.cn-package-tax-note {
  margin: 24px auto 0;
}

.cn-form-status {
  margin: 0 0 24px;
  padding: 15px 17px;
  border: 1px solid rgba(190, 113, 83, 0.45);
  border-radius: 10px;
  background: rgba(190, 113, 83, 0.1);
  color: #7e3428;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.55;
}


/* Lokale MP4: responsiv, hochwertige und barrierearme Playersteuerung */
.video-first .cn-local-video { position: relative; isolation: isolate; }
.video-first .cn-local-video video {
  display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9;
  object-fit: cover; background: #050505;
}
.cn-video-controls {
  position: absolute; z-index: 3; right: clamp(12px, 2.2vw, 32px);
  bottom: clamp(14px, 2.2vw, 30px); display: flex;
  gap: 9px; flex-wrap: wrap; justify-content: flex-end;
}
.cn-video-control {
  appearance: none; min-height: 44px; border-radius: 999px;
  border: 1px solid rgba(243,214,152,.55);
  background: rgba(12,12,11,.83); color: #f8edd4;
  font: 600 13px/1.1 system-ui, sans-serif; cursor: pointer;
  padding: 10px 16px; box-shadow: 0 5px 18px #0008;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(10px);
}
.cn-video-control:hover { background: rgba(46,38,22,.95); transform: translateY(-1px); }
.cn-video-control:focus-visible { outline: 3px solid #f3cc74; outline-offset: 4px; }
.checkbox-row .cn-required-explanation {
  display: block; margin-top: 8px; font-size: .79rem;
  line-height: 1.55; color: var(--muted, #777);
}
@media (max-width: 600px) {
  .cn-video-controls { right: 10px; bottom: 10px; gap: 6px; }
  .cn-video-control { min-height: 44px; font-size: 12px; padding: 9px 11px; }
}


/* HOTFIX 21.10: Video-Steuerung dauerhaft bedienbar und nicht bei WhatsApp */
.video-first .cn-local-video .cn-video-controls {
  z-index: 20;
  right: auto;
  left: clamp(14px, 2.5vw, 32px);
  bottom: clamp(14px, 2.2vw, 30px);
  width: max-content;
  max-width: calc(100% - 110px);
  justify-content: flex-start;
  pointer-events: auto;
}
.video-first .cn-local-video .cn-video-control {
  position: relative;
  z-index: 21;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cn-whatsapp-float { z-index: 1400; }
@media (max-width: 600px) {
  .video-first .cn-local-video .cn-video-controls {
    left: 10px;
    right: auto;
    bottom: 10px;
    max-width: calc(100% - 75px);
    flex-wrap: nowrap;
    gap: 6px;
  }
  .video-first .cn-local-video .cn-video-control {
    min-height: 42px;
    font-size: 11px;
    padding: 8px 10px;
  }
  /* Am Smartphone nimmt WhatsApp nicht mehr die ganze untere Bildschirmbreite ein. */
  .cn-whatsapp-float {
    width: 58px;
    height: 58px;
    min-height: 58px;
    padding: 8px;
    justify-content: center;
    border-radius: 50%;
  }
  .cn-whatsapp-float svg { width: 40px; height: 40px; flex: 0 0 40px; }
  .cn-whatsapp-float span { display: none; }
}

/* Edles, 3,2 s langes C&N-Logo-Intro ohne Sitzungsspeicher. */
.cn-luxury-intro.cn-intro-extended {
  z-index: 3000;
  pointer-events: auto;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse at 50% 48%, #342816 0%, #14110b 44%, #070706 78%);
  transition: opacity 720ms ease, visibility 720ms ease;
}
.cn-luxury-intro.cn-intro-extended .cn-luxury-intro-mark {
  width: min(90vw, 560px);
  align-items: center;
  text-align: center;
  animation: cn-intro-rich-enter 1450ms cubic-bezier(.2, 1, .35, 1) both;
}
.cn-intro-logo {
  display: block;
  width: clamp(180px, 46vw, 350px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 10px 48px rgba(237, 177, 75, .2));
}
.cn-intro-tagline {
  margin-top: 10px;
  color: #e8cf92;
  font: 500 clamp(.63rem, 1.1vw, .82rem)/1.5 system-ui, sans-serif;
  letter-spacing: clamp(.11em, .45vw, .28em);
}
.cn-luxury-intro.cn-intro-extended .cn-luxury-intro-mark i {
  display: block;
  width: min(180px, 48vw);
  height: 1px;
  margin-top: 25px;
  background: linear-gradient(90deg, transparent, #f6d68c, transparent);
  animation: cn-intro-line 1400ms 350ms both;
}
.cn-intro-skip {
  position: absolute;
  bottom: calc(30px + env(safe-area-inset-bottom));
  right: clamp(24px, 4vw, 70px);
  z-index: 1;
  padding: 12px 16px;
  border: 1px solid rgba(233, 202, 138, .3);
  border-radius: 99px;
  background: rgba(16, 14, 10, .65);
  color: #e4cf9e;
  font: 500 13px/1.2 system-ui, sans-serif;
  letter-spacing: .03em;
  cursor: pointer;
}
.cn-intro-skip:focus-visible { outline: 3px solid #f5d37e; outline-offset: 3px; }
@keyframes cn-intro-rich-enter {
  from { opacity: 0; transform: translateY(18px) scale(.9); filter: blur(16px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  .cn-luxury-intro.cn-intro-extended { display: none; }
}
