/* css/style.css — JULITH GmbH, matching WordPress design */

/* === Font Faces === */

/* Nunito — body font (variable, weights 300–600) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/nunito/nunito-variable.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;
}

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('../fonts/nunito/nunito-variable-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;
}

/* Roboto — heading font (variable, weights 400–500) */
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/roboto/roboto-variable.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;
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/roboto/roboto-variable-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;
}

/* Cardo — serif accent font */
@font-face {
  font-family: 'Cardo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cardo/cardo-regular.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;
}

@font-face {
  font-family: 'Cardo';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/cardo/cardo-italic.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;
}

/* === Custom Properties === */
:root {
  --bg: #f9f9f9;
  --bg-alt: #f0f0f0;
  --text: #111111;
  --text-secondary: #636363;
  --accent-warm: #c2a990;
  --accent-terracotta: #d8613c;
  --accent-terracotta-hover: #c0542f;
  --accent-green: #b1c5a4;
  --accent-sage: #b5bdbc;
  --accent-beige: #cfcabe;
  --white: #ffffff;
  --black: #000000;
  --border: #e0e0e0;

  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Cardo', Georgia, 'Times New Roman', serif;

  --max-width: 1100px;
  --header-height: 72px;

  --bg-dark: #111111;
  --bg-dark-card: rgba(255, 255, 255, 0.05);
  --bg-dark-card-border: rgba(255, 255, 255, 0.08);
  --text-light: #ffffff;
  --text-light-muted: rgba(255, 255, 255, 0.6);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.05rem;
}

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

a {
  color: var(--text);
  text-decoration: none;
}

ul {
  list-style: none;
}

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
}

h1 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.2;
}

h2 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.3;
}

h3 {
  font-size: 20px;
  line-height: 1.4;
}

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

.section {
  padding: 80px 0;
}

.section--alt {
  background: var(--bg-alt);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 2px;
}

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

.btn--terracotta {
  background: var(--accent-terracotta);
}

.btn--terracotta:hover {
  background: var(--accent-terracotta-hover);
}

/* === Header === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0.5rem 24px 0;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  background: rgba(0, 0, 0, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 40px;
  padding: 0 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease;
}

.header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header__logo img {
  height: 28px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--text-light-muted);
  transition: color 0.2s;
}

.header__nav a:hover {
  color: var(--white);
}

.header__nav a:focus-visible {
  outline: 2px solid var(--accent-terracotta);
  outline-offset: 4px;
}

.header__nav .github-icon {
  display: flex;
  align-items: center;
}

.header__nav .github-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--text-light-muted);
  transition: fill 0.2s;
}

.header__nav .github-icon:hover svg {
  fill: var(--white);
}

/* Hamburger */
.header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-light);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile nav */
@media (max-width: 690px) {
  .header__toggle {
    display: block;
  }

  .header__nav {
    display: none;
    position: absolute;
    top: calc(var(--header-height) + 8px);
    left: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }

  .header__nav.is-open {
    display: flex;
  }
}

/* === Footer === */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--bg-dark-card-border);
  padding: 48px 0 24px;
  font-size: 14px;
  color: var(--text-light-muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
  font-family: var(--font-body);
}

