/* Kampana Nachfolgekapital – globale Styles */

/* Farbdefinitionen und Font */
:root {
  --primary-color: #000345;      /* Dunkles Blau */
  --secondary-color: #BBA53D;    /* Warmes Gold */
  --background-color: #ffffff;   /* Weißer Hintergrund */
  --text-color: #000345;         /* Dunkelblauer Text */
  --link-color: #BBA53D;         /* Linkfarbe */
}

/* Allgemeine Grundeinstellungen */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  /* Body text in Aptos. Fallback to sans-serif if unavailable */
  font-family: 'Aptos', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
}

/* Headings retain the display font */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Krungthep', sans-serif;
}

header {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header img.logo {
  height: 48px;
  width: auto;
  background-color: var(--primary-color);
  border-radius: 50%;  /* Makes it circular */
  padding: 0.25rem;    /* Adds some breathing room */
  transition: transform 0.2s ease;  /* Smooth hover effect */
}

header img.logo:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

nav a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

nav a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Language switch style: smaller margin-left to push to the right */
nav li.lang-switch {
  margin-left: auto;
}

/* Hero Abschnitt */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5rem 2rem;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/kampenwand1_new.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    max-width: 1200px;
}

.hero p {
    font-size: 1.4rem;
    max-width: 800px;
    margin: 1rem auto;
}

@media (max-width: 768px) {
  .hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('../img/kampenwand1_new.jpg');
    background-attachment: scroll;
    min-height: 80vh;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
}

/* Generische Sektionen */
.section {
  margin: 0.5rem auto;
  padding: 1.5rem 2rem;
  max-width: 1000px;
}

.section:first-of-type {
    margin-top: 2rem;
}

.section:last-of-type {
    margin-bottom: 2rem;
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.section h3 {
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section ul {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.section li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.section a {
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.section a:hover {
    border-bottom-color: var(--link-color);
}

/* Full-width section that spans above the grid */
.section.full-width-box {
  margin: 2rem auto 1.75rem;
  max-width: 1200px;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(2,10,35,0.05);
  border: 1px solid rgba(2,10,35,0.04);
  box-sizing: border-box;
  width: calc(100% - 2rem);
}

.section.full-width-box h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.section.full-width-box p {
  margin: 0;
}

/* About page section boxes */
.section.about-box {
  margin: 2rem auto;
  max-width: 1200px;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(2,10,35,0.05);
  border: 1px solid rgba(2,10,35,0.04);
  box-sizing: border-box;
}

.section.about-box h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Profile box with flexbox layout */
.profile-box {
  margin: 2rem auto;
  max-width: 1200px;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(2,10,35,0.05);
  border: 1px solid rgba(2,10,35,0.04);
  box-sizing: border-box;
}

.profile-box h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

/* Owners page modular two-column layout */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  margin: 0 auto 2rem;
  max-width: 1200px;
  padding: 0 1rem;
  box-sizing: border-box;
  width: 100%;
}

/* Make all sections within a grid row equal height */
.modules-grid .section {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(2,10,35,0.05);
  border: 1px solid rgba(2,10,35,0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Profile section styling */
.profile {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.profile-photo {
  max-width: 200px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.profile-content {
  flex: 1;
}

.profile-content h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.profile-content ul {
  margin: 0;
  padding-left: 1.5rem;
}

.profile-content li {
  margin-bottom: 0.8rem;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .modules-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .modules-grid .section {
    height: auto;
  }
  
  .section.full-width-box,
  .section.about-box,
  .profile-box {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .profile {
    flex-direction: column;
    gap: 1rem;
  }

  .profile-photo {
    max-width: 150px;
  }

  .hero {
    min-height: 80vh;
    background-attachment: scroll;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }

  .page-image {
    width: calc(100% - 1rem);
    margin: 1rem auto;
  }
}

@media (max-width: 600px) {
  .profile-photo {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.page-image {
  max-width: 1200px;
  width: calc(100% - 2rem);
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  box-sizing: border-box;
}