/* ============================================================
   Norder Wohnen GmbH – Stylesheet
   ============================================================ */

/* ===== Inter – lokal gehostet (DSGVO-konform) ===== */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/inter/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===== Custom Properties ===== */
:root {
  --color-primary:   #1A3A5C;
  --color-accent:    #4A90A4;
  --color-bg:        #F7F8FA;
  --color-surface:   #FFFFFF;
  --color-text:      #2C2C2C;
  --color-muted:     #6B7280;
  --color-success:   #22C55E;
  --color-warning:   #F59E0B;
  --color-info:      #3B82F6;
  --color-neutral:   #9CA3AF;
  --color-footer:    #0f2237;

  --shadow-card:   0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-header: 0 2px 16px rgba(0, 0, 0, 0.10);
  --shadow-form:   0 4px 24px rgba(0, 0, 0, 0.15);

  --radius-card: 8px;
  --radius-btn:  4px;
  --transition:  200ms ease;

  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1200px;
  --header-h:  72px;
}

/* ===== Reset ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

/* Inline body-copy links get underlines for WCAG 1.4.1 */
.faq-answer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

ul { list-style: none; }

/* ===== Typography ===== */
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== Layout Utilities ===== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #3a7a8e;
  border-color: #3a7a8e;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(74, 144, 164, 0.40);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

/* ===== Sticky Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo img {
  height: 44px;
  width: auto;
}

/* ===== Navigation ===== */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 0.125rem;
  align-items: center;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-btn);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
}

.nav-list a:hover {
  color: var(--color-primary);
  background: rgba(26, 58, 92, 0.06);
}

.nav-list a.nav-cta {
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-btn);
  margin-left: 0.5rem;
}

.nav-list a.nav-cta:hover {
  background: #142d47;
  color: #fff;
}

/* ===== Hamburger (hidden on desktop) ===== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 60%, rgba(74, 144, 164, 0.35) 0%, transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    linear-gradient(135deg, var(--color-primary) 0%, #1e4a6e 50%, #1a5f78 100%);
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(255, 255, 255, 0.015) 60px,
      rgba(255, 255, 255, 0.015) 61px
    );
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, rgba(74,144,164,0.3) 100%);
}

.hero-content {
  position: relative;
  max-width: 660px;
  color: #fff;
}

.hero-content h1 {
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-tagline {
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.075rem;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2.5rem;
  max-width: 520px;
  line-height: 1.7;
}

/* ===== About Section ===== */
.about {
  background: var(--color-surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--color-text);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-text h3 {
  color: var(--color-primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-bg);
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ===== Projects Section ===== */
.projects {
  background: var(--color-bg);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

a.project-card {
  text-decoration: none;
  color: inherit;
}

.card-image {
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.06);
}

.status-badge {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.status-done {
  background: #dcfce7;
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-inprogress {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.status-info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.status-planned {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.card-body {
  padding: 1.375rem 1.375rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  color: var(--color-primary);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.card-units {
  font-weight: 400;
  font-size: 0.9em;
  color: var(--color-muted);
}

.card-body p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}

.card-body .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ===== FAQ Section ===== */
.faq {
  background: var(--color-surface);
}

.faq-list {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  border: 1.5px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: rgba(74, 144, 164, 0.3);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
  list-style: none;
  transition: background var(--transition);
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-accent);
  transition: transform var(--transition);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  background: rgba(26, 58, 92, 0.03);
}

.faq-item .faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ===== Historic Buildings Section ===== */
.historic {
  background: var(--color-bg);
}

.historic-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.historic-text p {
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.historic-image img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

/* ===== Contact Section ===== */
.contact {
  background: var(--color-primary);
}

.contact .section-header h2 {
  color: #fff;
}

.contact .section-subtitle {
  color: rgba(255, 255, 255, 0.68);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-block {
  color: #fff;
}

.contact-person {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  object-fit: cover;
  object-position: center top;
}

.contact-person h3 {
  color: #fff;
  margin-bottom: 0.25rem;
}

.contact-role {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.975rem;
}

.contact-icon {
  font-style: normal;
  font-size: 1.1rem;
  min-width: 1.5rem;
  margin-top: 0.05rem;
}

.contact-details a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: color var(--transition);
}

.contact-details a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-form);
}

.contact-form-wrapper h3 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: 2px solid transparent;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-neutral);
}

.form-group input:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.15);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--color-footer);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.375rem;
  text-align: center;
}

