/* =========================== WEBFONTS =========================== */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Corinthia";
  src: url("../fonts/corinthia/Corinthia-Regular.ttf") format("truetype");
}

/* =========================== BASE COLORS =========================== */
:root {
  --bordeaux: 76 69 82;
  --gold: 225 214 189;
  --bg: 245 242 238;
  --text: 42 42 42;
  --muted: 120 118 122;
  --card-bg: 255 252 248;

  /* EINHEITLICHES SPACING + SCROLL OFFSET */
  --section-space: 50px;
  --sticky-offset: 95px;
  --sticky-gap: -20px;

  /* EINHEITLICHE CONTENT-BREITE */
  --content-max: 1200px;
  --content-pad: 24px;
}

html, body { overflow-x: hidden; }

body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--text));
  font-family: "Inter", sans-serif;
}

/* Einheitlicher Content-Wrapper (ersetzt Container-Hacks) */
.content-wrap{
  width: min(var(--content-max), calc(100% - (var(--content-pad) * 2)));
  margin-inline: auto;
}

/* Offcanvas Farben */
.offcanvas {
  background: rgb(var(--bordeaux));
  color: rgb(var(--gold));
}
.offcanvas-title {
  color: rgb(var(--gold));
  font-weight: 600;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mobile-menu-list li + li { margin-top: 14px; }
.mobile-menu-list a {
  color: rgb(var(--gold));
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
}
.mobile-menu-list a:hover { text-decoration: underline; }

/* =========================== STICKY HEADER =========================== */
#stickyHeader {
  position: fixed;
  top: 0;
  width: 100%;
  height: clamp(55px, 7vw, 90px);
  background-color: rgb(var(--bordeaux));
  color: rgb(var(--gold));
  text-align: center;
  opacity: 0;
  transform: translateY(-25px);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.45s ease;
  z-index: 2000;
  display: block;
}
#stickyHeader.visible {
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
.sticky-title {
  font-family: "Corinthia", cursive;
  font-size: clamp(40px, 5.5vw, 78px);
  line-height: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-decoration: none;
  color: rgb(var(--gold));
  cursor: pointer;
}

/* =========================== HERO FULL WIDTH =========================== */
#hero {
  padding-top: 0 !important;
  margin-top: 0 !important;
  width: 100%;
}

/* =========================== FULL-WIDTH TITLE BAR =========================== */
.hero-title-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 25px 0;
  background: rgb(var(--bordeaux));
  margin-bottom: var(--section-space);
}
.big-atelier {
  font-family: "Corinthia", cursive;
  font-size: 200px;
  line-height: 180px;
  color: rgb(var(--gold));
  white-space: nowrap;
}
.hero-subtitle {
  font-size: 22px;
  color: rgb(var(--gold));
  margin-top: -10px;
}

/* ===========================
   EINHEITLICHES SECTION SPACING
   =========================== */
#services,
#about,
#dienstleistungen,
#gallery,
#contact{
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
  margin: 0 !important;
}

/* erste Section nach Hero soll direkt anschliessen */
#services{ padding-top: 0; }

/* Titel-Block überall gleich */
section .text-center.mb-4{ margin-bottom: 1rem !important; }

/* Scrollziel: Titel landet unter Sticky Header */
section[id]{
  scroll-margin-top: calc(var(--sticky-offset) + var(--sticky-gap));
}

/* Sticky auf kleinen Phones ist tiefer -> offset kleiner */
@media (max-width: 460px){
  :root{ --sticky-offset: 75px; }
}

/* =========================== SERVICES =========================== */
.card {
  background: rgb(var(--card-bg));
  border-radius: 0.5rem;
  border: none;
}
.card-img-top {
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
  border-radius: 0.5rem 0.5rem 0 0;
}

/* Services: Titel zentrieren */
#services .card-title{
  text-align: center;
}

#services .card-text{
  text-align: center;
}

@media (max-width: 991px){
  #services .card-img-top{
    height: 300px;
    aspect-ratio: auto;  /* wichtig, sonst fightet aspect-ratio gegen height */
  }
}

@media (max-width: 575px){
  #services .card-img-top{
    height: 180px;
  }
}
.service-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* =========================== ÜBER UNS =========================== */
.profile-image {
  width: 100%;            /* <— jetzt immer exakt Content-Breite */
  display: block;
  margin: 0 auto;
}
.profile-image--join {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}
.about-card {
  width: 100%;            /* <— jetzt immer exakt Content-Breite */
  margin-inline: auto;
}
.about-title { margin-bottom: 0; }
.about-card--join {
  margin-top: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}
.about-signature { margin-top: 10px; }

/* Über uns: Text im Card-Body zentrieren */
#about .about-card .card-body{
  text-align: center;
}

/* Optional: Listen/andere Elemente bleiben normal, falls später mal nötig */
#about .about-card .card-body ul,
#about .about-card .card-body ol{
  text-align: left;
  margin-inline: auto;
}


/* ===========================
   DIENSTLEISTUNGEN: ACCORDION LOOK
   =========================== */
#dienstleistungen .accordion-item { border: none; }

#dienstleistungen .accordion-button {
  background: transparent;
  color: rgb(var(--gold));
  padding: 0;
  box-shadow: none;
}

#dienstleistungen .service-toggle{
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  color: rgb(var(--gold));
  padding: 18px 44px 10px 18px;
  position: relative;
}

#dienstleistungen .service-toggle::after{
  position: absolute;
  right: 16px;
  top: 22px;
  filter: invert(93%) sepia(12%) saturate(350%) hue-rotate(10deg) brightness(105%) contrast(95%);
}

