/* Mein Dossenheim — visual revamp v2
 * A deliberately different directory composition: editorial cards, persistent
 * navigation, stronger hierarchy, and a compact local-guide feel.
 */

:root {
  --v2-ink: #172b24;
  --v2-muted: #63746d;
  --v2-green: #236b45;
  --v2-green-dark: #164a31;
  --v2-mint: #e6f0e8;
  --v2-orange: #ef8b46;
  --v2-paper: #fbfcf9;
  --v2-surface: #ffffff;
  --v2-line: #d9e4dc;
  --v2-shadow: 0 14px 32px rgba(23, 43, 36, 0.09);
  --v2-scroll-offset: 6.5rem;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: var(--v2-paper);
  scroll-padding-top: var(--v2-scroll-offset);
}

#kategorien,
#info {
  scroll-margin-top: var(--v2-scroll-offset);
}

body {
  overflow-x: hidden;
  background: var(--v2-paper);
  color: var(--v2-ink);
  font-family: var(--font-body);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(239, 139, 70, 0.75);
  outline-offset: 3px;
}

#fixed-header {
  z-index: 1000;
  height: 74px;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: rgba(251, 252, 249, 0.96);
  border-bottom: 1px solid var(--v2-line);
  box-shadow: 0 4px 18px rgba(23, 43, 36, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#fixed-header > div {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
}

#fixed-card {
  max-width: 1320px;
  padding: 0 1.5rem;
  gap: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
}

#fixed-header .logo,
#fixed-header img.logo {
  width: 38px !important;
  height: 38px !important;
  max-width: 38px !important;
  flex: 0 0 38px;
}

#fixed-header h1,
#fixed-header .brand-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: var(--v2-ink);
  font-family: var(--font-heading);
  font-size: 1.14rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

#site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

#site-nav::-webkit-scrollbar {
  display: none;
}

#site-nav a {
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  color: var(--v2-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

#site-nav a:hover,
#site-nav a[aria-current="page"] {
  background: var(--v2-mint);
  color: var(--v2-green-dark);
}

#mobile-nav-toggle {
  display: none;
  align-self: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  border: 1px solid var(--v2-line);
  border-radius: 999px;
  background: var(--v2-surface);
  color: var(--v2-green-dark);
  cursor: pointer;
}

.mobile-menu-icon {
  display: grid;
  gap: 4px;
  justify-items: end;
  width: 18px;
  margin: 0 auto;
}

.mobile-menu-icon span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

#fixed-card.menu-open .mobile-menu-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

#fixed-card.menu-open .mobile-menu-icon span:nth-child(2) {
  opacity: 0;
}

#fixed-card.menu-open .mobile-menu-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

#hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  height: auto;
  min-height: 500px;
  padding: 74px 0 3rem;
  overflow: visible;
  background-position: center;
  background-size: cover;
}

#hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, rgba(13, 35, 25, 0.82), rgba(13, 35, 25, 0.17) 76%), linear-gradient(0deg, rgba(13, 35, 25, 0.28), transparent 60%);
}

#hero-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 2.6rem) 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-left: 6px solid var(--v2-orange);
  border-radius: 8px 30px 30px 8px;
  background: rgba(18, 48, 35, 0.80);
  box-shadow: 0 24px 60px rgba(4, 18, 10, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: left;
}

#hero-card::before {
  content: "MEIN DOSSENHEIM  /  LOKAL ENTDECKEN";
  display: block;
  margin-bottom: 1.15rem;
  color: #f9c49c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

#hero-card .logo,
#hero-card img.logo {
  display: none;
}

#hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.35rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-shadow: none;
}

.breadcrumb-nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem 0;
  color: var(--v2-muted);
  font-size: 0.82rem;
}

.breadcrumb-nav a {
  color: var(--v2-green);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

#info {
  max-width: 900px;
  margin: 1.7rem auto 1.25rem;
  padding: 0 1.5rem;
  text-align: left;
}

#info p {
  max-width: 720px;
  margin: 0.35rem 0;
  color: var(--v2-muted);
  font-size: 1rem;
  line-height: 1.65;
}

