/* ================================================
   nubologic.com — style.css
   Static rebuild · Pure CSS3
   ================================================ */

/* Inter — self-hosted, no Google CDN (GDPR compliant) */
/* latin-ext: covers extended Latin characters */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
                 U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF,
                 U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin: covers standard Latin characters incl. ä ö ü ß */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
                 U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Variables --- */
:root {
  --accent:   #00ADEE;
  --bg-base:  #050b18;
  --white:    #ffffff;
  --muted:    rgba(255, 255, 255, 0.85);
  --border:   rgba(255, 255, 255, 0.82);
  --input-bg: rgba(255, 255, 255, 0.10);
  --font:     'Inter', system-ui, -apple-system, sans-serif;
  --radius:   4px;
}

/* --- Base --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--white);
  background-color: var(--bg-base);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* --- Background image --- */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('../assets/bg.png') center center / cover no-repeat;
  pointer-events: none;
}

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

main {
  flex: 1; /* pushes footer to bottom of viewport */
}

/* =============================
   HEADER
   ============================= */
header {
  padding: 2rem 3.5rem;
}

.logo {
  display: inline-block;
  text-decoration: none;
  line-height: 1;
}

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

/* =============================
   HERO SECTION
   ============================= */
.hero {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 5rem;
  padding: 2rem 3.5rem 5rem;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

/* --- Text block --- */
.hero-text h1 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.hero-text h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 2.25rem;
}

.hero-text p {
  font-size: 0.925rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 420px;
  font-weight: 400;
}

/* --- Contact form --- */
.contact-form {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

/* Row 1: Vorname | Nachname | Firma  → each 2 of 6 cols */
.field-vorname,
.field-nachname,
.field-firma {
  grid-column: span 2;
}

/* Row 2: Telefon | Email  → each 3 of 6 cols */
.field-telefon,
.field-email {
  grid-column: span 3;
}

/* Row 3+: full width */
.field-message,
.btn-submit,
.form-message {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font);
  font-size: 0.875rem;
  padding: 0.75rem 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.btn-submit {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.875rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  text-transform: uppercase;
}

.btn-submit:hover {
  background: #0099d4;
}

.btn-submit:active {
  transform: scale(0.99);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form feedback messages */
.form-message {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  text-align: center;
  margin-top: 2px;
}

.form-message.success {
  background: rgba(0, 173, 238, 0.12);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.form-message.error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid #ff5555;
  color: #ff8888;
}

/* =============================
   FOOTER
   ============================= */
footer {
  padding: 1.25rem 3.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-links .sep {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 0.75rem;
  font-size: 0.8rem;
}

/* =============================
   IMPRINT PAGE
   ============================= */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 3.5rem 5rem;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--white);
}

.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.legal-page a {
  color: var(--accent);
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

.legal-page ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page ul li {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.legal-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 3rem 0;
}

/* =============================
   RESPONSIVE
   ============================= */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 1.5rem 2rem 4rem;
  }

  header {
    padding: 1.5rem 2rem;
  }

  footer {
    padding: 1.25rem 2rem;
  }

}

@media (max-width: 600px) {
  header {
    padding: 1.25rem 1.25rem;
  }

  .hero {
    padding: 1rem 1.25rem 3.5rem;
    gap: 2rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .field-vorname,
  .field-nachname,
  .field-firma,
  .field-telefon,
  .field-email,
  .field-message,
  .btn-submit,
  .form-message {
    grid-column: span 1;
  }

  footer {
    padding: 1rem 1.25rem;
  }

  .legal-page {
    padding: 2rem 1.25rem 4rem;
  }
}
