/* =========================================
   1970 Asset Management — Stylesheet
   ========================================= */

/* --- Lokale Schriften (selbst gehostet, keine externen Aufrufe) --- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/cormorant-garamond-v21-latin-700.woff2') format('woff2');
}

/* --- CSS Custom Properties --- */
:root {
  /* Colors — 70er-Referenz, seriös */
  --color-cognac: #A0522D;
  --color-amber: #C8802A;
  --color-olive: #556B2F;
  --color-bg-light: #FAF6F1;
  --color-bg-dark: #2C2418;
  --color-text: #3B2F2F;
  --color-text-light: #FAF6F1;
  --color-gold: #B8943E;
  --color-border: rgba(59, 47, 47, 0.12);
  --color-card-bg: #FFFFFF;

  /* Typography — Marken-Schriften lokal selbst gehostet (siehe @font-face oben,
     Dateien in css/fonts/). Keine externen (Google-)Aufrufe. System-Schriften
     dienen nur als Fallback, falls eine Schriftdatei nicht geladen werden kann. */
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --section-padding: 4.5rem 2rem;
  --container-max: 1100px;
  --nav-height: 72px;

  /* Transitions */
  --transition: 0.3s ease;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  transition: background var(--transition);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-year {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
}

.nav-logo-name {
  font-family: var(--font-body);
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--color-cognac);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-cognac);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-lang {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-olive);
  border: 1px solid var(--color-olive);
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  transition: all var(--transition);
}

.nav-lang:hover {
  background: var(--color-olive);
  color: var(--color-text-light);
}

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

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

/* --- Hero Section --- */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--section-padding);
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 1.5rem;
  background: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(160, 82, 45, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(85, 107, 47, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

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

.hero-logo {
  margin-bottom: 2rem;
}

.hero-logo-year {
  font-family: var(--font-heading);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.05em;
  line-height: 1;
}

.hero-logo-name {
  font-family: var(--font-body);
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--color-cognac);
  margin-top: 0.5rem;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-text);
  margin-top: 2rem;
  font-style: italic;
  opacity: 0.85;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text);
  opacity: 0.7;
  margin-top: 1rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-divider {
  width: 60px;
  height: 2px;
  background: var(--color-cognac);
  margin: 2.5rem auto;
}

/* --- Sections --- */
.section {
  padding: var(--section-padding);
}

/* Abstand zwischen Hero und erster Sektion (nur Home-Seiten) verkürzen */
.hero + .section {
  padding-top: 2rem;
}

.section--dark {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section--dark h2,
.section--dark h3 {
  color: var(--color-text-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header p {
  margin-left: auto;
  margin-right: auto;
  opacity: 0.8;
  font-size: 1.05rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-cognac);
  margin-bottom: 0.75rem;
}

.section--dark .section-label {
  color: var(--color-gold);
}

/* --- Cards Grid --- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(44, 36, 24, 0.1);
}

.section--dark .card {
  background: rgba(250, 246, 241, 0.06);
  border-color: rgba(250, 246, 241, 0.1);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
  display: block;
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.card p {
  font-size: 0.95rem;
  opacity: 0.85;
  line-height: 1.7;
}

/* --- Overview / Feature Blocks --- */
.overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: var(--container-max);
  margin: 0 auto;
  text-align: center;
}

.overview-item h3 {
  font-family: var(--font-heading);
  color: var(--color-cognac);
  margin-bottom: 0.5rem;
}

.overview-item p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0 auto;
}

/* --- Portfolio Categories --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.portfolio-category {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: all var(--transition);
}

.portfolio-category:hover {
  border-color: var(--color-cognac);
}

.portfolio-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(160, 82, 45, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.portfolio-category h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.portfolio-category p {
  font-size: 0.9rem;
  opacity: 0.75;
  margin: 0 auto;
}

/* --- Principles List --- */
.principles {
  max-width: 700px;
  margin: 0 auto;
}

.principle {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.section--dark .principle {
  border-color: rgba(250, 246, 241, 0.1);
}

.principle:last-child {
  border-bottom: none;
}

.principle-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  flex-shrink: 0;
  width: 2.5rem;
}

.principle h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.principle p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 0;
}

/* --- Contact Section --- */
.contact-info {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}

.contact-person {
  margin-bottom: 3rem;
}

.contact-person .section-label {
  margin-bottom: 0.5rem;
}

.contact-person-name {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--color-text);
}

.contact-person-role {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-cognac);
  margin-bottom: 1.5rem;
}

.contact-person-invitation {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.85;
  margin: 0 auto;
  max-width: 460px;
}

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

.contact-item h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-cognac);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.contact-item p, .contact-item a {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

/* --- Contact form (Netlify Forms) --- */
.contact-form {
  max-width: 540px;
  margin: 2rem auto 0;
  text-align: center;
}

.contact-form .section-label {
  margin-bottom: 0.5rem;
}

.contact-form h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 600;
  margin: 0 0 2rem;
  color: var(--color-text);
}

.contact-form form {
  font-family: var(--font-body);
  text-align: left;
}

.contact-form .form-field {
  margin-bottom: 0.8rem;
}

.contact-form .form-field > label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: var(--color-text);
  margin-bottom: 0.3rem;
}

/* Pflichtfeld-Stern */
.contact-form .req {
  color: #c0392b;
  margin-left: 0.15rem;
}

/* Zwei Felder nebeneinander (z. B. Vorname / Nachname) */
.contact-form .form-row {
  display: flex;
  gap: 1rem;
}

.contact-form .form-row .form-field {
  flex: 1;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-cognac);
  box-shadow: 0 0 0 3px rgba(160, 82, 45, 0.12);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.contact-form .form-consent input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-cognac);
}

.contact-form .form-consent label {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text);
}

.contact-form .form-consent a {
  color: var(--color-cognac);
  text-decoration: underline;
}

.contact-form button[type="submit"] {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  color: var(--color-text-light);
  background: var(--color-cognac);
  border: none;
  border-radius: 8px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button[type="submit"]:hover {
  background: var(--color-amber);
}

.contact-form .form-hidden {
  display: none;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: 2.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

.footer a {
  color: var(--color-text-light);
  opacity: 0.8;
}

.footer a:hover {
  opacity: 1;
}

.footer-links {
  margin-top: 0.75rem;
}

.footer-links a {
  margin: 0 0.75rem;
}

/* --- Scroll Animations (CSS only) --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Header (Unterseiten) --- */
.page-header {
  padding: calc(var(--nav-height) + 4rem) 2rem 3rem;
  text-align: center;
  background: var(--color-bg-light);
}

.page-header .section-label {
  margin-bottom: 0.75rem;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  margin: 0 auto;
  opacity: 0.7;
  font-size: 1.1rem;
}

/* --- Legal Pages --- */
.legal-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
}

.legal-list {
  margin: 0 0 1rem 1.5rem;
  padding: 0;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--color-border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.legal-table th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.03);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(250, 246, 241, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .contact-form .form-row {
    flex-direction: column;
    gap: 0;
  }

  .overview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .principle {
    flex-direction: column;
    gap: 0.5rem;
  }
}
