/* Nordlicht 247 – shared styles */

:root {
  --nl-bg: #f8f6f2;
  --nl-sand: #e4cfa3;
  --nl-blue-dark: #1f3b57;
  --nl-blue: #4e84a6;
  --nl-green: #7c9f88;
  --nl-text: #22313f;
}

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

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: var(--nl-bg);
  color: var(--nl-text);
  line-height: 1.6;
}

/* Layout */

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
}

/* Header / Nav */

header {
  background: linear-gradient(
    120deg,
    rgba(31, 59, 87, 0.95),
    rgba(78, 132, 166, 0.9)
  );
  color: #fff;
  padding: 0.75rem 1.5rem;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.brand img {
  height: 52px;
  width: auto;
}

/* Make sure no link state ever adds underlining */
.brand:link,
.brand:visited,
.brand:hover,
.brand:active {
  text-decoration: none !important;
}

/* BRAND NAME */
.brand-name {
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.25rem;
  text-transform: uppercase;
  color: #eff0e1 !important;  /* fixed deep blue */
}

/* Lock color across all link states */
.brand:link .brand-name,
.brand:visited .brand-name,
.brand:hover .brand-name,
.brand:active .brand-name {
  color: #eff0e1 !important;
}

/* BRAND TAGLINE */
.brand-tagline {
  font-size: 0.85rem;
  opacity: 0.85;
  color: #eff0e1 !important; /* soft Nordlicht blue */
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Ensure tagline color never changes on link states */
.brand:link .brand-tagline,
.brand:visited .brand-tagline,
.brand:hover .brand-tagline,
.brand:active .brand-tagline {
  color: #eff0e1 !important;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.25rem;
}

nav a {
  color: #fdfdfd;
  text-decoration: none;
  font-size: 0.95rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  border-color: var(--nl-sand);
}

/* Hero */

.hero {
  background: linear-gradient(
      to bottom,
      rgba(248, 246, 242, 0.1),
      rgba(248, 246, 242, 1)
    ),
    radial-gradient(circle at 10% -10%, rgba(228, 207, 163, 0.45), transparent),
    radial-gradient(circle at 100% 20%, rgba(126, 159, 136, 0.15), transparent);
  padding: 3rem 1.5rem 2rem;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 0.75rem;
  color: var(--nl-blue-dark);
}

.hero p {
  margin-bottom: 1.25rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  background: rgba(124, 159, 136, 0.1);
  color: var(--nl-green);
  border: 1px solid rgba(124, 159, 136, 0.4);
  margin-bottom: 0.6rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    background-color 0.12s ease;
}

.btn-primary {
  background: var(--nl-blue-dark);
  color: #fff;
  box-shadow: 0 4px 10px rgba(31, 59, 87, 0.35);
}

.btn-primary:hover {
  background: var(--nl-blue);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31, 59, 87, 0.4);
}

.btn-ghost {
  background: rgba(248, 246, 242, 0.8);
  color: var(--nl-blue-dark);
  border: 1px solid rgba(31, 59, 87, 0.18);
}

.btn-ghost:hover {
  background: #ffffff;
}

/* Hero illustration block */

.hero-card {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(31, 59, 87, 0.06);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.hero-pill {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(78, 132, 166, 0.08);
  color: var(--nl-blue);
}

.hero-dunes {
  margin-top: 1rem;
  height: 90px;
  background: linear-gradient(
    to top right,
    var(--nl-sand),
    rgba(228, 207, 163, 0.8)
  );
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
}

.hero-dunes::before,
.hero-dunes::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 10% 120%,
      rgba(78, 132, 166, 0.7),
      transparent 60%
    ),
    radial-gradient(
      circle at 90% 120%,
      rgba(124, 159, 136, 0.65),
      transparent 60%
    );
  opacity: 0.85;
  mix-blend-mode: multiply;
}

/* Sections */

.section {
  padding: 2.5rem 1.5rem 2.25rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 1.25rem;
}

.section-header h2 {
  margin: 0 0 0.35rem;
  color: var(--nl-blue-dark);
}

.section-header p {
  margin: 0;
  max-width: 560px;
}

/* Category grid */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(31, 59, 87, 0.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.card img {
  width: 100%;
  border-radius: 0.85rem;
  display: block;
  margin-bottom: 0.6rem;
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--nl-blue-dark);
}

.card span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nl-green);
}

.card p {
  font-size: 0.9rem;
  margin: 0.4rem 0;
}

/* Services list */

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-item {
  padding-left: 0.75rem;
  border-left: 3px solid rgba(124, 159, 136, 0.6);
}

/* Contact page */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}

.contact-box {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgba(31, 59, 87, 0.06);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.03);
}

form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(31, 59, 87, 0.25);
  font: inherit;
  resize: vertical;
}

form input:focus,
form textarea:focus {
  outline: 2px solid rgba(78, 132, 166, 0.45);
  border-color: transparent;
}

form .field {
  margin-bottom: 0.75rem;
}

/* Impressum */

.impressum-block h3 {
  margin-bottom: 0.25rem;
  margin-top: 1.1rem;
}

.impressum-block p {
  margin: 0.1rem 0;
  font-size: 0.9rem;
}

/* Footer */

footer {
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1.5rem;
  font-size: 0.8rem;
}

footer .footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--nl-blue-dark);
  text-decoration: none;
}

/* Responsive */

@media (max-width: 800px) {
  .hero-inner,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  nav ul {
    flex-wrap: wrap;
  }
}