#dienstleistungen .accordion-button:focus{ box-shadow: none; }
#dienstleistungen .accordion-button:not(.collapsed){
  background: transparent;
  color: rgb(var(--gold));
}

#dienstleistungen .service-body{ padding: 0 18px 12px 18px; }

#dienstleistungen .service-box{
  position: relative;
  background: rgb(var(--bordeaux));
  color: rgb(var(--gold));
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

#dienstleistungen .accordion-body{ background: transparent; }

/* Dienstleistungen Wrapper: 100% der Content-Breite */
.services-list-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  width: 100%;
  margin-inline: auto;
}

.services-list-section{
  background: rgb(var(--bg));
}

/* Listen */
.service-bullets {
  margin: 0;
  padding-left: 18px;
}
.service-bullets li {
  margin-bottom: 6px;
  color: rgb(var(--gold));
}

/* 2-Spalten Liste */
.two-col{
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0px;
  column-gap: 0;
}
.two-col > ul{
  margin: 0 !important;
  padding-left: 18px;
}
@media (min-width: 768px) {
  .two-col{
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 0;
  }
}

/* =========================== HERO TEXT =========================== */
.hero-text {
  padding-left: 25px;
  padding-right: 25px;
}

/* =========================== GALLERY =========================== */
.gallery-item {
  opacity: 1;
  transform: none;
}
html.js .gallery-item {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
html.js .gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* =========================== BUTTONS =========================== */
.btn-primary {
  background-color: rgb(var(--bordeaux));
  color: rgb(var(--gold));
  border: none !important;
}
.btn-primary:hover {
  background-color: rgb(var(--gold));
  color: rgb(var(--bordeaux));
}
.btn-primary:focus-visible {
  outline: 2px solid rgb(var(--gold));
  outline-offset: 2px;
}

/* Mail-Link im Text */
a[href^="mailto"]:not(.btn) {
  color: rgb(var(--bordeaux));
  font-weight: 500;
  text-decoration: none;
}
a[href^="mailto"]:not(.btn):hover {
  text-decoration: underline;
}

/* =========================== MOBILE / TABLET =========================== */
@media (max-width: 991px) {
  .hero-subtitle { font-size: 18px; }

  .big-atelier {
    font-size: 110px;
    line-height: 95px;
  }
}

@media (max-width: 460px) {
  .big-atelier {
    font-size: 80px;
    line-height: 70px;
  }

  .hero-subtitle { font-size: 13px; }

  .hero-title-wrapper { margin-bottom: 5px; }

  #stickyHeader { height: 55px; }

  #stickyHeader .sticky-title {
    font-size: 36px;
    line-height: 30px;
  }
}

/* =========================== BUTTON FIXES (MAILTO + ACTIVE) =========================== */
a.btn-primary[href^="mailto"] {
  font-weight: 400;
  color: rgb(var(--gold));
}
a.btn-primary:hover { color: rgb(var(--bordeaux)); }

.btn-primary:active,
.btn-primary.active,
.btn-primary:focus,
.btn-primary:focus-visible,
a.btn-primary:active,
a.btn-primary:active:focus,
a.btn-primary:active:focus-visible {
  background-color: rgb(var(--gold)) !important;
  border-color: rgb(var(--gold)) !important;
  color: rgb(var(--bordeaux)) !important;
  box-shadow: none !important;
  outline: none !important;
}

/* ===========================
   CONTACT ALIGNMENTS
   =========================== */
.contact-title{
  margin: 0;
  padding: 0;
}
.contact-left .contact-info{ margin-top: 10px; }
.contact-hours{
  margin-top: 14px;
  margin-bottom: 14px;
}
.contact-cta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.contact-right .contact-title{ margin-bottom: 10px; }

/* Öffnungszeiten: Tabstop-Layout */
.contact-hours li{
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 14px;
  padding: 2px 0;
}
.contact-hours .day{
  font-weight: 500;
  white-space: nowrap;
}
.contact-hours .time{ text-align: left; }

/* Senden Button */
.contact-submit{
  position: relative;
  top: 14px;
}

/* ===========================
   MOBILE NAV: erscheint erst beim Scrollen (Mobile only)
   =========================== */
#mobileNav { display: none; }

@media (max-width: 767px) {
  #mobileNav {
    display: flex;
    position: fixed;
    top: 4px;
    right: 7px;
    height: 48px;
    width: 56px;
    background: rgb(var(--bordeaux));
    z-index: 2500;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.22);

    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }

  #mobileNav.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
}

.hamburger-btn {
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.hamburger-lines {
  width: 24px;
  height: 2px;
  background: rgb(var(--gold));
  border-radius: 999px;
  position: relative;
  display: inline-block;
}

.hamburger-lines::before,
.hamburger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: rgb(var(--gold));
  border-radius: 999px;
}
.hamburger-lines::before { top: -7px; }
.hamburger-lines::after  { top:  7px; }

/* ===========================
   Scroll-to-top Button (nur Mobile)
   =========================== */
#toTopBtn{
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 60px;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: none;
  background: rgb(var(--bordeaux));
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(0,0,0,0.22);
  cursor: pointer;
  z-index: 2600;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.toTopIcon{ fill: rgb(var(--gold)); }

#toTopBtn.show{
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px){
  #toTopBtn{ display: none !important; }
}

#toTopBtn:active{
  transform: translateX(-50%) translateY(1px);
}
