/*
 * bornemann architektur — Stylesheet
 * Original-Design, technisch erneuert
 */

/* ── Variablen ─────────────────────────────────────────────── */
:root {
  /* Originalfarben */
  --red:        #990000;
  --dark:       #282828;
  --footer-bg:  #1d1d1d;
  --text:       #333333;
  --text-mid:   #555555;
  --text-soft:  #999999;
  --border:     #e2e2e2;
  --bg-light:   #f4f4f4;
  --white:      #ffffff;

  /* Kompatibilitäts-Aliases für Inline-Styles */
  --charcoal:     #282828;
  --stone:        #888888;
  --stone-light:  rgba(255,255,255,0.55);
  --warm-white:   #f4f4f4;
  --text-light:   #555555;

  /* Typografie */
  --font-body:    'Open Sans', Arial, sans-serif;
  --font-ui:      'Lato', sans-serif;
  --font-heading: 'Lato', sans-serif;

  /* Animation */
  --ease:       0.25s ease;
  --transition: 0.25s ease;

  /* Layout */
  --wrapper:  990px;
  --header-h: 80px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 25px;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img    { display: block; max-width: 100%; height: auto; }
ul     { list-style: none; }
a      { color: var(--text); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--red); }
address { font-style: normal; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  max-width: var(--wrapper);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

/* ── Navigation ────────────────────────────────────────────── */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav > ul > li > a {
  display: block;
  padding: 10px 14px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  transition: color var(--ease);
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
  color: var(--red);
}

/* Dropdown */
.main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 160px;
  border-top: 2px solid var(--red);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 200;
}

.main-nav .sub-menu li a {
  display: block;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease), color var(--ease);
}

.main-nav .sub-menu li a:hover {
  background: var(--bg-light);
  color: var(--red);
}

.main-nav > ul > li:hover .sub-menu {
  display: block;
  animation: dropIn 0.2s ease;
}

@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* Cloud-Link */
.nav-cloud {
  margin-left: 8px;
  padding: 7px 14px !important;
  background: var(--dark) !important;
  color: var(--white) !important;
  font-size: 12px !important;
}
.nav-cloud:hover {
  background: var(--red) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  transition: var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sections ──────────────────────────────────────────────── */
.section { padding: 60px 0; }
.section--warm { background: var(--bg-light); }
.section--dark { background: var(--dark); }

.section-header { margin-bottom: 40px; }

.section-header h2 {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dark);
  margin: 6px 0 12px;
}
.section--dark .section-header h2 { color: var(--white); }

.section-divider {
  width: 40px;
  height: 3px;
  background: var(--red);
}

/* ── Label ─────────────────────────────────────────────────── */
.label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--red);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero .container { position: relative; z-index: 1; padding: 80px 20px; }

.hero-label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  display: block;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 24px;
}
.hero h1 strong { font-weight: 900; }

.hero-tagline {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.35);
  font-size: 10px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: opacity 0.3s;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.25);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%  { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100%{ transform: scaleY(1); transform-origin: top; opacity: 0; }
}

/* ── Page-Hero (Unterseiten) ───────────────────────────────── */
.page-hero {
  background: var(--dark);
  padding: 36px 0;
  border-bottom: 3px solid var(--red);
}
.page-hero h1 {
  font-family: var(--font-ui);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--white);
  margin-top: 8px;
  margin-bottom: 0;
}
.page-hero .breadcrumb       { color: rgba(255,255,255,0.45); }
.page-hero .breadcrumb a     { color: rgba(255,255,255,0.45); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero .label            { color: rgba(255,255,255,0.45); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 11px 24px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: #7a0000; color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.4); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-dark:hover { background: var(--red); color: var(--white); }

/* ── Grids ─────────────────────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Typografie-Elemente ───────────────────────────────────── */
h1 {
  font-family: var(--font-ui);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dark);
  margin-bottom: 30px;
  line-height: 1.4;
}
h2 {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  margin: 30px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--red);
}
h3 { font-family: var(--font-ui); font-size: 15px; font-weight: 700; color: var(--dark); margin: 20px 0 8px; }
h4 { font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--dark); margin: 16px 0 6px; }
p  { margin-bottom: 16px; }
.lead { font-size: 16px; line-height: 1.75; color: var(--text-mid); }
.text-center { text-align: center; }

/* ── Pullquote ─────────────────────────────────────────────── */
.pullquote {
  border-left: 4px solid var(--red);
  padding: 20px 28px;
  background: var(--bg-light);
  margin: 0;
}
.pullquote p {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  color: var(--dark);
  font-style: italic;
  margin: 0;
}

/* ── Service-Karten ────────────────────────────────────────── */
.service-card {
  padding: 28px 22px;
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--ease), transform var(--ease);
}
.service-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}
.service-icon {
  width: 40px;
  height: 40px;
  color: var(--red);
  margin-bottom: 16px;
}
.service-card h3 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dark);
  margin-bottom: 10px;
  margin-top: 0;
}
.service-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  margin: 0;
}

/* ── Service-Items (Liste) ─────────────────────────────────── */
.service-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.service-item:first-of-type { border-top: 1px solid var(--border); }

.service-number {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  padding-top: 2px;
}
.service-item h3 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 6px;
}
.service-item p { font-size: 14px; color: var(--text-mid); line-height: 1.7; margin: 0; }

