@font-face {
  font-family: "Beausite Grand";
  src: url("./fonts/webfonts/BeausiteGrandWeb-Bold.woff2") format("woff2"),
    url("./fonts/webfonts/BeausiteGrandWeb-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Beausite Slick";
  src: url("./fonts/webfonts/BeausiteSlickWeb-Regular.woff2") format("woff2"),
    url("./fonts/webfonts/BeausiteSlickWeb-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------
     Farbwelt mapped to CSS variables
     Source: Elena Designcoach | Farbcodes (PDF)
     Hexes used: #385469, #303b4a, #7a574f, #d19c59, #9ca6a8
     --------------------------------------------- */
:root {
  /* Core UI tokens */
  --bg: #ffffff; /* global background */
  --fg: rgb(
    64,
    88,
    109
  ); /* primary text (deep slate)  #303b4a - former color: #40586d */
  --muted: #9ca6a8; /* secondary text (cool grey) */
  --accent: #d19c59; /* primary accent (gold/ochre) */
  --accent-2: #385469; /* secondary accent (steel blue) */
  --surface: #ffffff; /* card/paper surface */

  --maxw: 1120px; /* content width */
  --radius: 16px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);

  /* Typography stacks */
  --font-sans: "Beausite Slick", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  --font-display: "Beausite Grand", var(--font-sans);

  /* Brand palette (direct from Farbcodes) */
  --brand-blue: #385469; /* RGB 56,84,105 */
  --brand-slate: #40586d; /* RGB 49,58,73 */
  --brand-brown: #7a574f; /* RGB 123,86,78 */
  --brand-gold: #d19c59; /* RGB 209,156,89 */
  --brand-grey: hsl(180, 5%, 91%); /* RGB 156,167,169 */
}

html {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
}

h1,
h2,
h3,
.section-title,
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand-slate);
  margin-top: 50px;
}
h2 {
  text-decoration: underline;
}

.button {
  background-color: var(--brand-slate);
  color: var(--surface);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 700;
  font-family: var(--font-display);
  border: none;
  cursor: pointer;
  margin-top: 50px;
}
.button:hover {
  background-color: var(--brand-gold);
  color: var(--brand-slate);
}

a {
  color: var(--brand-slate);
}

figure {
  margin: 0;
}
p {
  font-size: 1.2em;
}

ul {
  font-size: 1.2em;
}

/* Example utility classes using the palette */
.text-muted {
  color: var(--muted);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-brown);
}

.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.container {
  width: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

/* Button up */
.button_up {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border: 2px solid var(--brand-slate);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.button_up img {
  width: 40px;
  height: 40px;
}

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

.button_up .progress-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.progress-ring__bg {
  fill: none;
  stroke: rgba(64, 88, 109, 0.15);
  stroke-width: 4;
}

.progress-ring__progress {
  fill: none;
  stroke: var(--brand-slate);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 0 1; /* will be overridden in JS */
}

.button_up a {
  position: relative;
  z-index: 1;
}

/* Header & Navigation */
.nav-item {
  color: var(--accent-2);
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  padding: 8px 16px;
}
.nav-item:hover,
.nav-item:focus,
.nav-item:active {
  color: var(--accent-2);
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  border-bottom: 2px solid var(--accent-2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px;
  background-color: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

/* Burger button */
.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 110;
}
.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand-slate);
  margin: 6px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Mobile menu panel */
.mobile {
  display: none;
  position: fixed;
  top: 56px;
  right: 12px;
  left: 12px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  z-index: 120; /* above .burger (110) and .nav (100) */
}
.mobile a {
  display: block;
  padding: 12px 8px;
  color: var(--accent-2);
  text-decoration: none;
}
.mobile a + a {
  border-top: 1px solid #eee;
}

/* Responsive behavior (keep at end to win cascade) */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .burger {
    display: inline-block;
  }

  .container {
    width: 100%;
  }

  /* Section: Designcoach */
  .wrapper_design_coach {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 48px;
  }
  .column_wrapper_img,
  .column_wrapper_text {
    width: 100%;
    margin: 0;
  }
  .column_wrapper_img {
    align-items: center;
    justify-content: center;
    margin-right: 0;
  }
  .column_wrapper_text {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/*Hero*/
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.hero-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-wrapper img {
  margin-top: 50px;
  width: 50%;
  object-fit: cover;
}

.hero-text {
  text-align: center;
}
.hero-text h1 {
  margin-bottom: 50px;
  margin-top: 0px;
}

/* Section: Design coach */
#design_coach {
  background-color: var(--brand-slate);
  color: var(--bg);
}
#design_coach h2 {
  color: var(--bg);
  margin-top: 50px;
  text-decoration: underline;
}
#design_coach_h2_1 {
  color: var(--bg);
  margin-top: 50px;
}
#design_coach {
  color: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#design_coach p {
  color: var(--bg);
  text-align: center;
  width: 75%;
}

