:root {
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --surface: #ffffff;
  --surface-alt: #f9fafb;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.08);
  --text: #0f172a;
  --text-soft: #6b7280;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --radius-lg: 18px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.82));
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.logo a {
  display: inline-flex;
  align-items: center;
}

.logo img {
  height: 120px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.86rem;
  color: var(--text-soft);
  align-items: center;
}

.main-nav a {
  position: relative;
  padding-block: 0.2rem;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #f97316, #fb923c);
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.75);
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin: 0 0 1.1rem;
}

.hero-text p {
  margin: 0 0 1.6rem;
  color: var(--text-soft);
  max-width: 32rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #0b1120;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.hero-image {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: #f3f4f6;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  overflow: hidden;
}

.hero-photo {
  flex: 1;
  background-image: url("hero-bau.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.4rem 1.4rem;
  background: rgba(248, 250, 252, 0.96);
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(249, 250, 251, 0.85);
  font-size: 0.78rem;
}

.section {
  padding: 2.5rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid rgba(209, 213, 219, 0.85);
}

.section h2 {
  font-size: 1.6rem;
  margin-bottom: 1.4rem;
}

.section-intro {
  color: var(--text-soft);
  max-width: 32rem;
  margin-bottom: 1.8rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  padding: 1.2rem 1.3rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.project-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: var(--surface);
  padding: 1rem 1.1rem 1.2rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.project-thumb {
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: repeating-linear-gradient(135deg, #e5e7eb 0, #e5e7eb 6px, #cbd5f5 6px, #cbd5f5 12px);
  aspect-ratio: 16 / 9;
  margin-bottom: 0.9rem;
}

.project-thumb--wohn {
  flex: 1;
  border: none;
  background-image: url("abc.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-thumb--buero {
  border: none;
  background-image: url("büro.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-thumb--bad {
  border: none;
  background-image: url("bad.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.project-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 2.2rem;
}

.about-grid p {
  color: var(--text-soft);
}

.about-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.94rem;
}

.about-list li::marker {
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.contact-details {
  margin-top: 1.2rem;
  font-size: 0.94rem;
  color: var(--text-soft);
}

.placeholder {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
}

.contact-form {
  background: var(--surface);
  padding: 1.4rem 1.5rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

label {
  font-size: 0.82rem;
  color: var(--text-soft);
}

input,
textarea {
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

textarea {
  border-radius: 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 1px solid rgba(249, 115, 22, 0.7);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.4);
}

.form-hint {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.form-status {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: #22c55e;
}

.site-footer {
  border-top: 1px solid rgba(209, 213, 219, 0.9);
  padding: 1.2rem 0 1.6rem;
  background: var(--bg-alt);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.back-to-top {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

@media (max-width: 800px) {
  .header-inner {
    min-height: auto;
  }

  .logo img {
    height: 86px;
  }

  .main-nav {
    position: absolute;
    inset-inline: 1.5rem;
    top: 6.2rem;
    border-radius: 18px;
    background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 1));
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
    padding: 0.7rem 0.9rem;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-image {
    justify-content: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer-nav a {
  font-size: 0.86rem;
}

.legal-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.legal-section .container {
  max-width: 720px;
}

.legal-section h2 {
  text-align: center;
  margin-bottom: 1.2rem;
}

.legal-section p {
  line-height: 1.6;
}