/* ==============================
   Schwarzer Holding GmbH
   style.css
   ============================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --blue:   #1a2340;
  --gold:   #c9a84c;
  --gold-light: #e8d5a3;
  --white:  #ffffff;
  --grey:   #f5f5f3;
  --text:   #2c2c2c;
  --muted:  #7a7a7a;
  --border: #e0ddd8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* --- Layout --- */
.container {
  width: min(90%, 860px);
  margin-inline: auto;
}

section {
  padding-block: 80px;
}

/* ==============================
   HERO
   ============================== */
#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  text-align: center;
  padding-block: 60px;
}

#hero .logo-wrap {
  display: inline-block;
  margin-bottom: 48px;
}

#hero .logo-wrap img {
  width: clamp(240px, 50vw, 340px);
  height: auto;
  /* invert colours so SVG dark blue becomes white on dark background */
  filter: brightness(0) invert(1);
}

/* gold accent line under logo */
#hero .divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-inline: auto;
  margin-bottom: 32px;
}

#hero .tagline {
  font-size: clamp(0.85rem, 2vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

/* scroll indicator */
#hero .scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#hero .scroll-hint::after {
  content: '';
  display: block;
  width: 1px;
  height: 36px;
  background: var(--gold);
  opacity: 0.4;
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ==============================
   ÜBER UNS
   ============================== */
#about {
  background: var(--white);
  text-align: center;
}

#about .section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

#about p {
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 300;
  color: var(--blue);
  max-width: 640px;
  margin-inline: auto;
  line-height: 1.9;
}

/* ==============================
   KONTAKT
   ============================== */
#contact {
  background: var(--grey);
}

#contact .section-label {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

#contact h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Info block */
.contact-info address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-row .label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.info-row a,
.info-row span {
  font-size: 0.95rem;
  color: var(--blue);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s;
}

.info-row a:hover {
  color: var(--gold);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b0aca6;
  font-weight: 300;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

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

.contact-form button {
  align-self: flex-start;
  padding: 14px 36px;
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form button:hover:not(:disabled) {
  background: transparent;
  color: var(--blue);
}

.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Lade-Spinner */
.btn-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

.contact-form button.is-loading .btn-spinner { display: block; }
.contact-form button.is-loading .btn-label   { opacity: 0.75; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Feedback-Meldungen */
.form-feedback {
  padding: 14px 18px;
  font-size: 0.88rem;
  line-height: 1.6;
  border-left: 3px solid;
}

.form-feedback--success {
  border-color: #4a9a6e;
  background: #f0faf5;
  color: #2d6e4e;
}

.form-feedback--error {
  border-color: #c0392b;
  background: #fdf3f2;
  color: #922b21;
}

.form-feedback--error a {
  color: inherit;
  font-weight: 500;
}

/* ==============================
   FOOTER
   ============================== */
footer {
  background: var(--blue);
  color: rgba(255,255,255,0.45);
  padding-block: 48px;
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.9;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-logo img {
  width: 180px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
}

.footer-legal-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-legal-block strong {
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  color: rgba(255,255,255,0.25);
  font-size: 0.75rem;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 680px) {
  section { padding-block: 56px; }

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

  .contact-form button {
    width: 100%;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 20px;
  }
}
