/*
Theme Name: DuSucre Main
Theme URI: https://dusucre.de/
Author: Perplexity
Description: Editorial Luxury Onepage-Theme für die DuSucre-Unternehmenshauptseite.
Version: 1.3
Text Domain: dusucre-main
*/

:root {
  --bg: #fdfaf7;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-soft: #f7eee8;
  --mint: #dfe9df;
  --rose: #ead1d8;
  --rose-deep: #ba8395;
  --gold: #d2b280;
  --text: #2c2320;
  --muted: #786963;
  --line: rgba(115, 95, 86, 0.14);
  --shadow: 0 18px 42px rgba(61, 37, 31, 0.07);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
  --container: 1220px;

  /* Header-Höhen / Abstände */
  --header-offset-desktop: 178px;
  --header-offset-tablet: 138px;
  --header-offset-mobile: 124px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  line-height: 1.72;
  background:
    radial-gradient(circle at 15% 12%, rgba(234, 209, 216, 0.34), transparent 24%),
    radial-gradient(circle at 88% 10%, rgba(223, 233, 223, 0.34), transparent 20%),
    linear-gradient(180deg, #fffdfa 0%, var(--bg) 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(246, 242, 238, 0.96);
  border-bottom: 1px solid rgba(106, 90, 73, 0.1);
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("https://patisserie.dusucre.de/wp-content/uploads/2026/05/snippet.png");
  background-repeat: repeat-x;
  background-size: contain;
  background-position: top center;
  opacity: 1;
}

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--rose-deep), var(--gold));
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 30px;
  box-shadow: var(--shadow);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-copy strong {
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--rose-deep);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 30;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero / Startseite */

.hero {
  padding: 76px 0 78px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 38px;
  align-items: center;
}

.hero-copy {
  padding: clamp(8px, 2vw, 18px) 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 22px;
  max-width: 11ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 4.6vw, 5.2rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0;
  max-width: 46ch;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-deep), #c693a2);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-image-card {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(115, 95, 86, 0.1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-image-card img {
  width: 100%;
  height: 100%;
  min-height: 760px;
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(115, 95, 86, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
}

.hero-caption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

.hero-caption span {
  color: var(--muted);
}

/* Allgemeine Sektionen */

.section {
  padding: 30px 0 110px;
}

.narrow {
  max-width: 760px;
}

.center-block {
  margin: 0 auto;
  text-align: center;
}

.kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 18px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 6vw, 70px);
  line-height: 0.94;
}

.section-text {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.split-editorial {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
  align-items: center;
}

.image-panel,
.copy-panel,
.product-panel,
.contact-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.copy-panel,
.product-panel,
.contact-panel {
  padding: clamp(28px, 4vw, 46px);
}

.copy-panel p,
.product-panel p,
.contact-panel p {
  color: var(--muted);
}

.copy-panel h3,
.product-panel h3,
.contact-panel h3 {
  margin: 0 0 14px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

.product-panel {
  position: relative;
}

.product-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--rose-deep), var(--gold), var(--mint));
}

.tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(234, 209, 216, 0.34);
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.notice {
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid rgba(115, 95, 86, 0.1);
  border-radius: 20px;
  color: var(--text);
  background: linear-gradient(180deg, rgba(247, 238, 232, 0.9), rgba(223, 233, 223, 0.55));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 34px;
}

.contact-panel ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.contact-panel li + li {
  margin-top: 8px;
}

/* Footer */

.site-footer {
  padding: 28px 0 44px;
  border-top: 1px solid rgba(115, 95, 86, 0.08);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Unterseiten: kein Header-Overlap */
body.page:not(.home):not(.blog):not(.error404) main,
body.page:not(.home):not(.blog):not(.error404) .site-main,
body.page:not(.home):not(.blog):not(.error404) #content,
body.page:not(.home):not(.blog):not(.error404) .content-area {
  padding-top: var(--header-offset-desktop);
}

body.page:not(.home):not(.blog):not(.error404) article,
body.page:not(.home):not(.blog):not(.error404) .entry-content,
body.page:not(.home):not(.blog):not(.error404) .wp-block-post-content {
  position: relative;
  z-index: 1;
}

body.page:not(.home):not(.blog):not(.error404) h1.entry-title,
body.page:not(.home):not(.blog):not(.error404) .page-title,
body.page:not(.home):not(.blog):not(.error404) .wp-block-post-title,
body.page:not(.home):not(.blog):not(.error404) main h1:first-child {
  display: block !important;
  margin: 0 0 24px !important;
  padding-top: 0 !important;
  position: relative;
  z-index: 2;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  color: var(--text);
  text-align: left;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  line-height: 1.02;
}

body.page:not(.home):not(.blog):not(.error404) .entry-header,
body.page:not(.home):not(.blog):not(.error404) .page-header,
body.page:not(.home):not(.blog):not(.error404) .wp-block-group:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Responsive */

@media (max-width: 1100px) {
  .hero-wrap,
  .split-editorial,
  .product-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-image-card,
  .hero-image-card img {
    min-height: 520px;
  }

  .image-panel img {
    min-height: 420px;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    z-index: 25;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 12px 8px;
    font-size: 14px;
    border-bottom: 1px solid rgba(115, 95, 86, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

  .site-header {
    overflow: visible;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-copy {
    padding-top: 88px;
  }

  .hero h1 {
    max-width: none;
    margin-top: 10px;
    position: relative;
    z-index: 2;
    font-size: clamp(44px, 14vw, 72px);
  }

  .section-title {
    font-size: clamp(34px, 10vw, 52px);
  }

  .hero p,
  .section-text {
    font-size: 17px;
  }

  #b2b {
    padding-bottom: 0;
  }

  #b2b .split-editorial {
    gap: 18px;
  }

  #b2b .image-panel {
    min-height: 0;
    box-shadow: none;
  }

  #b2b .image-panel img {
    min-height: 0;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  #kontakt {
    padding-top: 0;
    margin-top: 0;
  }

  #kontakt .contact-grid {
    margin-top: 20px;
  }

  body.page:not(.home):not(.blog):not(.error404) main,
  body.page:not(.home):not(.blog):not(.error404) .site-main,
  body.page:not(.home):not(.blog):not(.error404) #content,
  body.page:not(.home):not(.blog):not(.error404) .content-area {
    padding-top: var(--header-offset-tablet);
  }

  body.page:not(.home):not(.blog):not(.error404) h1.entry-title,
  body.page:not(.home):not(.blog):not(.error404) .page-title,
  body.page:not(.home):not(.blog):not(.error404) .wp-block-post-title,
  body.page:not(.home):not(.blog):not(.error404) main h1:first-child {
    font-size: clamp(2.1rem, 7vw, 3rem);
    margin-bottom: 18px !important;
  }
}