#p_designcoach1 {
  font-size: 1.2em;
}

/* Designcoach wrapper container */
.wrapper_design_coach {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .wrapper_design_coach {
    flex-direction: column;
  }

  #design_coach p {
    width: 90%;
  }
}

@media (max-width: 900px) {
  .hero-wrapper img {
    width: 100dvw;
    max-width: 360px;
    height: auto;
    object-fit: cover;
  }
}

/* Designcoach two column wrapper */
.two_column_wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-items: flex-start;
  margin-top: 100px;
}
.column_wrapper_img {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  margin-right: 100px;
}
.column_wrapper_text {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

#design_coach_h2_2 {
  text-align: left !important;
  margin-top: 0 !important;
}
.column_wrapper_text p {
  text-align: left !important;
  margin-top: 0 !important;
}

/* Designcoach image container (shared class; per-instance via id) */
.designcoach_img {
  width: 300px;
  height: 300px;
  border-radius: 10%;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.2);
}
.designcoach_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .designcoach_img {
    width: 70vw;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    height: auto;
  }
}

/* Responsive behavior (keep at end to win cascade) */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .burger {
    display: inline-block;
  }

  /* Stack image above text in design coach section */
  .two_column_wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
  }
  .column_wrapper_img,
  .column_wrapper_text {
    width: 100%;
    margin: 0;
  }
  .column_wrapper_img {
    align-items: center;
    justify-content: center;
    margin-right: 0;
  }
  .column_wrapper_text {
    align-items: center;
    justify-content: center;
  }
  #designcoach_img1 {
    width: 70vw;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    height: auto;
  }
  #designcoach_img1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  #design_coach_h2_2 {
    text-align: center !important;
    margin-top: 0 !important;
  }
  .column_wrapper_text p {
    text-align: center !important;
  }
}

/* Leistungen */

/* Centered, faded background emblem for Leistungen */
.section#leistungen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/Elena-Designcoach-Haussymbol.png") no-repeat center
    center;
  background-size: 130dvh; /* scales image to 100% of viewport height */
  background-attachment: fixed; /* optional: makes it stick while scrolling */
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.section#leistungen > * {
  position: relative;
  z-index: 1;
}

dl {
  display: grid;
  grid-template-columns: auto 1fr; /* erste Spalte so breit wie nötig, zweite füllt Rest */
  gap: 0.5rem 1rem; /* Zeilen- und Spaltenabstand */
}

dt {
  font-weight: bold;
}

dd {
  margin: 0; /* Standard-Einzug entfernen */
}

.column_wrapper_left {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: flex-start;
  height: 100%;
  padding-left: 10dvw;
  padding-right: 50px;
}
.column_wrapper_right {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: flex-start;
  height: 100%;
  padding-right: 10dvw;
  padding-left: 50px;
}

#features-heading {
  text-align: left;
}
.benefits-heading {
  text-align: left;
  color: var(--brand-gold);
}
.list {
  text-align: left;
}
.list--check {
  text-align: left;
}

.leistungen_h3 {
  color: var(--brand-gold);
  font-size: 2em;
  text-align: center;
  margin-bottom: 0px;
  margin-top: 20px;
  font-weight: 700;
  font-family: var(--font-display);
}

