/* ============================================================
   VRR Consulting – Main Stylesheet
   Primary: #4A5B75  Accent-light: #6B7F9E  Dark: #2E3A4A
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:ital,wght@0,600;1,400&display=swap');

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

:root {
  --blue:        #4A5B75;
  --blue-dark:   #2E3A4A;
  --blue-light:  #6B7F9E;
  --blue-pale:   #EEF1F5;
  --white:       #FFFFFF;
  --text:        #222831;
  --text-light:  #5a6472;
  --radius:      6px;
  --shadow:      0 2px 16px rgba(74,91,117,0.12);
  --transition:  0.22s ease;
  --max-width:   1280px;

  /* Type scale – 6 sizes only */
  --fs-xl:   clamp(2rem, 4.5vw, 3rem);      /* h1 */
  --fs-lg:   clamp(1.4rem, 2.5vw, 2rem);    /* h2 */
  --fs-md:   1.2rem;                         /* h3 */
  --fs-base: 1rem;                           /* body */
  --fs-sm:   0.875rem;                       /* footer, meta */
  --fs-xs:   0.75rem;                        /* labels, lang switcher */
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  color: var(--blue-dark);
  line-height: 1.25;
}

h1 { font-size: var(--fs-xl); font-style: italic; }
h2 { font-size: var(--fs-lg); margin-bottom: 1rem; }
h3 { font-size: var(--fs-md); margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ---------- Hawaiian accent pattern ---------- */
/* Subtle repeating hibiscus/tropical SVG tile in blue tones */
.hawaiian-band {
  background-color: var(--blue-pale);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%234A5B75' stroke-width='1' opacity='0.18'%3E%3Cellipse cx='40' cy='20' rx='7' ry='14'/%3E%3Cellipse cx='40' cy='20' rx='7' ry='14' transform='rotate(72 40 40)'/%3E%3Cellipse cx='40' cy='20' rx='7' ry='14' transform='rotate(144 40 40)'/%3E%3Cellipse cx='40' cy='20' rx='7' ry='14' transform='rotate(216 40 40)'/%3E%3Cellipse cx='40' cy='20' rx='7' ry='14' transform='rotate(288 40 40)'/%3E%3Ccircle cx='40' cy='40' r='4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Small Hawaiian bullet / divider dot */
.hawaii-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cg fill='none' stroke='%234A5B75' stroke-width='1.5'%3E%3Cellipse cx='10' cy='4' rx='2.5' ry='5'/%3E%3Cellipse cx='10' cy='4' rx='2.5' ry='5' transform='rotate(72 10 10)'/%3E%3Cellipse cx='10' cy='4' rx='2.5' ry='5' transform='rotate(144 10 10)'/%3E%3Cellipse cx='10' cy='4' rx='2.5' ry='5' transform='rotate(216 10 10)'/%3E%3Cellipse cx='10' cy='4' rx='2.5' ry='5' transform='rotate(288 10 10)'/%3E%3Ccircle cx='10' cy='10' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--blue-pale);
  box-shadow: 0 1px 8px rgba(74,91,117,0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.nav-logo img { height: 44px; width: auto; }
.nav-logo { display: flex; align-items: center; gap: 10px; }

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

.nav-links a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--blue-dark);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active { background: var(--blue); color: var(--white); }

.lang-switcher {
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.lang-switcher a {
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--blue);
  border: 1.5px solid var(--blue-pale);
  transition: all var(--transition);
}

.lang-switcher a:hover,
.lang-switcher a.current {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--blue-dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--blue-dark);
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  filter: brightness(0.45);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
  max-width: 860px;
}

.hero-content h1 { color: var(--white); font-style: italic; }
.hero-content p { font-size: var(--fs-base); color: rgba(255,255,255,0.88); max-width: 720px; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--white);
  color: var(--blue-dark);
}
.btn-primary:hover { background: var(--blue-pale); color: var(--blue-dark); }

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  margin-left: 0.75rem;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.hero-ctas { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--blue);
}

/* ---------- Services / Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: calc(var(--radius) * 2);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(74,91,117,0.16);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ---------- About / Profile ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  border-radius: 10px;
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 0;
  font-size: var(--fs-base);
}

/* ---------- References / Logos ---------- */
.logos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  background: var(--white);
  border: 1.5px solid var(--blue-pale);
  border-radius: var(--radius);
  transition: all var(--transition);
  min-width: 140px;
}

.logo-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
}

.logo-item img {
  max-height: 48px;
  max-width: 140px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all var(--transition);
}

.logo-item:hover img { filter: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-details { list-style: none; margin-top: 1.5rem; }

.contact-details li {
  padding: 0.4rem 0;
  font-size: var(--fs-base);
  line-height: 1.6;
}

.contact-icon {
  color: var(--blue);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ---------- Berlin image (contact page) ---------- */
.berlin-wrap {
  position: relative;
  background: var(--blue-pale);
  border-radius: var(--radius);
  min-height: 100px; /* shows fallback text if image fails */
}

.berlin-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  font-size: var(--fs-lg);
  font-weight: 700;
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--blue-dark);
  text-align: center;
  z-index: 0;
}

.berlin-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ---------- Contact ---------- */
.contact-single {
  max-width: 800px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 560px) {
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.contact-legal {
  font-size: var(--fs-base);
}
.contact-legal p { margin-bottom: 0.4rem; }

.contact-appointment {
  text-align: right;
  color: var(--text-light);
  font-size: var(--fs-sm);
  font-style: italic;
  margin-top: 1.5rem;
}

/* ---------- Team / About page ---------- */
.team-member-name {
  font-size: var(--fs-lg);
  margin-bottom: 2rem;
  color: var(--blue-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0;
  font-size: var(--fs-sm);
}

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

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

.footer-links a, .footer-social a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.footer-links a:hover, .footer-social a:hover { color: var(--white); }

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-social svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- LinkedIn link ---------- */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--blue);
}
.linkedin-link:hover { color: var(--blue-dark); }
.linkedin-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: var(--blue);
  color: var(--white);
  padding: 3.5rem 0 3rem;
}

.page-header h1 { color: var(--white); font-size: var(--fs-lg); }
.page-header p { color: rgba(255,255,255,0.82); max-width: 860px; margin-top: 0.75rem; }

/* ---------- Impressum / Legal ---------- */
.legal-content h2 { margin-top: 2rem; }
.legal-content p, .legal-content ul { margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.5rem; }

.legal-date {
  text-align: right;
  color: var(--text-light);
  font-size: var(--fs-sm);
  font-style: italic;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--blue-pale);
}

/* ---------- 404 Tiki Bar ---------- */
.tiki-404 {
  padding: 3rem 0 4rem;
  background: #0e2030;
}

.tiki-inner {
  text-align: center;
}

.tiki-image-link {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tiki-image-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 50px rgba(0,0,0,0.6);
}

.tiki-image {
  width: 100%;
  height: auto;
  display: block;
}

.tiki-text-fallback {
  margin-top: 2rem;
  color: rgba(255,255,255,0.55);
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.tiki-fallback-link {
  color: #f0c040;
  font-weight: 600;
  text-decoration: none;
}

.tiki-fallback-link:hover {
  color: #ffd760;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--white);
    padding: 1rem; border-bottom: 2px solid var(--blue-pale);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 200px; }
  .hero-content { padding: 3.5rem 0; }
}

@media (max-width: 480px) {
  .logos-grid { gap: 1rem; }
  .logo-item { min-width: 110px; padding: 0.75rem 1rem; }
}