.footer-logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-divider {
  color: rgba(255, 255, 255, 0.2);
}

.copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.42);
}

/* ===== Responsive – 1024px ===== */
@media (max-width: 1024px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-list a {
    font-size: 0.8rem;
    padding: 0.45rem 0.6rem;
  }
}

/* ===== Responsive – 768px ===== */
@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  /* Mobile nav */
  .hamburger {
    display: flex;
  }

  .nav-list {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-surface);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.25rem;
    overflow-y: auto;
    box-shadow: var(--shadow-header);
    z-index: 101;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list a {
    padding: 0.9rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--radius-card);
  }

  .nav-cta {
    text-align: center;
    margin-left: 0 !important;
    margin-top: 0.5rem;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
    align-items: flex-end;
    padding-bottom: 3.5rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  /* Projects */
  .project-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  /* Historic */
  .historic-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* Footer */
  .footer-nav {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .project-grid {
    max-width: 100%;
  }

  .hero-tagline {
    font-size: 1.1rem;
  }
}

/* ===== Sub-Page Styles ===== */

.page-hero {
  background:
    radial-gradient(circle at 80% 50%, rgba(74, 144, 164, 0.25) 0%, transparent 60%),
    linear-gradient(135deg, var(--color-primary) 0%, #1e4a6e 100%);
  padding: 3.5rem 0 3rem;
  color: #fff;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 0.5rem;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.breadcrumb a:hover { color: var(--color-accent); }

.breadcrumb-sep { color: rgba(255, 255, 255, 0.35); }

/* Active nav link */
.nav-list a.nav-active {
  color: var(--color-primary);
  font-weight: 700;
}

/* Rental status table */
.rental-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--color-surface);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.rental-table th {
  background: var(--color-primary);
  color: #fff;
  padding: 0.875rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rental-table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-text);
  vertical-align: middle;
}

.rental-table tr:last-child td { border-bottom: none; }

.rental-table tr:hover td { background: rgba(26, 58, 92, 0.03); }

.td-rented   { color: #166534; font-weight: 600; }
.td-reserved { color: #92400e; font-weight: 600; }
.td-available{ color: #1e40af; font-weight: 600; }

/* Info box */
.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--color-info);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.25rem 1.5rem;
  color: #1e3a5f;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.info-box strong { display: block; margin-bottom: 0.25rem; font-size: 1rem; }

/* Warning box */
.warn-box {
  background: #fffbeb;
  border-left: 4px solid var(--color-warning);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  padding: 1.25rem 1.5rem;
  color: #78350f;
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.warn-box strong { display: block; margin-bottom: 0.25rem; }

/* Section with alternating bg */
.section-light  { background: var(--color-surface); }
.section-tinted { background: var(--color-bg); }

/* Building card (historic) */
.building-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.building-card {
  background: var(--color-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.building-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.building-card-body {
  padding: 1.5rem;
}

.building-card-body h3 {
  color: var(--color-primary);
  margin-bottom: 0.625rem;
}

.building-card-body p {
  color: var(--color-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Contact page team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.team-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.team-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center 15%;
}

/* Kontakt-Seite: zweispaltiges Grid */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Legal pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  color: var(--color-primary);
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-bg);
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 0.875rem;
  font-size: 0.95rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Project detail card (full-width) */
.project-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.project-detail:last-child { border-bottom: none; }

.project-detail.reverse { direction: rtl; }
.project-detail.reverse > * { direction: ltr; }

.project-detail img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.project-detail-text h3 {
  color: var(--color-primary);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.project-detail-text p {
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.project-meta-item {
  background: var(--color-bg);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  color: var(--color-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .building-grid,
  .project-detail,
  .project-detail.reverse,
  .team-grid,
  .contact-page-grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .building-card img { height: 200px; }
  .team-card img { height: 240px; }

  .rental-table {
    font-size: 0.8rem;
  }

  .rental-table th,
  .rental-table td {
    padding: 0.6rem 0.7rem;
  }
}

/* ===== Animationen ===== */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
  }

  main {
    animation: fadeUp 0.35s ease both;
  }

  .anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
  }

  .anim.anim--in {
    opacity: 1;
    transform: none;
  }
}