.leistungen_h4 {
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 10px;
  font-weight: 400;
  font-family: var(--font-sans);
}

.list--check {
  color: var(--brand-gold);
}

.meta-list {
  font-size: 1.2em;
}

@media (max-width: 900px) {
  /* Leistungen section: mirror design_coach behavior */

  .section .container {
    width: 90%;
  }

  .section .two_column_wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
  }
  .section .column_wrapper_left,
  .section .column_wrapper_right {
    width: 100%;
    margin: 0;
    padding: 0 16px;
  }
  .section .column_wrapper_left {
    height: auto;
    order: -1;
  }
  /* Ensure left column stacks above right on mobile */
  .section .column_wrapper_right {
    order: 0;
  }
}

/* Partner */

.picture_wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: repeat(auto-fill, 260px);
  gap: 20px;
  width: 100%;
  justify-items: center;
  align-items: center;
}

.logo_format {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 260px;
  overflow: hidden;
}
.logo_format img {
  width: 300px;
  object-fit: contain;
}

@media (max-width: 1300px) {
  .picture_wrapper {
    width: 100%;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(auto-fill, 260px);
  }
}

@media (max-width: 900px) {
  .picture_wrapper {
    width: 100%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(auto-fill, 260px);
  }
}

/* Galerie carousel */
.carousel {
  position: relative;
  width: 100%;
  margin: 16px 0 32px 0;
}
.carousel__viewport {
  overflow: hidden;
  width: 100%;
}
.carousel__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  transition: transform 500ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.carousel__item {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eee;
}
.carousel__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 100px;
  height: 100px;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 5;
}
.carousel__arrow img {
  width: 72px;
  height: 72px;
}
.carousel__arrow--prev {
  left: -20px;
}
.carousel__arrow--next {
  right: -20px;
}

@media (max-width: 900px) {
  .carousel__track {
    grid-auto-columns: 100%;
  }
  .carousel__arrow--prev {
    left: -16px;
  }
  .carousel__arrow--next {
    right: -16px;
  }
  .carousel__arrow {
    width: 72px;
    height: 72px;
  }
  .carousel__arrow img {
    width: 48px;
    height: 48px;
  }
}

/* #kontakt */

#kontakt {
  background-color: var(--brand-grey);
}

#kontakt .two_column_wrapper {
  margin-top: 0;
}

#kontakt p {
  width: 75%;
}

@media (max-width: 900px) {
  #kontakt p {
    width: 90%;
  }
}

/* footer */

.footer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-wrapper img {
  width: 15dvw;
  object-fit: cover;
}

.footer-container {
  max-width: 80%;
  flex-direction: row;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 50px;
}

.footer_left {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
.footer_middle {
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer_right {
  width: 30%;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
}

.footer_right a {
  font-size: 1.2em;
  color: var(--brand-slate);
  margin-bottom: auto auto;
  text-decoration: underline;
}

.soc_media_icon_wrapper a {
  text-decoration: none;
}

.icon_social_media {
  width: 30px;
  height: 30px;
  border: 1px solid var(--brand-slate);
  padding: 10px;
  border-radius: 10%;
  margin-right: 10px;
}

#Kontakt_Data {
  margin-top: 0;
}

.soc_media_icon_wrapper a:hover {
  cursor: pointer;
}

#logo_geschwinden_wrapper {
  margin-right: 20px;
  width: 120px;
}

#logo_geschwinden {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#link_footer_wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

@media (max-width: 1200px) {
  .footer_right {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .footer_left {
    width: 100%;
    margin-bottom: 20px;
  }
  .footer_middle {
    width: 100%;
    margin-bottom: 20px;
  }
  .footer_right {
    display: flex;
    flex-direction: row;
    width: 100%;
  }
  .footer-wrapper {
    width: 80%;
  }
  .footer-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Responsive visibility mobile number */
.mobile-only {
  display: none;
}
.desktop-only {
  display: inline;
}
@media (max-width: 900px) {
  .mobile-only {
    display: inline;
  }
  .desktop-only {
    display: none;
  }
}

/* Impressum */

#Impressum {
  background-color: var(--brand-grey);
}

#impressum_header {
  margin-top: 0 !important;
  margin-bottom: 100px !important;
}

