/* =====================================================
   NORDESTATE – ruhiges Architektur- und Immobilienmagazin
   ===================================================== */

:root {
  --paper:    #F5F2EC;
  --paper-2:  #ECE7DD;
  --white:    #FFFFFF;
  --ink:      #1C1B18;
  --ink-2:    #45423C;
  --ink-3:    #6B665E;
  --line:     #DAD4C8;
  --line-2:   #C7BFAF;
  --accent:   #7A5C31;
  --rule:     #8A6A3D;
  --accent-soft: rgba(138,106,61,0.10);
  --fehler:   #9B2C2C;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --header-h: 72px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 180ms;
  --t-base: 360ms;
}

/* --- Grundlagen --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  overflow-x: clip;
}
main { overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
address { font-style: normal; }
h1, h2, h3, h4 { font-weight: 400; color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; top: 8px; left: 8px; z-index: 2000;
  padding: 0.6rem 1rem; background: var(--ink); color: var(--paper);
  font-size: 0.9rem; transform: translateY(-200%); transition: transform var(--t-fast);
}
.skip:focus { transform: none; }

/* --- Typografie --- */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 400; line-height: 1.08; letter-spacing: -0.005em;
  color: var(--ink);
}
.section-title em, .hero__title em { font-style: italic; color: var(--accent); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem 3rem; margin-bottom: 2.5rem;
}
.section-note { max-width: 320px; font-size: 0.9rem; color: var(--ink-3); line-height: 1.55; }

/* --- Knöpfe und Links --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.6rem; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.03em;
  border: 1px solid var(--ink); border-radius: 2px; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #33312C; border-color: #33312C; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--outline:hover { border-color: var(--ink); }
.btn--full { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.9rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid transparent; padding-bottom: 1px;
  transition: border-color var(--t-fast);
}
.link-arrow::after { content: '→'; font-family: var(--sans); transition: transform var(--t-fast); }
.link-arrow--back::after { content: none; }
.link-arrow--back::before { content: '←'; margin-right: 0.4rem; }
.link-arrow:hover { border-bottom-color: var(--ink); }
.link-arrow:hover::after { transform: translateX(3px); }

/* --- Eckdaten (feste Reihenfolge) --- */
.facts div { display: flex; }
.facts dt { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.facts dd { color: var(--ink); }

.facts--card { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.facts--card div { flex-direction: column; gap: 0.15rem; min-width: 0; }
.facts--card dd { font-size: 0.95rem; font-weight: 500; }
.facts--card div:nth-child(4) { grid-column: span 2; }
.facts--card div:nth-child(5) dd { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1; }

.facts--liste { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.facts--liste div { justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.facts--liste dd { font-size: 0.95rem; font-weight: 500; text-align: right; }
.facts--liste div.facts__preis dd { font-family: var(--serif); font-size: 1.5rem; }

/* =============================================
   KOPF
   ============================================= */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(245,242,236,0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base);
}
.header.scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--ink); letter-spacing: 0.01em; }
.wordmark__sub { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.3rem; }

.nav__list { display: none; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .nav__list { display: flex; } }
.nav__link { font-size: 0.9rem; font-weight: 500; color: var(--ink-2); padding: 0.4rem 0; border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.nav__link:hover, .nav__link--active { color: var(--ink); border-bottom-color: var(--ink); }
.nav__link--cta { border: 1px solid var(--ink); padding: 0.55rem 1.1rem; border-radius: 2px; color: var(--ink); }
.nav__link--cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 44px; height: 44px; padding: 10px; margin-right: -10px; }
@media (min-width: 900px) { .nav__toggle { display: none; } }
.nav__toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform var(--t-base) var(--ease), opacity var(--t-fast); transform-origin: center; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.nav__mobile { position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); z-index: 999; padding: 2rem var(--gutter); display: flex; flex-direction: column; justify-content: space-between; overflow: auto; }
.nav__mobile[hidden] { display: none; }
.nav__mobile-list { display: flex; flex-direction: column; }
.nav__mobile-link { display: block; padding: 1rem 0; font-family: var(--serif); font-size: 2.2rem; line-height: 1.1; color: var(--ink); border-bottom: 1px solid var(--line); }
.nav__mobile-kontakt { font-size: 0.9rem; color: var(--ink-3); line-height: 1.6; padding-top: 2rem; }

