/* Marc Mitteis – Architekturbüro Konstanz
   Schlanke handgepflegte CSS, ersetzt den Adobe-Muse-Output von 2018.
   Design-DNA aus dem Original übernommen: schwarz auf weiß, Verdana
   für Überschriften/Navigation, Arial für Fließtext, unterstrichene Links. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, li, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* ---------- Basis ---------- */
html {
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  /* Scrollbar-Platz immer reservieren, damit Seiten ohne Scrollbar (Index)
     und mit Scrollbar (Projekte) horizontal bündig bleiben. */
  scrollbar-gutter: stable;
}

body {
  background: #ffffff;
  color: #000000;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}

a { color: #000000; text-decoration: underline; }
a:hover, a:focus { text-decoration: underline; }

/* ---------- Layout-Grundgerüst ---------- */
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  text-align: center;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

/* Kopfbereich mit Logo-Schriftzug */
.site-header {
  margin: 24px 0 32px;
  position: relative;
}

.site-title {
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 32px;
  line-height: 1.2;
  font-weight: normal;
  letter-spacing: 0.02em;
}

.site-title a { text-decoration: none; }
.site-title a:hover { text-decoration: underline; }

/* Hauptbild auf Startseite und Büro-Seite */
.hero-image {
  margin: 24px auto 32px;
  max-width: 1029px;
}

.hero-image img { width: 100%; height: auto; }

/* Kontaktblock und einfache Textblöcke (zentriert) */
.contact-block,
.text-block {
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  margin: 32px auto;
  max-width: 600px;
}

.contact-block p,
.text-block p { margin: 0 0 4px; }

.text-block p + p { margin-top: 6px; }

.spacer-small { height: 12px; }
.spacer-medium { height: 24px; }
.spacer-large { height: 48px; }

/* ---------- Navigation ---------- */
/* Zwei Reihen wie im Original: oben Hauptpunkte (Büro, Projekte),
   darunter rechtliche Punkte (Impressum, Datenschutz). */
.site-nav {
  margin: 48px auto 24px;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.site-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.site-nav a { display: inline-block; padding: 4px 8px; }

/* Aktiver Nav-Link bleibt visuell gleich wie die anderen –
   passt zum minimalen Stil; Markierung erfolgt nur per aria-current. */
.site-nav a[aria-current="page"] { font-weight: normal; }

/* Dezenter Hinweistext direkt unter dem Schriftzug auf den Unterseiten:
   signalisiert, dass MARC MITTEIS oben ein Link zurück zur Startseite ist.
   Wird absolut positioniert, damit der Hinweis die Header-Höhe nicht
   verändert und das Hauptbild auf Unterseiten exakt an der gleichen Stelle
   wie auf der Startseite landet (kein vertikaler Sprung beim Wechsel). */
.back-link {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin: 4px 0 0;
  text-align: center;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-style: italic;
  font-size: 13px;
  color: #7f7f7f;
}


/* ---------- Büro-Seite: Profil-Text ---------- */
.profile {
  text-align: left;
  max-width: 720px;
  margin: 32px auto;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.profile h2 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: bold;
  margin: 24px 0 8px;
}

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

.profile p { margin: 0 0 8px; }

.profile ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.profile ul li { margin: 0; }

.profile .registration {
  font-style: italic;
  margin-top: 32px;
}

/* Bürofoto */
.profile-image {
  max-width: 360px;
  margin: 0 auto 32px;
}

.profile-image img { width: 100%; height: auto; }

.profile-image.placeholder {
  aspect-ratio: 4 / 5;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-style: italic;
  border: 1px dashed #ccc;
}

/* ---------- Impressum / Datenschutz: Lange Textseiten ---------- */
.legal {
  text-align: left;
  max-width: 720px;
  margin: 24px auto;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.legal h1 {
  font-size: 22px;
  line-height: 1.2;
  font-weight: bold;
  margin: 0 0 24px;
  text-align: center;
}

.legal h2 {
  font-size: 16px;
  line-height: 1.2;
  font-weight: bold;
  margin: 32px 0 8px;
}

.legal p { margin: 0 0 12px; }

.legal a { word-break: break-word; }

/* ---------- Projekte: Slideshow ---------- */
.slideshow {
  /* Gleiche Breite und Position wie .hero-image auf der Startseite,
     damit das Bild beim Wechsel zwischen Seiten nicht springt. */
  margin: 24px auto 16px;
  max-width: 1029px;
  position: relative;
}

.slideshow-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1028 / 685;
  background: #ffffff;
  overflow: hidden;
}

.slideshow-track {
  position: absolute;
  inset: 0;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Klickflächen für Vor/Zurück über das Bild legen */
.slideshow-nav {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.slideshow-nav button {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.slideshow-nav button:focus-visible {
  outline: 2px solid #000;
  outline-offset: -4px;
}

.slideshow-prev { cursor: w-resize; }
.slideshow-next { cursor: e-resize; }

/* Bildunterschrift / Bedienhinweis */
.slideshow-caption {
  text-align: center;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-style: italic;
  color: #7f7f7f;
  font-size: 14px;
  line-height: 1.4;
  margin: 16px 0 8px;
}

.slideshow-counter {
  text-align: center;
  color: #7f7f7f;
  font-size: 13px;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  margin: 0 0 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  margin: 64px 0 16px;
  font-family: Verdana, Tahoma, Geneva, sans-serif;
  font-size: 14px;
  color: #7f7f7f;
  text-align: center;
}

.site-footer a { color: #7f7f7f; }

/* ---------- Responsive Anpassungen ---------- */

/* Tablet aufwärts: Navigation horizontal */
@media (min-width: 600px) {
  .site-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
}

/* Größere Tablets / kleine Desktops */
@media (min-width: 768px) {
  body { font-size: 14px; }

  .page { padding: 48px 32px 100px; }

  .site-header { margin: 32px 0 48px; }

  .contact-block,
  .text-block { font-size: 16px; line-height: 1.3; }

  .profile { font-size: 16px; line-height: 1.5; }

  .profile-image { max-width: 420px; }
}

/* Desktop */
@media (min-width: 1024px) {
  .page { padding: 64px 40px 120px; }

  .site-nav { gap: 32px; }
  .site-nav ul { gap: 32px; }

  .profile { display: grid; grid-template-columns: 360px 1fr; gap: 48px; align-items: start; max-width: 1000px; }
  .profile-image { margin: 0; }
}

/* Großbildschirme – nichts skaliert mehr aggressiv weiter; Layout bleibt
   bei max-width 1280 zentriert wie das Original. */

/* Print: schlichte Druckoptimierung (keine Slideshow, alles linear) */
@media print {
  .site-nav, .slideshow-nav, .slideshow-counter { display: none; }
  body { color: #000; background: #fff; }
  .slide { position: static; opacity: 1; }
  .slideshow-stage { aspect-ratio: auto; }
}
