/* ===== S4U GmbH - Website Styles ===== */

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

:root {
  --color-bg: #ffffff;
  --color-bg-light: #f6f7f4;
  --color-bg-card: #ffffff;
  --color-accent: #6b7a2f;
  --color-accent-hover: #8a9c3a;
  --color-accent-light: #a0b800;
  --color-text: #3a3f35;
  --color-text-muted: #6b7265;
  --color-text-heading: #2a2e26;
  --color-border: #e2e5dc;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --transition: 0.3s ease;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  color: var(--color-text-heading);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 1.8rem; font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* --- Header --- */
.header {
  background: var(--color-bg-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-heading);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--color-accent);
}

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

.nav a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--color-text-heading);
}

.lang-switch {
  background: var(--color-border);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.lang-switch:hover {
  background: var(--color-accent);
  color: #ffffff;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  padding: 7rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: url('../images/hero-bg.jpg') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.92) 40%, rgba(246,247,244,0.85) 100%);
}

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

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  color: #ffffff;
}

.btn--secondary {
  background: var(--color-border);
  color: var(--color-text-heading);
}

.btn--secondary:hover {
  background: var(--color-accent);
  color: #ffffff;
}

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero h1 span {
  color: var(--color-accent);
}

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 650px;
  margin: 0 auto;
}

/* --- Services / Leistungen --- */
.services {
  background: var(--color-bg-light);
}

.services h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.services-grid--two {
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(107, 122, 47, 0.1);
}

.service-card .icon {
  margin-bottom: 1rem;
  line-height: 0;
}

.service-img {
  margin: -2rem -2rem 1.5rem -2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  height: 180px;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(40%) hue-rotate(30deg) saturate(80%) brightness(1.05);
  transition: filter var(--transition);
}

.service-card:hover .service-img img {
  filter: sepia(20%) hue-rotate(30deg) saturate(90%) brightness(1.1);
}

.service-card h3 {
  margin-bottom: 0.8rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
  list-style: none;
  padding: 0;
}

.service-tags li {
  background: #f0f3e6;
  color: var(--color-accent);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  border: 1px solid #dde5c4;
}

/* --- Venture / Pro-Sail --- */
.venture {
  padding: 3rem 0 5rem;
}

.venture-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
}

.venture-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  background: #f0f3e6;
  border: 1px solid #dde5c4;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.venture-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.venture-img {
  flex-shrink: 0;
  width: 180px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
}

.venture-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(40%) hue-rotate(30deg) saturate(80%) brightness(1.05);
}

.venture-content h3 {
  color: var(--color-text-heading);
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
}

.venture-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  max-width: 700px;
}

.venture-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.venture-link {
  white-space: nowrap;
  background: var(--color-accent);
  color: #ffffff !important;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}

.venture-link:hover {
  background: var(--color-accent-hover);
}

/* --- Contact --- */
.contact {
  text-align: center;
}

.contact h2 {
  margin-bottom: 2rem;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--color-text-muted);
}

.contact-item .icon {
  font-size: 1.3rem;
}

.contact-item a {
  color: var(--color-text);
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

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

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* --- Legal pages --- */
.legal {
  padding: 4rem 0;
}

.legal h1 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.legal h2 {
  margin-top: 2rem;
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.legal p, .legal li {
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }

  section { padding: 3rem 0; }

  .hero { padding: 4rem 0 3rem; }

  .services-grid,
  .services-grid--two {
    grid-template-columns: 1fr;
  }

  .venture-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .venture-img {
    width: 100%;
    height: 160px;
  }

  .venture-link {
    align-self: flex-start;
  }

  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg-light);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    gap: 1rem;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  .hero p { font-size: 1rem; }
}