/* =============================================
   EINSTIEG
   ============================================= */
.hero { padding-top: clamp(2.5rem, 7vw, 5.5rem); }
.hero__text { max-width: 760px; }
.hero__title {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 6.2vw, 5.2rem);
  font-weight: 400; line-height: 1.02; letter-spacing: -0.01em;
  color: var(--ink); margin-bottom: 1.5rem;
}
.hero__sub { font-size: 1.125rem; max-width: 560px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; }

.hero__figure { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero__figure img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; object-position: center; }
.hero__caption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 1.25rem;
  padding: 1rem var(--gutter); border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--ink-3);
}
.hero__caption-nr { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.hero__caption-title { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.hero__caption .link-arrow { margin-left: auto; }
@media (max-width: 639px) {
  .hero__figure img { max-height: none; aspect-ratio: 4 / 5; }
  .hero__caption { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .hero__caption .link-arrow { margin-left: 0; margin-top: 0.5rem; }
}

/* =============================================
   OBJEKTE
   ============================================= */
section { padding-block: clamp(4rem, 8vw, 7rem); }
.objekte { padding-top: clamp(3rem, 6vw, 5rem); }

.filter { display: flex; flex-wrap: wrap; gap: 0 1.75rem; border-bottom: 1px solid var(--line); margin-bottom: 2.5rem; }
.filter__btn { padding: 0.8rem 0; font-size: 0.9rem; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); }
.filter__btn span { font-size: 0.75rem; color: var(--ink-3); margin-left: 0.25rem; }
.filter__btn:hover { color: var(--ink); }
.filter__btn[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

.objekt-grid { display: grid; grid-template-columns: 1fr; gap: 3rem 2.5rem; }
@media (min-width: 640px)  { .objekt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .objekt-grid { grid-template-columns: repeat(3, 1fr); } }
.objekt-card.hidden { display: none; }
.objekt-card article { cursor: pointer; }
.objekt-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); border-radius: 2px; }
.objekt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease); }
.objekt-card article:hover .objekt-card__media img { transform: scale(1.025); }
.objekt-card__body { padding-top: 1.1rem; }
.objekt-card__kicker { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; }
.objekt-card__title { font-family: var(--serif); font-size: 1.65rem; line-height: 1.15; }
.objekt-card__title button { text-align: left; border-bottom: 1px solid transparent; transition: border-color var(--t-fast); }
.objekt-card article:hover .objekt-card__title button { border-bottom-color: var(--ink); }
.objekt-grid__leer { margin-top: 2rem; color: var(--ink-3); }

/* =============================================
   IM FOKUS
   ============================================= */
.fokus { background: var(--paper-2); }
.fokus__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .fokus__grid { grid-template-columns: 7fr 5fr; gap: 4rem; } }
.fokus__media > img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.fokus__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 0.75rem; }
.fokus__thumb { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 2px; background: var(--paper); }
.fokus__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.fokus__thumb:hover img { transform: scale(1.03); }
.fokus__thumb--text { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 0.85rem; font-weight: 500; color: var(--ink); border: 1px solid var(--line-2); line-height: 1.3; transition: border-color var(--t-fast), background var(--t-fast); }
.fokus__thumb--text:hover { border-color: var(--ink); background: var(--white); }
.fokus__ort { font-size: 0.95rem; color: var(--ink-3); margin: 0.5rem 0 1.25rem; }
.fokus__text p + p { margin-top: 0.9rem; }
.fokus__text .facts--liste { margin-top: 1.75rem; }
.fokus__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 1.75rem; }

/* =============================================
   ABLAUF
   ============================================= */
.schritte { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 640px)  { .schritte { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 2rem; } }
@media (min-width: 1024px) { .schritte { grid-template-columns: repeat(4, 1fr); } }
.schritt { border-top: 1px solid var(--line-2); padding-top: 1.25rem; }
.schritt__nr { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--accent); margin-bottom: 1rem; }
.schritt h3 { font-family: var(--serif); font-size: 1.6rem; margin-bottom: 0.6rem; }
.schritt p { font-size: 0.95rem; line-height: 1.6; }

/* =============================================
   BERATUNG
   ============================================= */
