/* ══════════════════════════════════════════════════════════════
   STYLE PATCHES – Rentinck SALOG
   Alle Erweiterungen / Korrekturen, ohne style.css anzufassen
   ══════════════════════════════════════════════════════════════ */

/* ── 1. HERO BACKGROUND – VOGEL AUF MOBILE ──────────────────
   Der Vogel sitzt links in hintergrund.png. Auf Mobile
   background-position: left top sicherstellen.            */
@media (max-width: 768px) {
  #hero {
    background-position: calc(0% - 27vw) 72px !important;
    background-size: auto 100% !important;
    min-height: 100svh !important;
    justify-content: flex-start !important;
    padding: 5.15rem 1.2rem 3.4rem !important;
  }
  /* Hellen Overlay über dem Hintergrundbild, damit der Vogel
     deutlich zurücktritt und das Logo gut lesbar bleibt      */
  #hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(248, 245, 237, 0.75);
    z-index: 0;
    pointer-events: none;
  }
  /* Scroll-Indikator muss über dem Overlay liegen */
  .hero-scroll {
    z-index: 1;
    bottom: 0.7rem;
  }
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
  }
  .hero-logo {
    width: 100%;
    max-width: 315px !important;
    margin: 0 auto 0.55rem auto !important;
  }
  .hero-eyebrow {
    margin-bottom: 0.95rem !important;
  }
  .hero-title {
    font-size: clamp(1.85rem, 6.3vw, 2.55rem) !important;
    line-height: 1.04;
    margin-bottom: 0.7rem;
  }
  .hero-subtitle {
    font-size: 0.85rem !important;
    line-height: 1.6;
    margin-bottom: 1.3rem !important;
    max-width: 440px;
  }
  .hero-actions {
    gap: 0.7rem;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    max-width: 236px;
    padding: 0.74rem 1.35rem;
    font-size: 0.8rem;
  }
}

/* ── 2. NAV DROPDOWN – DAS KONZEPT ──────────────────────────*/
.nav-links li.has-dropdown {
  position: relative;
}
.nav-sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(248, 245, 237, 0.98);
  border: 1px solid rgba(181, 191, 138, 0.35);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(74, 83, 48, 0.14);
  min-width: 230px;
  /* padding-top creates the visual gap from the nav bar;
     the transparent padding-top bridge keeps hover alive  */
  padding: 0.5rem 0 0.5rem;
  margin-top: 0;
  z-index: 1001;
  list-style: none;
}
/* Invisible bridge: fills any gap between trigger and menu */
.nav-sub-menu::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
  background: transparent;
}
/* Small arrow indicator */
.nav-sub-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: rgba(248, 245, 237, 0.98);
  border-left: 1px solid rgba(181, 191, 138, 0.35);
  border-top: 1px solid rgba(181, 191, 138, 0.35);
  transform: translateX(-50%) rotate(45deg);
}
.nav-links li.has-dropdown:hover .nav-sub-menu,
.nav-links li.has-dropdown:focus-within .nav-sub-menu {
  display: block;
}
.nav-links li.has-dropdown.touch-open .nav-sub-menu {
  display: block;
}
.nav-sub-menu li a {
  display: block;
  padding: 0.55rem 1.2rem;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease;
}
.nav-sub-menu li a:hover {
  color: var(--olive);
  background: rgba(181, 191, 138, 0.12);
}
.nav-sub-menu li a::after { display: none !important; }

/* Dropdown trigger arrow indicator */
.nav-dropdown-arrow {
  display: inline-block;
  margin-left: 3px;
  font-size: 0.6rem;
  opacity: 0.55;
  vertical-align: middle;
  transition: transform 0.25s ease;
}
.nav-links li.has-dropdown:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}
.nav-links li.has-dropdown.touch-open .nav-dropdown-arrow {
  transform: rotate(180deg);
}

/* ── 3. MOBILE MENU – KONZEPT SUB-LINKS ─────────────────────*/
.mobile-submenu-toggle {
  display: none;
}
.mobile-submenu {
  display: contents;
}
.mobile-menu .nav-sub-link {
  padding-left: 2rem;
  font-size: 0.78rem;
  opacity: 0.72;
  letter-spacing: 0.05em;
}
@media (max-width: 768px) {
  .mobile-submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    cursor: pointer;
  }
  .mobile-submenu-arrow {
    font-size: 0.7rem;
    opacity: 0.65;
    transition: transform 0.25s ease;
  }
  .mobile-submenu {
    display: none;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 0.1rem;
  }
  .mobile-submenu.open {
    display: flex;
  }
  .mobile-submenu-toggle[aria-expanded="true"] .mobile-submenu-arrow {
    transform: rotate(180deg);
  }
  .mobile-menu .nav-sub-link {
    padding-left: 1.15rem;
  }
}

/* ── 4. KONZEPT-NAV – INTERNE SPRUNGLINKS ───────────────────*/
.konzept-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 3rem;
}
.konzept-nav a {
  display: inline-block;
  border: 1px solid var(--sage);
  border-radius: 50px;
  padding: 0.45rem 1.15rem;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.konzept-nav a:hover {
  background: var(--sage-pale);
  color: var(--olive);
  border-color: var(--sage-dark);
}

/* ── 5. ÜBER MICH – NEUE STRUKTUR ───────────────────────────*/

/* Single unified header (replaces desktop-only + mobile split) */
.about-header {
  text-align: center;
  margin-bottom: 2rem;
  width: 100%;
}
.about-header .section-label { color: var(--sage); }
.about-header .section-title { color: var(--cream); }
.about-header .divider { margin: 0.8rem auto; }
/* Desktop: render "Über mich" at proper section-heading scale */
@media (min-width: 769px) {
  .about-header .section-label {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 3.5vw, 3.6rem);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.015em;
    color: var(--cream);
    margin-bottom: 0.4rem;
  }
}