#info p:first-child {
  color: var(--v2-ink);
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.7vw, 1.85rem);
  font-weight: 600;
  line-height: 1.2;
}

#search-bar {
  max-width: 1320px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

#search {
  width: min(100%, 900px);
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--v2-line);
  border-radius: 5px;
  background: var(--v2-surface);
  color: var(--v2-ink);
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(23, 43, 36, 0.05);
}

#search::placeholder {
  color: #87958e;
}

#search:focus {
  border-color: var(--v2-green);
  box-shadow: 0 0 0 4px rgba(35, 107, 69, 0.12);
}

#filter-section {
  max-width: 1320px;
  margin: 0.85rem auto 1.15rem;
  padding: 1.1rem 1.5rem 1.25rem;
  border: 0 !important;
  border-top: 1px solid var(--v2-line) !important;
  border-bottom: 1px solid var(--v2-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#filter-section .filter-header {
  margin-bottom: 0.8rem;
}

#filter-section .filter-header h3 {
  margin: 0;
  color: var(--v2-ink) !important;
  font-family: var(--font-heading);
  font-size: 1.15rem;
}

#filter-section .filter-container {
  gap: 1.2rem 2rem;
}

#filter-section .filter-group {
  min-width: 220px;
  gap: 0.5rem;
}

#filter-section .filter-group h4 {
  margin: 0;
  color: var(--v2-muted) !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-button {
  min-height: 34px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--v2-line);
  border-radius: 4px;
  background: var(--v2-surface);
  color: var(--v2-muted);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--v2-green);
  background: var(--v2-green);
  color: #fff;
}

.listing-status {
  max-width: 1320px;
  padding: 0 1.5rem;
  text-align: left;
}