.beratung { background: var(--white); }
.beratung__grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) { .beratung__grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.beratung__intro p + p { margin-top: 1rem; }
.beratung__intro .section-title { margin-bottom: 1.25rem; }
.beratung__zeiten { font-size: 0.9rem; color: var(--ink-3); }
.angebot { display: grid; gap: 0.75rem; border-top: 1px solid var(--line); padding: 1.75rem 0; }
@media (min-width: 640px) { .angebot { grid-template-columns: 180px 1fr; gap: 2rem; } }
.angebot:last-child { border-bottom: 1px solid var(--line); }
.angebot h3 { font-family: var(--serif); font-size: 1.9rem; line-height: 1; }
.angebot p { font-size: 0.98rem; }
.angebot ul { margin: 0.9rem 0 1.1rem; display: grid; gap: 0.35rem; }
.angebot li { position: relative; padding-left: 1.1rem; font-size: 0.93rem; color: var(--ink-2); }
.angebot li::before { content: ''; position: absolute; left: 0; top: 0.72em; width: 0.5rem; height: 1px; background: var(--rule); }

/* =============================================
   KONTAKT
   ============================================= */
.kontakt__grid { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .kontakt__grid { grid-template-columns: 5fr 7fr; gap: 5rem; } }
.kontakt__sub { margin: 1rem 0 2rem; }
.kontakt__daten { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; }
.kontakt__daten dt { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.3rem; }
.kontakt__daten dd { font-size: 0.95rem; color: var(--ink); line-height: 1.55; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kontakt__daten { grid-template-columns: 1fr; } }
.skizze { margin-top: 2rem; }
.skizze__svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 2px; display: block; }
.skizze figcaption { font-size: 0.82rem; color: var(--ink-3); margin-top: 0.6rem; line-height: 1.5; }

.kontakt__form-wrap { background: var(--white); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2.5rem); }
.form__row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__group { margin-bottom: 1.1rem; }
.form__group label { display: block; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 0.45rem; }
.form__group label span { text-transform: none; letter-spacing: 0; color: var(--ink-3); font-weight: 400; }
.form__group input:not([type="checkbox"]), .form__group select, .form__group textarea {
  width: 100%; padding: 0.85rem 0.95rem; font-size: 1rem; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 2px; transition: border-color var(--t-fast);
}
.form__group input:focus, .form__group select:focus, .form__group textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: 1px; }
.form__group [aria-invalid="true"] { border-color: var(--fehler); }
.form__group textarea { resize: vertical; min-height: 130px; }
.form__group select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231C1B18' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; }
.form__group--check { display: flex; align-items: flex-start; gap: 0.75rem; }
.form__group--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex-shrink: 0; }
.form__group--check label { text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 400; color: var(--ink-2); margin: 0; }
.form__group--check a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.form__fehler { font-size: 0.9rem; color: var(--fehler); margin-bottom: 1rem; }
.form__hinweis { font-size: 0.8rem; color: var(--ink-3); text-align: center; margin-top: 0.9rem; }
.form__ergebnis h3 { font-family: var(--serif); font-size: 1.9rem; }
.form__ergebnis .facts--liste dd { max-width: 60%; }
.form__ergebnis-text { font-size: 0.93rem; color: var(--ink-3); margin: 1.25rem 0 1.5rem; }

/* =============================================
   FUSS
   ============================================= */