/* Top row: photo | credentials (2-col on ≥769px, stacked on mobile) */
.about-top-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.6rem;
  width: 100%;
}
/* Mobile: clean stacked layout — no decorative frame (clips on narrow screens) */
@media (max-width: 768px) {
  .about-header {
    margin-bottom: 0.6rem;
  }
  .about-header .section-label {
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 2.6rem);
    font-weight: 400;
    text-transform: none;
    letter-spacing: -0.015em;
    color: var(--cream);
    margin-bottom: 0.25rem;
  }
  .about-header .divider {
    margin: 0.4rem auto 0;
  }
  .about-top-row {
    gap: 2.85rem;
  }
  .about-top-row .about-image-col {
    width: min(220px, 58vw);
    max-width: 220px;
    flex-shrink: 0;
    align-self: center;
    margin-top: 0;
    padding: 0.35rem 0.5rem 0.5rem;
    box-sizing: content-box;
  }
  .about-top-row .about-image-wrap {
    display: block;
    width: 100%;
    margin: 0 auto;
  }
  .about-top-row .about-image-wrap::before {
    display: block !important;
    top: -8px !important;
    left: -8px !important;
    right: -8px !important;
    bottom: -8px !important;
    border-width: 1.25px;
  }
  .about-top-row .about-photo {
    box-shadow: 0 10px 28px rgba(42, 45, 34, 0.22);
  }
  .about-credentials {
    width: 100%;
    padding: 0 0.5rem;
    align-items: center;
    text-align: center;
    gap: 0.45rem;
  }
  .about-credentials-divider {
    margin: 0.55rem auto 0.9rem;
  }
  .about-credentials .cred-section-title {
    text-align: center;
    margin-bottom: 0.45rem;
  }
  .about-credentials .credential-item {
    display: block;
    text-align: center;
    font-size: 0.92rem;
  }
  .about-credentials .credential-dot {
    display: none;
  }
}
@media (min-width: 769px) {
  .about-top-row {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }
  .about-top-row .about-image-col {
    flex: 0 0 260px;
    max-width: 260px;
  }
  .about-credentials {
    flex: 1;
    padding-top: 0.5rem;
  }
}

/* Credentials (static, from former Carousel Slide 1) */
.about-credentials {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
/* Name heading in right column */
.about-credentials-name {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.about-credentials-role {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.3rem;
}
.about-credentials-divider {
  width: 36px;
  height: 1px;
  background: var(--sage);
  margin: 0.6rem 0 1rem;
}
.about-credentials .cred-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--sage-light);
  margin-bottom: 0.6rem;
}
.about-credentials .credential-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  color: var(--cream);
  font-size: 0.93rem;
  line-height: 1.55;
}
.about-credentials .credential-dot {
  flex-shrink: 0;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
  margin-top: 0.5em;
}

/* Hide legacy headers – replaced by .about-header */
.about-grid-new .desktop-only-header,
.about-grid-new .about-mobile-header {
  display: none !important;
}

/* Override grid for new structure: stacked on mobile */
.about-grid-new {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 2rem !important;
}
@media (min-width: 1024px) {
  /* Use full-width flex column on desktop too (new design is not 2-col sidebar anymore) */
  .about-grid-new {
    display: flex !important;
    flex-direction: column !important;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
  }
  .about-grid-new .about-image-col { position: static !important; grid-column: unset; grid-row: unset; }
  .about-grid-new .about-intro,
  .about-grid-new .about-middle,
  .about-grid-new .about-bottom { grid-column: unset; }
}

/* ── 6. KOOPERATIONSPARTNER – KONTAKTDATEN ─────────────────*/
.partner-contact {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(181, 191, 138, 0.25);
}
.partner-contact a {
  font-size: 0.83rem;
  color: var(--olive);
  text-decoration: none;
  transition: color 0.2s ease;
  word-break: break-all;
}
.partner-contact a:hover {
  color: var(--sage-dark);
  text-decoration: underline;
}

/* Körpersymphonie-Icon: weißen Hintergrund via multiply wegblenden */
.img-multiply {
  mix-blend-mode: multiply;
  object-fit: contain !important;
}
.res-modal-hero--icon {
  object-fit: contain !important;
  padding: 1.25rem;
  background: var(--cream);
  mix-blend-mode: multiply;
}

/* ── 7. JOBANGEBOTE ─────────────────────────────────────────*/
.jobangebote {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(181, 191, 138, 0.3);
}
.jobangebote-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}
.jobangebote-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}
.jobangebote-card {
  background: var(--cream);
  border: 1px solid rgba(181, 191, 138, 0.4);
  border-radius: 14px;
  padding: 2rem 2.2rem;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.jobangebote-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.jobangebote-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--charcoal);
}
.badge-soon {
  display: inline-block;
  background: var(--sage-pale);
  color: var(--olive);
  border: 1px solid var(--sage);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.jobangebote-card p {
  font-size: 0.93rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}
.stellenausschreibung-img {
  width: 100%;
  max-width: 540px;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
}
.jobangebote-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}
.jobangebote-card-contact {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin: 0.75rem 0 0;
}
.jobangebote-card-actions .btn-download-outlined {
  text-decoration: none;
}
.jobangebote-card-contact a {
  color: var(--olive);
  text-decoration: none;
}
.jobangebote-card-contact a:hover { text-decoration: underline; }