.result-count {
  margin: 0.9rem 0 0.65rem;
  color: var(--v2-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

#restaurants,
#bakeries,
#cafes,
#venues,
#hairdressers {
  max-width: 1320px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
  gap: 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.restaurant,
.bakery,
.cafe,
.venue,
.hairdresser {
  display: grid !important;
  grid-template-columns: 190px minmax(0, 1fr);
  grid-template-areas: "title title" "media content";
  align-items: start;
  min-width: 0;
  min-height: 0;
  gap: 0.85rem 1.1rem;
  padding: 1.1rem;
  border: 1px solid var(--v2-line) !important;
  border-top: 4px solid var(--v2-green) !important;
  border-radius: 6px !important;
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow) !important;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.restaurant:hover,
.bakery:hover,
.cafe:hover,
.venue:hover,
.hairdresser:hover {
  border-color: #bbd3c1 !important;
  border-top-color: var(--v2-orange) !important;
  box-shadow: 0 20px 38px rgba(23, 43, 36, 0.14) !important;
  transform: translateY(-3px);
}

.restaurant.is-current-venue,
.bakery.is-current-venue,
.cafe.is-current-venue,
.venue.is-current-venue,
.hairdresser.is-current-venue {
  border-top-color: var(--v2-orange) !important;
  box-shadow: 0 0 0 3px rgba(239, 139, 70, 0.22), var(--v2-shadow) !important;
}

.restaurant h2,
.bakery h2,
.cafe h2,
.venue h2,
.hairdresser h2 {
  grid-area: title;
  min-width: 0;
  margin: 0;
  color: var(--v2-ink) !important;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.img_container {
  grid-area: media;
  width: 190px;
  height: 165px;
  min-height: 0;
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--v2-line);
  border-radius: 4px;
  background: #f0f5f1;
}

.img_container.media-square,
.img_container.media-portrait {
  width: 190px;
  height: 190px;
  margin: 0;
  background: #f7faf7;
}

.img_container.media-wide {
  width: 190px;
  height: 140px;
  margin-top: 0.25rem;
}

.img_container > img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.info_container {
  grid-area: content;
  min-width: 0;
  display: block;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-width: 0;
  max-width: 100%;
}

.contact-button {
  min-width: min(5.5rem, 100%);
  max-width: 100%;
  box-sizing: border-box;
  min-height: 58px;
  padding: 0.45rem 0.4rem;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--v2-mint);
  color: var(--v2-green-dark);
  font-size: 0.77rem;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.contact-button:hover {
  border-color: var(--v2-green);
  background: var(--v2-green);
  color: #fff;
  transform: translateY(-2px);
}

.contact-button i {
  width: 1.2rem;
  height: 1.2rem;
  color: currentColor;
  font-size: 0.95rem;
}

.contact-button:first-child {
  flex: 1.6 1 9rem;
  min-width: min(8.75rem, 100%);
  max-width: 100%;
}

.contact-button:first-child > span {
  font-size: 0.72rem;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.contact-button.detail-link {
  min-height: 42px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--v2-green);
  background: transparent;
  color: var(--v2-green-dark);
}

.contact-button.detail-link:hover {
  background: var(--v2-green);
  color: #fff;
}

.venue-description {
  margin: 0.8rem 0 0;
  color: var(--v2-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.hours-block,
.info_container > div[style*="margin-top"] {
  margin-top: 0.9rem !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--v2-line);
  color: var(--v2-muted);
  font-size: 0.78rem;
  line-height: 1.6;
}

.hours-block b,
.info_container > div[style*="margin-top"] b {
  color: var(--v2-ink);
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.empty-state {
  max-width: 1320px;
  margin: 1rem auto 3rem;
  border: 1px solid #c8ddce;
  border-radius: 5px;
  background: #edf6ef;
  color: var(--v2-ink);
}

.reset-filters {
  border-radius: 4px;
  background: var(--v2-green);
}

.subpage {
  max-width: 1320px;
  margin: 3rem auto 5rem;
  padding: 0 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.subpage-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  min-height: 126px;
  border: 1px solid var(--v2-line);
  border-left: 5px solid var(--v2-green);
  border-radius: 6px;
  background: var(--v2-surface);
  box-shadow: var(--v2-shadow);
  color: var(--v2-ink);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.subpage-card:hover {
  border-left-color: var(--v2-orange);
  box-shadow: 0 20px 38px rgba(23, 43, 36, 0.14);
  transform: translateY(-3px);
}

.subpage-card > img {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  object-fit: contain;
}

.subpage-card h2 {
  padding: 0 1rem 0 0.25rem;
  margin: 0;
  background: transparent;
  color: var(--v2-ink);
  font-size: 1.25rem;
  text-align: left;
}

footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  background: var(--v2-ink);
  color: #e8f1ea;
}

#footer-card {
  max-width: 1320px;
  gap: 0.7rem;
}

footer a {
  color: #e8f1ea;
}

@media (max-width: 900px) {
  :root {
    --v2-scroll-offset: 6.5rem;
  }

  #site-nav {
    display: none;
  }

  #fixed-card {
    padding: 0 1rem;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
  }

  #fixed-header > div {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
  }

  #mobile-nav-toggle {
    display: grid;
    place-items: center;
    align-self: center;
  }

  #site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--v2-line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(251, 252, 249, 0.98);
    box-shadow: 0 18px 30px rgba(23, 43, 36, 0.13);
  }

  #fixed-card.menu-open #site-nav {
    display: flex;
  }

  #site-nav a,
  #site-nav a[aria-current="page"] {
    padding: 0.8rem 0.9rem;
    border-radius: 9px;
    background: transparent;
    font-size: 0.9rem;
  }

  #site-nav a[aria-current="page"] {
    background: var(--v2-mint);
  }

  #fixed-header h1,
  #fixed-header .brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .contact-buttons {
    display: flex;
    flex-wrap: wrap;
  }

  .contact-button,
  .contact-button:first-child {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
    max-width: 100%;
  }

  .contact-button:first-child {
    flex: 1 1 100%;
  }

  .contact-button.detail-link {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }

  #hero {
    height: auto;
    min-height: 450px;
    padding-bottom: 2.5rem;
  }

  #restaurants,
  #bakeries,
  #cafes,
  #venues,
  #hairdressers,
  .subpage {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  :root {
    --v2-scroll-offset: 6.5rem;
  }

  #fixed-header {
    height: 68px;
  }

  #fixed-header .logo,
  #fixed-header img.logo {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    flex-basis: 34px;
  }

  #fixed-header h1,
  #fixed-header .brand-name {
    font-size: 1.02rem;
  }

  #mobile-nav-toggle {
    display: grid;
    place-items: center;
    align-self: center;
  }

  #site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    margin: 0;
    padding: 0.75rem;
    border: 1px solid var(--v2-line);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: rgba(251, 252, 249, 0.98);
    box-shadow: 0 18px 30px rgba(23, 43, 36, 0.13);
  }

  #fixed-card.menu-open #site-nav {
    display: flex;
  }

  #site-nav a,
  #site-nav a[aria-current="page"] {
    padding: 0.8rem 0.9rem;
    border-radius: 9px;
    background: transparent;
    font-size: 0.9rem;
  }

  #site-nav a[aria-current="page"] {
    background: var(--v2-mint);
  }

  #hero {
    height: auto;
    min-height: 350px;
    padding: 68px 0 2.25rem;
    background-position: 58% center;
  }

  #hero-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-height: 0;
    padding: 1.2rem 1rem 0;
    border-left-width: 4px;
    border-radius: 5px 22px 22px 5px;
  }

  #hero-card::before {
    margin-bottom: 0.95rem;
    font-size: 0.62rem;
    line-height: 1.45;
  }

  #hero h1 {
    max-width: 12ch;
    font-size: clamp(2.2rem, 10.5vw, 3.15rem);
    line-height: 0.98;
  }

  .breadcrumb-nav,
  #info,
  #search-bar,
  #filter-section,
  .listing-status,
  #restaurants,
  #bakeries,
  #cafes,
  #venues,
  #hairdressers,
  .subpage {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  #info {
    margin-top: 1.15rem;
  }

  #info p:first-child {
    font-size: 1.35rem;
  }

  #filter-section {
    padding-top: 0.75rem;
    padding-bottom: 0.85rem;
  }

  #filter-section .filter-group {
    min-width: 100%;
  }

  #restaurants,
  #bakeries,
  #cafes,
  #venues,
  #hairdressers {
    margin-bottom: 2rem;
    gap: 0.8rem;
  }

  .restaurant,
  .bakery,
  .cafe,
  .venue,
  .hairdresser {
    display: grid !important;
    grid-template-columns: 108px minmax(0, 1fr);
    grid-template-areas: "media title" "content content";
    column-gap: 0.85rem;
    row-gap: 0;
    padding: 0.85rem;
    border-top-width: 3px !important;
  }

  .restaurant h2,
  .bakery h2,
  .cafe h2,
  .venue h2,
  .hairdresser h2 {
    align-self: center;
    margin: 0;
    font-size: 1.15rem;
  }

  .img_container,
  .img_container.media-square,
  .img_container.media-portrait,
  .img_container.media-wide {
    width: 108px;
    height: 108px;
    margin: 0;
    padding: 0.35rem;
    border-radius: 10px;
  }

  .img_container.media-square,
  .img_container.media-portrait {
    width: 108px;
    height: 108px;
    margin: 0;
  }

  .info_container {
    width: 100%;
  }

  .contact-button {
    min-height: 52px;
    border-radius: 9px;
    font-size: 0.72rem;
  }

  .contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem !important;
    min-width: 0;
    max-width: 100%;
  }

  .contact-button,
  .contact-button:first-child {
    flex: 1 1 calc(50% - 0.2rem);
    min-width: 0;
    max-width: 100%;
  }

  .contact-button:first-child {
    flex: 1 1 100%;
  }

  .contact-button.detail-link {
    flex: 1 1 100%;
    grid-column: auto;
    width: 100%;
    max-width: 100%;
    min-height: 42px;
  }

  .contact-button:first-child > span {
    font-size: 0.68rem;
  }

  .venue-description {
    margin-top: 0.8rem;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .hours-block,
  .info_container > div[style*="margin-top"] {
    margin-top: 0.8rem !important;
    padding-top: 0.65rem;
    font-size: 0.74rem;
  }

  .subpage {
    margin-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