.footer { background: var(--ink); color: #CFC9BE; padding-top: clamp(3rem, 6vw, 5rem); }
.footer__grid { display: grid; gap: 2.5rem 2rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 640px)  { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1.2fr 1.2fr; } }
.wordmark--footer .wordmark__name, .wordmark--footer { font-family: var(--serif); font-size: 1.6rem; color: var(--paper); display: block; margin-bottom: 0.75rem; }
.footer__brand p { font-size: 0.92rem; max-width: 300px; line-height: 1.6; }
.footer h4 { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--paper); margin-bottom: 1rem; }
.footer ul { display: grid; gap: 0.5rem; }
.footer a { font-size: 0.92rem; color: #CFC9BE; border-bottom: 1px solid transparent; transition: color var(--t-fast), border-color var(--t-fast); }
.footer a:hover { color: var(--paper); border-bottom-color: var(--paper); }
.footer address { font-size: 0.92rem; line-height: 1.7; }
.footer :focus-visible { outline-color: var(--paper); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding: 1.5rem var(--gutter); border-top: 1px solid rgba(255,255,255,0.12); }
.ne-demo { font-size: 13px; line-height: 1.5; color: #CFC9BE; }
.ne-demo a { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; border: 0; }
.footer__top { font-size: 0.85rem; }

/* =============================================
   OBJEKT-DIALOG
   ============================================= */
.objekt-dialog {
  width: min(1120px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  margin: auto; padding: 0; border: 0; border-radius: 4px;
  background: var(--paper); color: var(--ink-2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  overflow: auto; overscroll-behavior: contain;
}
.objekt-dialog::backdrop { background: rgba(28,27,24,0.55); }
.objekt-dialog[open] { animation: dialogEin var(--t-base) var(--ease); }
@keyframes dialogEin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.objekt-dialog__inner { padding: clamp(1.25rem, 3vw, 2.5rem); }
.objekt-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.objekt-dialog__head .eyebrow { margin-bottom: 0.4rem; }
.objekt-dialog__title { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; }
.objekt-dialog__ort { font-size: 0.92rem; color: var(--ink-3); margin-top: 0.4rem; }
.objekt-dialog__close { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; flex-shrink: 0; color: var(--ink); transition: background var(--t-fast), border-color var(--t-fast); }
.objekt-dialog__close:hover { background: var(--white); border-color: var(--ink); }
.objekt-dialog__body { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 900px) { .objekt-dialog__body { grid-template-columns: 7fr 5fr; gap: 2.5rem; } }

.ansichten { display: flex; gap: 1.5rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.ansichten [role="tab"] { padding: 0.6rem 0; font-size: 0.88rem; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast), border-color var(--t-fast); }
.ansichten [role="tab"] span { color: var(--ink-3); font-size: 0.75rem; }
.ansichten [role="tab"]:hover { color: var(--ink); }
.ansichten [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.ansicht[hidden] { display: none; }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); border-radius: 2px; transition: opacity 260ms var(--ease); }
.galerie img.is-wechsel { opacity: 0; }
.galerie figcaption { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.6rem; min-height: 1.4em; }
.galerie__nav { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.75rem; }
.galerie__btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 50%; color: var(--ink); transition: background var(--t-fast), border-color var(--t-fast); }
.galerie__btn:hover:not(:disabled) { background: var(--white); border-color: var(--ink); }
.galerie__btn:disabled { opacity: 0.35; cursor: default; }
.galerie__zaehler { font-size: 0.82rem; color: var(--ink-3); min-width: 3rem; text-align: center; }
.galerie__thumbs { display: flex; gap: 0.5rem; margin-left: auto; }
.galerie__thumbs button { width: 60px; height: 40px; overflow: hidden; border-radius: 2px; border: 1px solid transparent; opacity: 0.6; transition: opacity var(--t-fast), border-color var(--t-fast); }
.galerie__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.galerie__thumbs button:hover, .galerie__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.ansicht__zeichnung { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 1rem; }
.ansicht__zeichnung svg { width: 100%; height: auto; display: block; font-family: var(--sans); }
.ansicht__note { font-size: 0.85rem; color: var(--ink-3); margin-top: 0.6rem; }

.objekt-dialog__beschreibung p + p { margin-top: 0.85rem; }
.objekt-dialog__beschreibung p { font-size: 0.98rem; }
.objekt-dialog__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 1.5rem; }
.objekt-dialog__foot { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }

@media (max-width: 639px) {
  .objekt-dialog { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; max-width: none; }
  .galerie__thumbs { display: none; }
}

/* =============================================
   EINBLENDUNGEN (ein System: IntersectionObserver + .is-visible)
   ============================================= */
.js .reveal-fade, .js .reveal-up, .js .reveal-left, .js .reveal-right {
  opacity: 0;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal-up    { transform: translateY(22px); }
.js .reveal-left  { transform: translateX(-16px); }
.js .reveal-right { transform: translateX(16px); }
.js .reveal-delay-1 { transition-delay: 0.1s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.3s; }
.js .is-visible { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal-fade, .js .reveal-up, .js .reveal-left, .js .reveal-right { opacity: 1; transform: none; transition: none; }
  .objekt-dialog[open] { animation: none; }
  .galerie img, .objekt-card__media img, .fokus__thumb img, .nav__toggle span { transition: none; }
}
