/* Direktion 1894 — static site, no framework */
:root {
  --bg: #0b0a0f;
  --bg-elev: #12101a;
  --card: #1a1520;
  --border: #2a2030;
  --text: #d4c8b4;
  --text-bright: #f0e6d3;
  --gold: #c9a96e;
  --gold-dim: #e0c097;
  --hero-overlay: rgba(0, 0, 0, 0.55);
  --coming-soon-bg: rgba(12, 10, 15, 0.8);
  --space: clamp(1rem, 4vw, 2rem);
  --radius: 0.75rem;
  --max: 70rem;
  font-size: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Merriweather", Georgia, serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold);
  margin: 0 0 0.75em;
}

h1 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 4vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.4rem); }

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* Coming Soon ribbon — stays readable on small screens */
.coming-soon {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  overflow: hidden;
}

.coming-soon__band {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180vmax;
  max-width: none;
  transform: translate(-50%, -50%) rotate(-25deg);
  background: var(--coming-soon-bg);
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
  font-size: clamp(1.1rem, 4.5vw, 2.25rem);
  padding: 0.65em 0;
  border-top: 2px solid rgba(201, 169, 110, 0.35);
  border-bottom: 2px solid rgba(201, 169, 110, 0.35);
  line-height: 1.2;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: var(--space);
  padding-right: var(--space);
}

.site-header {
  background: #000;
  padding: 0.75rem var(--space);
  position: relative;
  z-index: 10;
}

.site-header__logo {
  display: block;
  max-width: min(12rem, 70vw);
}

.site-header__logo img {
  width: 100%;
  height: auto;
}

/* Hero: min-height, safe padding, background cover */
.hero {
  position: relative;
  min-height: min(80vh, 40rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space);
  padding-top: clamp(2.5rem, 8vw, 4rem);
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
  background-color: #1a1018;
  background-image:
    linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("../images/diedirektion-flyer-motiv-1280x853.jpg");
  background-size: cover;
  background-position: center;
}

.hero__inner {
  max-width: 42em;
  margin-inline: auto;
  width: 100%;
  text-align: center;
}

.hero__title {
  color: var(--text-bright);
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  margin-bottom: 0.5em;
}

.hero__text {
  color: var(--text-bright);
  font-size: clamp(0.95rem, 2.8vw, 1.1rem);
  max-width: none;
  margin-inline: auto;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  text-align: center;
}

.hero__text a {
  color: var(--gold);
}

/* Sections */
section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section--muted {
  background: var(--bg-elev);
}

.section__title {
  text-align: center;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

/* Price cards: zwei Kästen (Preise + Gutschein) */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card-grid--two {
  max-width: 48rem;
  margin-inline: auto;
}

@media (min-width: 40em) {
  .card-grid--two {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
}

.card__text {
  font-size: 0.95rem;
}

/* Apartments */
.apartment-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 48em) {
  .apartment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.apartment-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apartment-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(145deg, #1c1c1c 0%, #2a2a2a 50%, #1f1f1f 100%);
  overflow: hidden;
}

.apartment-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.apartment-card__media::after {
  content: "Foto folgt";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: rgba(201, 169, 110, 0.35);
  letter-spacing: 0.08em;
}

.apartment-card__media img.is-broken {
  display: none;
}

.apartment-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
}

/* Story block + gallery */
.story {
  max-width: 48rem;
  margin-inline: auto;
  background: #1c1c1c;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.story p {
  line-height: 1.8;
  color: var(--text-bright);
  font-size: 0.95rem;
}

.story h2 {
  color: var(--gold-dim);
  margin-bottom: 1em;
}

/* Impressionen: volle Textbreite, untereinander, ohne runde Ecken */
.gallery--stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
  width: 100%;
}

.gallery--stack .gallery__item {
  text-align: center;
  margin: 0;
}

.gallery--stack .gallery__item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid rgba(201, 169, 110, 0.25);
}

.gallery--stack .gallery__item figcaption {
  font-size: 0.8rem;
  color: var(--gold);
  font-style: italic;
  margin-top: 0.5rem;
}

.story__opening {
  text-align: center;
  color: var(--gold-dim);
  font-size: clamp(1rem, 3vw, 1.2rem);
  margin-top: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85em 1.5em;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--gold);
  border-radius: 999px;
  background: var(--gold);
  color: var(--bg) !important;
  cursor: pointer;
  text-align: center;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover,
.btn:focus-visible {
  background: #d4ba85;
  border-color: #d4ba85;
}

.btn--block {
  display: block;
  width: 100%;
  max-width: 22rem;
  margin-inline: auto;
}

.btn-wrap {
  text-align: center;
  margin-top: 1.5rem;
}

/* Footer */
.site-footer {
  background: #000;
  color: var(--text-bright);
  text-align: center;
  padding: 1.5rem var(--space);
  font-size: 0.9rem;
}

.muted {
  opacity: 0.85;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .coming-soon__band { transform: translate(-50%, -50%) rotate(-25deg); }
}
