/* Additive Fertigung Berlin – light flexbox shell */
:root {
  --bg: #f3f6f4;
  --bg-deep: #e4ebe6;
  --surface: #ffffff;
  --ink: #152018;
  --muted: #5a6b5f;
  --line: #c9d5cc;
  --accent: #7ecd03;
  --accent-dark: #1f7945;
  --accent-soft: rgba(126, 205, 3, 0.14);
  --cta: #ff3067;
  --cta-dark: #d41f52;
  --header-h: 72px;
  --radius: 6px;
  --shadow: 0 12px 40px rgba(21, 32, 24, 0.08);
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Source Serif 4", Georgia, serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(126, 205, 3, 0.18), transparent 55%),
    radial-gradient(900px 420px at 100% 0%, rgba(0, 95, 125, 0.12), transparent 50%),
    linear-gradient(180deg, #eef3ef 0%, var(--bg) 40%, #e8eee9 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cta-dark);
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(243, 246, 244, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px rgba(31, 121, 69, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.site-nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  background: var(--cta);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(255, 48, 103, 0.28);
}

.nav-cta:hover {
  background: var(--cta-dark);
  color: #fff !important;
}

/* Main */
.site-main {
  flex: 1;
  padding-bottom: 3.5rem;
}

.page-header {
  padding: 2.75rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), transparent);
}

.page-header h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.2;
  font-weight: 700;
  max-width: 22ch;
  color: var(--ink);
}

.content-area {
  padding-top: 2rem;
}

.content-area h2,
.content-area h3,
.romlicontainer h2,
.romlicontainer h3 {
  font-family: var(--display);
  line-height: 1.25;
  margin: 1.75rem 0 0.65rem;
}

.content-area p,
.romlicontainer p {
  margin: 0 0 1rem;
  color: #243028;
}

.content-area ul,
.content-area ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.content-area li {
  margin-bottom: 0.35rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background:
    linear-gradient(120deg, rgba(21, 32, 24, 0.88), rgba(0, 95, 125, 0.55)),
    linear-gradient(160deg, #1a2a1f 0%, #0f3a45 100%);
  color: #fff;
}

.hero h1,
.hero p,
.hero .hero-lead,
.hero .brand-name {
  color: #fff;
}

.hero .hero-lead {
  color: rgba(255, 255, 255, 0.9);
}

.hero .brand-name {
  color: var(--accent);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(126, 205, 3, 0.35), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
}

.hero .brand-name {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  font-weight: 700;
}

.hero-lead {
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--accent);
  color: #132016 !important;
  font-weight: 700;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn:hover,
a.btn:hover {
  background: #95e61a;
  transform: translateY(-1px);
}

.btn-outline,
a.btn-outline {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover,
a.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

.content-area .btn-outline,
.content-area a.btn-outline {
  color: var(--ink) !important;
  border-color: var(--line);
}

.content-area .btn-outline:hover,
.content-area a.btn-outline:hover {
  background: var(--accent-soft);
  color: var(--ink) !important;
}

.home-content {
  padding-top: 2.5rem;
}

.home-content .service-list {
  list-style: none;
  margin: 1.25rem 0 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-content .service-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  box-shadow: var(--shadow);
}

.home-content h3 {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: #152018;
  color: rgba(255, 255, 255, 0.82);
  padding: 3rem 0 1.5rem;
}

.site-footer a {
  color: #c8f07a;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  justify-content: space-between;
}

.footer-grid > div {
  flex: 1 1 200px;
  max-width: 320px;
}

.footer-title {
  margin: 0 0 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Blog list */
.blog-container {
  padding: 2rem 0 3rem;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.blog-title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  font-family: var(--display);
}

.blog-title a {
  text-decoration: none;
  color: var(--ink);
}

.blog-title a:hover {
  color: var(--accent-dark);
}

.blog-preview p {
  margin: 0;
  color: var(--muted);
}

/* Article / romli */
.romlicontainer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 2rem;
}

/* showLinks / showSitewide host */
.romlidata {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 0;
}

/* Forms leftover from WP */
.content-area form,
.content-area input,
.content-area textarea,
.content-area button,
.content-area select {
  font: inherit;
}

.content-area input[type="text"],
.content-area input[type="email"],
.content-area input[type="tel"],
.content-area textarea {
  width: 100%;
  max-width: 420px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.content-area button,
.content-area input[type="submit"] {
  margin-top: 0.75rem;
  padding: 0.65rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #132016;
  font-weight: 700;
  cursor: pointer;
}

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: 0.75rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    justify-content: center;
  }

  .header-bar {
    position: relative;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 3.25rem 0 2.5rem;
  }
}

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner {
    animation: rise 0.7s ease both;
  }

  .page-header h1 {
    animation: rise 0.55s ease both;
  }

  .blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(21, 32, 24, 0.12);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