/* ── Cards ─────────────────────────────────────────────────── */
.card { border: 1px solid var(--border); background: var(--white); overflow: hidden; }
.card-body { padding: 20px; border-top: 2px solid var(--red); }
.card-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 8px;
}
.card h3 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 10px;
}
.card p { font-size: 13px; color: var(--text-mid); line-height: 1.7; margin: 0; }

/* ── Projekt-Karten ────────────────────────────────────────── */
.project-card {
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--ease), transform var(--ease);
  overflow: hidden;
  display: block;
  color: var(--text);
}
.project-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  transform: translateY(-3px);
  color: var(--text);
}
.project-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-light);
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-card:hover .project-card-image img { transform: scale(1.04); }
.project-card-body { padding: 16px; border-top: 2px solid var(--red); }

.project-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.project-type-badge {
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
}
.project-year { font-size: 12px; color: var(--text-soft); }
.project-card h3 {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin: 0 0 6px;
}
.project-card p { font-size: 13px; color: var(--text-mid); margin: 0; }

/* ── Projekt-Detail ────────────────────────────────────────── */
.project-detail {
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.project-detail-header {
  background: var(--dark);
  padding: 2.5rem;
  color: var(--white);
}
.project-detail-header h2 {
  color: var(--white);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: 1px;
}
.project-detail-header .lead { color: rgba(255,255,255,0.6); }
.project-detail-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.project-detail-body { padding: 2.5rem; }
.project-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.project-info-item dt {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  margin-bottom: 3px;
}
.project-info-item dd { font-size: 14px; color: var(--text-mid); }

/* ── Filter ────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: 8px 20px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-mid);
  cursor: pointer;
  transition: all var(--ease);
}
.filter-btn:hover,
.filter-btn.active { background: var(--dark); border-color: var(--dark); color: var(--white); }

/* ── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb { font-size: 12px; color: var(--text-soft); margin-bottom: 12px; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb span { margin: 0 4px; }

/* ── Kontakt ───────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-details dt {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-top: 16px;
}
.contact-details dt:first-child { margin-top: 0; }
.contact-details dd { font-size: 14px; color: rgba(255,255,255,0.6); }
.contact-details a  { color: rgba(255,255,255,0.6); }
.contact-details a:hover { color: var(--white); }

/* Kontakt auf hellen Seiten */
.section:not(.section--dark) .contact-details dd { color: var(--text-mid); }
.section:not(.section--dark) .contact-details a  { color: var(--text-mid); }
.section:not(.section--dark) .contact-details a:hover { color: var(--red); }

.contact-form-group { margin-bottom: 16px; }
.contact-form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.contact-form-group input,
.contact-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--ease);
}
.contact-form-group input:focus,
.contact-form-group textarea:focus { border-color: var(--red); }
.contact-form-group textarea { min-height: 120px; resize: vertical; }
.contact-form-group input::placeholder,
.contact-form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

/* ── Tags ──────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  color: var(--text-mid);
}

/* ── Credentials (Timeline) ────────────────────────────────── */
.credentials-list { list-style: none; }
.credential-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-mid);
}
.credential-year {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--red);
  font-size: 13px;
}

/* ── Formate-Grid ──────────────────────────────────────────── */
.format-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.format-item {
  padding: 8px 14px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.format-item small {
  display: block;
  font-weight: 400;
  color: var(--text-soft);
  font-size: 10px;
  margin-top: 2px;
}

/* ── Team-Mitglieder ───────────────────────────────────────── */
.team-member {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.team-avatar-placeholder {
  width: 48px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.team-info h4 { margin: 0 0 2px; font-size: 14px; }
.team-info span { font-size: 12px; color: var(--text-soft); }

/* ── Scroll-Reveal ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Bio-Foto ──────────────────────────────────────────────── */
.bio-photo {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}
.bio-photo img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-top: 3px solid var(--red);
}
.bio-photo-caption {
  padding: 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-top: none;
}
.bio-photo-caption h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 4px;
}
.bio-photo-caption p {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.5);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-logo {
  height: 28px;
  width: auto;
  margin-bottom: 12px;
  opacity: 0.75;
}
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.4); line-height: 1.6; margin: 0; }
.footer-heading {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--white);
  margin-bottom: 14px;
  margin-top: 0;
}
.footer-address {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
}
.footer-address a { color: rgba(255,255,255,0.5); }
.footer-address a:hover { color: var(--white); }
.footer-nav-list li + li { margin-top: 8px; }
.footer-nav-list a { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-nav-list a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--white); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 3px);
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 99;
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 0; }
  .main-nav > ul > li > a { padding: 14px 20px; border-bottom: 1px solid var(--border); }
  .main-nav .sub-menu { position: static; border-top: none; box-shadow: none; }
  .main-nav .sub-menu li a { padding-left: 36px; }

  .grid-2,
  .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid  { grid-template-columns: 1fr; }
  .project-info-grid { grid-template-columns: 1fr; }
  .bio-photo { position: static; }
  .bio-photo img { aspect-ratio: 1/1; max-height: 300px; }
  .hero h1 { font-size: 28px; }
  .hero .container { padding: 60px 20px; }
}
