:root {
  --main-color: #1d0b57;
  --main-action-color: #0f063d;
  --secondary-color: #dfdce9;
  --tertiary-color: #f9f9f9;
  --text-color: #222;
}

html, body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  background: var(--tertiary-color);
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

#logo {
  width: 68%;
  height: auto;
  margin: 0 auto;
  display: block;
  padding: 1rem 0;
  margin-bottom: 20px;
}

/* Header */
.header {
  background: var(--main-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav {
  position: sticky;
  top: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
}
.nav a:hover {
  text-decoration: underline;
}

/* Hero */
.hero {
  background: url('hero.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  padding: 2rem 2rem 6rem;
}
.hero-content {
  background: rgba(0,0,0,0.5);
  padding: 2rem;
  border-radius: 12px;
  display: inline-block;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
}
.hero .btn {
  background: var(--main-color);
  padding: 0.8rem 1.5rem;
  color: white;
  border-radius: 6px;
  text-decoration: none;
}
.hero .btn:hover {
  background: var(--main-action-color);
}

/* Immobilien */
.properties-section {
  padding: 1rem 2rem;
  text-align: center;
}
.properties-list {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: 2rem;
}
.properties-list article {
  background: var(--secondary-color);
  padding: 1rem;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.properties-list h3 {
  margin-top: 0;
}

/* Kontakt */
.contact-section {
  background: var(--secondary-color);
  padding: 0.1rem 2rem 2rem;
}
#contact-form {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.input-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.input-row label, .textarea-row label {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}
input, textarea {
  padding: 0.8rem;
  border: 1px solid var(--main-color);
  border-radius: 4px;
}
textarea {
  resize: none;
  height: 120px;
}

.textarea-row {
  margin-top: -5px;
}

button {
  background: var(--main-color);
  color: white;
  border: none;
  padding: 0.6rem;
  font-size: 1.2rem;
  width: 100%;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background: var(--main-action-color);
}

/* Footer */
.footer {
  background: var(--main-color);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
}
.social-links a {
  margin: 0 0.8rem;
}

a {
opacity: 1;
  transition: opacity 0.7s;
}
a:hover {
  opacity: 0.7;
}


/* Visitenkarten-Section */
.business-card {
  background: var(--secondary-color);
  padding: 0.1rem 2rem;
  display: flex;
  justify-content: center;
  width: 100%;
  background: white;
}

.card-content {
  display: flex;
  gap: 2rem;
  background: white;
  padding: 2rem;
  border-radius: 12px;
  align-items: center;
  flex-wrap: wrap;
  width: fit-content;
}

.card-image img {
  width: 200px;
  height: 200px;
  border-radius: 100%;
  object-fit: cover;
}

.card-info {
  flex: 1;
}

.card-info h2 {
  margin-top: 0;
  color: var(--main-color);
}

.contact-list {
  list-style: none;
  padding: 0;
}
.contact-list li {
  margin-bottom: 0.5rem;
}
.contact-list a {
  color: var(--main-color);
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}

.card-buttons {
  margin-top: 1rem;
}
.card-buttons .btn {
  display: inline-block;
  margin-right: 1rem;
  padding: 0.6rem 1.2rem;
  background: var(--main-color);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease-in-out;
}
.card-buttons .btn:hover {
  background: var(--main-action-color);
}

/* Responsive Anpassung */
@media (max-width: 479px) {

#logo {
  width: 110%;
  margin-left: -5%;
}

  .card-content {
    flex-direction: column;
    text-align: center;
    margin-left: -65px;
    width: 100vw;
  }

  .card-image img {
    width: 150px;
    height: 150px;
    margin-bottom: -1rem;
  }

  .card-info {
    width: 100%;
    text-align: center;
    }

  .card-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }

  .card-buttons .btn {
    width: 80%;
    margin: 0 auto;
  }

  #contact-form {
    max-width: 100%;
    width: calc(100% - 1rem);
    margin-left: -0.5rem;
    padding: 1rem;
    margin-bottom: 1.6rem;
    margin-top: -0.6rem;
  }
  .contact-section {
  padding: 0;
  max-width: 100%;
}
}

.checkbox-row {
  display: flex;
  align-items: center;
  color: gray;
  font-size: small;
  margin: -10px 0 15px;
}
.checkbox-row a {
  color: rgb(102, 102, 104);
}

#bottomNav {
  color: white;
  font-size: 15px;
  margin-bottom: -10px;
  margin-top: 1.2rem;
}

footer img {
  width: 50px;
  aspect-ratio: 1/1;
}