#Impressum .container {
  height: 70%;
  margin-top: 100px;
  margin-bottom: 100px;
  padding: 50px;
}

#Impressum {
  font-size: 1.2em;
}

.block {
  margin: 22px 0;
  font-size: 1.2em;
  text-align: center;
}

.entity {
  font-weight: 600;
}

address {
  font-style: normal;
  white-space: pre-line; /* keeps line breaks */
  margin: 10px 0;
}

#Impressum a {
  text-decoration: underline;
}

hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 28px auto;
  width: min(560px, 85%);
}

.small {
  font-size: 0.95rem;
  margin: 0;
}

/* Print-friendly */
@media print {
  a {
    text-decoration: none;
  }
  .wrap {
    margin: 0;
    padding: 0;
  }
  hr {
    margin: 18px auto;
  }
}

/* Datenschutz */

#Datenschutz {
  background-color: var(--brand-grey);
  margin-top: 50px;
}

#Datenschutz p {
  text-align: left;
  width: 100%;
}

#Datenschutz h3 {
  text-align: left;
}

#Datenschutz h4 {
  text-align: left;
}

#Datenschutz ol {
  text-align: left;
  font-size: 1.2em;
  width: 100%;
}

.contact_datenschutz {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  gap: 10px;
  font-size: 1.2em;
}

#Firmenname_datenschutz {
  margin: 0;
}

#adress_datenschutz {
  margin: 0;
}

/* AGB */

#AGB {
  background-color: var(--brand-grey);
  font-size: 1.2em;
  margin-top: 50px;
}

#AGB ol {
  list-style: none;
  margin-top: 0;
  padding: 0;
  counter-reset: item;
  font-size: 1.2rem;
  text-align: left;
}
#AGB li {
  display: block;
  margin: 20px 0;
}
#AGB ol li::before {
  content: counters(item, ".") ". ";
  counter-increment: item;
  font-weight: 600;
}
#AGB ol ol {
  counter-reset: item; /* restart numbering within each nested list */
  margin: 4px 0 0 0;
  padding: 0;
}

/* Referenz-Galerie */

.galery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 20px;
  width: 80%;
}

.galery-grid img {
  width: 100%;
  height: 300px;
  object-fit: cover; /* crops images neatly */
  border-radius: 8px;
}

.galery-grid img:hover {
  cursor: pointer;
}

@media (max-width: 900px) {
  .galery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Lightbox (Referenz-Galerie) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none; /* toggled via [aria-hidden] */
  align-items: center;
  justify-content: center;
  z-index: 1000; /* above header */
}
.lightbox[aria-hidden="false"] {
  display: flex;
}
.lightbox__figure {
  margin: 0;
  max-width: 92vw;
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 50%;
  border: none;
  background: transparent;
  width: 100px;
  height: 100px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__close img {
  width: 72px;
  height: 72px;
}

.lightbox__figure img:hover {
  cursor: pointer;
}
.lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100px;
  height: 100px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox__arrow img {
  width: 72px;
  height: 72px;
}
.lightbox__arrow--prev {
  left: 12px;
}
.lightbox__arrow--next {
  right: 12px;
}

@media (max-width: 900px) {
  .lightbox__arrow {
    background: transparent;
    width: 72px;
    height: 72px;
  }
  .lightbox__arrow img {
    width: 48px;
    height: 48px;
  }
  .lightbox__close {
    width: 72px;
    height: 72px;
  }
  .lightbox__close img {
    width: 48px;
    height: 48px;
  }
}

/* Partner */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-template-rows: repeat(auto-fill, 260px);
  gap: 20px;
  width: 100%;
  justify-items: center;
  align-items: center;
}

.logo_wrapper {
  width: 300px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .partner-grid a {
  width: 250px;
  object-fit: cover;
  } */

.partner-grid img {
  width: 250px;
}

/* @media (max-width: 900px) {
  .partner-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(13, 200px);
    justify-items: center;
    align-items: center;
  }
} */