.footer__col a {
  display: block;
  color: var(--text-light-muted);
  margin-bottom: 8px;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__col a:hover {
  color: var(--accent-terracotta);
}

.footer__col p {
  color: var(--text-light-muted);
}

.footer__bottom {
  text-align: center;
  font-size: 12px;
  color: var(--text-light-muted);
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 690px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* === Hero Section === */
.hero {
  background: var(--bg-dark);
  padding: calc(var(--header-height) + 60px) 0 80px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero__subtitle {
  color: var(--text-light-muted);
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* Homepage hero — background image, height adapts to image aspect ratio */
.hero--home {
  min-height: auto;
  aspect-ratio: 2560 / 1707;
  display: flex;
  align-items: center;
  padding: 0;
  background: url('../images/content/hero-background.jpg') center/100% auto no-repeat;
}

/* Hero text card — dark blurred panel on left side */
.hero__card {
  background: rgba(18, 18, 18, 0.52);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 17px;
  padding: 32px;
  max-width: 46%;
  margin-left: 4%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.8s ease forwards;
}

@media (max-width: 690px) {
  .hero__card {
    max-width: 100%;
    margin: 1em;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero--home .container {
  width: 100%;
}

/* Hero load animation */
.hero .hero-animate {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.hero .hero-animate:nth-child(1) { animation-delay: 0.1s; }
.hero .hero-animate:nth-child(2) { animation-delay: 0.2s; }
.hero .hero-animate:nth-child(3) { animation-delay: 0.3s; }
.hero .hero-animate:nth-child(4) { animation-delay: 0.4s; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 30px;
  background: var(--text-light-muted);
  animation: pulse 2s ease-in-out infinite;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.scroll-indicator--hidden {
  opacity: 0;
}

/* === Services Section === */
.services-section {
  padding: 80px 0;
  background: var(--bg);
}

.services-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.services-section__header h2 {
  margin-bottom: 8px;
}

.services-section__header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 3D Card */
.service-card {
  position: relative;
  background: #f0f0f0;
  border: none;
  border-radius: 20px;
  padding: 32px 24px;
  transition: transform 300ms ease-out, box-shadow 300ms ease-out;
  transform-style: preserve-3d;
  perspective: 800px;
  cursor: default;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 300ms ease-out;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(194, 169, 144, 0.15), transparent 60%);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  box-shadow: 0 5px 20px 5px rgba(0, 0, 0, 0.08);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--text);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 690px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* === Why JULITH Section === */
.why-section {
  padding: 80px 0;
  background: var(--white);
}

.why-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.why-section__header h2 {
  margin-bottom: 16px;
}

.why-section__header > p {
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
}

.why-row {
  display: grid;
  grid-template-columns: 40% 50%;
  gap: 10%;
  align-items: center;
  margin-bottom: 48px;
}

.why-row--reverse {
  grid-template-columns: 50% 40%;
}

.why-row__text h3 {
  margin-bottom: 16px;
}

.why-row__image img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.why-bullets {
  list-style: none;
  padding: 0;
}

.why-bullets li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.why-bullets li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-terracotta);
  font-weight: 700;
}

.why-bullets li strong {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 690px) {
  .why-row,
  .why-row--reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* === Testimonial / Quote Section === */
.quote-section {
  padding: 80px 24px;
  background: var(--bg-alt);
  text-align: center;
}

.quote-section__content {
  max-width: 700px;
  margin: 0 auto;
}

.quote-section blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 24px;
}

.quote-section__author-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.quote-section__author-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-section__author-info {
  text-align: left;
}

.quote-section__author {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.quote-section__role {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* === About Page === */
.about-intro {
  padding: calc(var(--header-height) + 40px) 0 80px;
}

.about-intro h2 {
  margin-bottom: 24px;
}

.about-intro p {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: clamp(1.05rem, 1.05rem + 0.5vw, 1.4rem);
}

.about-feature {
  padding: 60px 0;
  background: var(--bg);
}

.about-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-feature-grid--reverse {
  direction: rtl;
}

.about-feature-grid--reverse > * {
  direction: ltr;
}

.about-feature img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  max-height: 400px;
}

.about-feature h3 {
  font-size: 24px;
  margin-bottom: 16px;
}

.about-feature p {
  color: var(--text-secondary);
  line-height: 1.7;
}

@media (max-width: 690px) {
  .about-feature-grid,
  .about-feature-grid--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

/* === CTA Section === */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: var(--bg-dark);
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-light-muted);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* === Team === */
.team-section {
  padding: 80px 0;
  background: var(--white);
}

.team-section__header {
  text-align: center;
  margin-bottom: 48px;
}

.team-section__header h2 {
  margin-bottom: 12px;
}

.team-section__header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.team-card {
  text-align: center;
}

.team-card img {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.team-card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 4px;
}

.team-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

@media (max-width: 690px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

/* === Service Blocks (Leistungen page) === */
.service-block {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block--right {
  text-align: right;
}

.service-block__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: var(--text);
}

.service-block__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.service-block--right .service-block__icon {
  margin-left: auto;
}

.service-block .accent-line {
  margin-bottom: 16px;
}

.service-block--right .accent-line {
  margin-left: auto;
}

.service-block h3 {
  margin-bottom: 12px;
}

.service-block p {
  color: var(--text-secondary);
  max-width: 700px;
  line-height: 1.7;
}

.service-block--right p {
  margin-left: auto;
}

/* Accent Line */
.accent-line {
  width: 40px;
  height: 2px;
  background: var(--accent-warm);
}

/* === Tech Stack === */
.tech-stack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-heading);
}

.tech-stack span:not(:last-child)::after {
  content: '\00b7';
  margin-left: 12px;
  color: var(--accent-warm);
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  outline: none;
  transition: border-color 0.2s;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.char-counter {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 4px;
}

.form-message {
  margin-top: 16px;
  font-size: 14px;
}

.form-message--success {
  color: #2e7d32;
}

.form-message--error {
  color: var(--accent-terracotta);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.contact-info h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.contact-info a {
  color: var(--accent-terracotta);
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--accent-terracotta-hover);
}

@media (max-width: 690px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* === Legal pages === */
.hero--legal {
  background: var(--white);
  padding: 40px 0;
  margin-top: 0;
}

.hero--legal h1 {
  color: var(--text);
}

.hero--legal .label {
  color: var(--accent-terracotta);
}

.legal-content h2 {
  margin-bottom: 24px;
  font-size: 22px;
}

.legal-content h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.legal-content ul {
  margin-bottom: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  list-style: disc;
  padding-left: 24px;
}

.legal-content a {
  color: var(--accent-terracotta);
}

/* === Label === */
.label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin-bottom: 16px;
}

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* === Scroll Reveal === */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* === Desktop only / Phone only === */
.deskonly {
  display: block;
}

.phoneonly {
  display: none;
}

@media (max-width: 690px) {
  .deskonly {
    display: none;
  }
  .phoneonly {
    display: block;
  }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