@media (max-width: 520px) {
  .btn {
    width: 100%;
  }

  .hero-image-card,
  .hero-image-card img {
    min-height: 360px;
  }

  .hero-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .copy-panel,
  .product-panel,
  .contact-panel {
    padding: 24px;
  }

  .section {
    padding: 22px 0 72px;
  }

  .product-grid,
  .contact-grid {
    gap: 18px;
  }

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

  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  body.page:not(.home):not(.blog):not(.error404) main,
  body.page:not(.home):not(.blog):not(.error404) .site-main,
  body.page:not(.home):not(.blog):not(.error404) #content,
  body.page:not(.home):not(.blog):not(.error404) .content-area {
    padding-top: var(--header-offset-mobile);
  }

  body.page:not(.home):not(.blog):not(.error404) h1.entry-title,
  body.page:not(.home):not(.blog):not(.error404) .page-title,
  body.page:not(.home):not(.blog):not(.error404) .wp-block-post-title,
  body.page:not(.home):not(.blog):not(.error404) main h1:first-child {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }
}
/* =================================
   KI-Info-Icon auf Bildern
   Ergänzung für duSucre.de
================================= */

.ki-info-wrap {
  position: relative !important;
  display: inline-block !important;
  max-width: 100% !important;
  line-height: 0 !important;
  overflow: visible !important;
}

.ki-info-wrap img {
  display: block !important;
}

.ki-info-icon {
  position: absolute !important;
  right: 10px !important;
  bottom: 10px !important;
  z-index: 20 !important;

  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: rgba(255, 255, 255, 0.92) !important;
  color: #4a3b32 !important;

  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;

  box-shadow: 0 4px 12px rgba(45, 34, 28, 0.16) !important;
  cursor: help !important;
}

.ki-info-box {
  position: absolute !important;
  right: 10px !important;
  bottom: 42px !important;
  z-index: 21 !important;

  width: 178px !important;
  padding: 9px 11px !important;
  border-radius: 12px !important;

  background: rgba(255, 255, 255, 0.96) !important;
  color: #4a3b32 !important;

  font-family: "Manrope", Arial, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-align: left !important;

  box-shadow: 0 8px 24px rgba(45, 34, 28, 0.16) !important;

  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(8px) !important;
  pointer-events: none !important;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease !important;
}

.ki-info-wrap:hover .ki-info-box,
.ki-info-wrap:focus-within .ki-info-box {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Header, Navigation und Footer nie verändern */
.site-header .ki-info-wrap,
.site-header .ki-info-icon,
.site-header .ki-info-box,
.site-footer .ki-info-wrap,
.site-footer .ki-info-icon,
.site-footer .ki-info-box,
.nav-links .ki-info-wrap,
.nav-links .ki-info-icon,
.nav-links .ki-info-box,
.brand .ki-info-wrap,
.brand .ki-info-icon,
.brand .ki-info-box {
  display: none !important;
}

/* Bildkarten auf der Startseite sauber füllen */
.hero-image-card > .ki-info-wrap,
.image-panel > .ki-info-wrap {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.hero-image-card > .ki-info-wrap > img,
.image-panel > .ki-info-wrap > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.hero-image-card > .ki-info-wrap > img {
  min-height: 760px !important;
}

.image-panel > .ki-info-wrap > img {
  min-height: 560px !important;
}

/* Mobile Bildhöhen beibehalten */
@media (max-width: 1100px) {
  .hero-image-card > .ki-info-wrap > img {
    min-height: 520px !important;
  }

  .image-panel > .ki-info-wrap > img {
    min-height: 420px !important;
  }
}

@media (max-width: 820px) {
  #b2b .image-panel > .ki-info-wrap > img {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
  }
}

@media (max-width: 520px) {
  .hero-image-card > .ki-info-wrap > img {
    min-height: 360px !important;
  }

  .ki-info-icon {
    right: 8px !important;
    bottom: 8px !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
  }

  .ki-info-box {
    right: 8px !important;
    bottom: 36px !important;
    width: 154px !important;
    font-size: 10px !important;
  }
}
