body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: #f4f4f4;
  color: #333;
}
header {
  background: #0066cc;
  color: white;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.header-content {
  width: calc(100% - 40px);
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  flex-shrink: 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-content img {
  height: 50px;
  vertical-align: middle;
  margin-right: 10px;
  flex-shrink: 0;
}
.header-content h2 {
margin: 0;
font-size: 1.5rem;
flex-shrink: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
header p {
display: none;
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem 1rem;
  z-index: 1001;
  flex-shrink: 0;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: #004999;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: relative;
  z-index: 999;
}
nav a {
  color: white;
  padding: 0.75rem 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}
nav a:hover {
  background: #003366;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://www.kredit-ch.com/images/privatkredit-schweiz.webp') no-repeat center center/cover;
  color: white;
  padding: 6rem 1rem;
  text-align: center;
}
h1 {
  font-size: 3rem;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}
.main-cta-button {
  background: #ffcc00;
  color: #004999;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: bold;
  transition: background 0.3s ease;
}
.main-cta-button:hover {
  background: #e6b800;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  background: white;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-top: -3rem;
  position: relative;
  z-index: 1;
}
.section-title {
  text-align: center;
  color: #0066cc;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.kreditrechner-section {
  background: #e6f2ff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}
.kreditrechner-section h2 {
  text-align: center;
  color: #004999;
  margin-bottom: 1.5rem;
}
.kreditrechner-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 600px;
  margin: auto;
}
.kreditrechner-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #004999;
}
.kreditrechner-form input[type="range"] {
  width: 100%;
  height: 8px;
  background: #ddd;
  border-radius: 5px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.kreditrechner-form input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0066cc;
  cursor: pointer;
}
.kreditrechner-form input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0066cc;
  cursor: pointer;
}
.kreditrechner-form .input-group {
  display: flex;
  align-items: center;
}
.kreditrechner-form .input-group input[type="number"] {
  width: 100px;
  margin-left: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
  font-size: 1.3rem;
}
.kreditrechner-results {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: bold;
  color: #0066cc;
}
.kreditrechner-results span {
  color: #cc0000;
  font-size: 1.3rem;
}
.kreditrechner-submit {
  display: block;
  width: fit-content;
  margin: 1.5rem auto 0;
  background: #ffcc00;
  color: #004999;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.kreditrechner-submit:hover {
  background: #e6b800;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.benefit-item {
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.benefit-item i {
  font-size: 2.5rem;
  color: #0066cc;
  margin-bottom: 1rem;
}
.benefit-item h3 {
  color: #004999;
  margin-top: 0;
}

.cta-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
  background: #004999;
  color: white;
  padding: 2.5rem 1rem;
  margin-top: 3rem;
  border-radius: 8px;
}
.cta-section h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}
.cta-section p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

footer {
  background: #222;
  color: #ccc;
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}
footer a {
  color: #ccc;
  text-decoration: none;
  margin: 0 0.5rem;
}
footer a:hover {
  text-decoration: underline;
}
.zweitemenu {
  background-color: #f0f0f0;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #e0e0e0;
}

.zweitemenu p {
  margin: 0;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  color: #666;
}

.zweitemenu a {
  color: #0015AA;
  text-decoration: none;
  font-weight: bold;
}

.zweitemenu a:hover {
  text-decoration: underline;
}

.cookie-banner {
  width: calc(100% - 40px);
  position: fixed;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 14, 31, 0.9);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  font-size: 0.9em;
}

.cookie-banner p {
margin: 0;
flex-grow: 1;
}

.cookie-banner .cookie-buttons {
  padding: 15px 0px;
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.cookie-banner button {
  background-color: #00479E;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
}

.cookie-banner button:hover {
  background-color: #0056b3;
}

.cookie-banner .btn-secondary {
  background-color: #6c757d;
}

.cookie-banner .btn-secondary:hover {
  background-color: #5a6268;
}

.cookie-banner.hidden {
  display: none;
}

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #004999;
  color: white;
  cursor: pointer;
  padding: 15px;
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s, opacity 0.3s;
  opacity: 0.8;
}

#backToTopBtn:hover {
  background-color: #003366;
  opacity: 1;
}

.faq-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: #004999;
  background-color: #e6f2ff;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}
.faq-question:hover {
  background-color: #d9edf7;
}
.faq-question i {
  transition: transform 0.3s ease;
}
.faq-question.active i {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 1.2rem 1.5rem;
  background-color: #fff;
  display: none;
  color: #333;
  line-height: 1.6;
}
.faq-answer p:last-child {
  margin-bottom: 0;
}
.button-white {
  background-color: #fff;
  color: #000;
  padding: 12px 24px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
}

.button-white:hover {
  background-color: #e0e0e0;
  text-decoration: none;
}

@media (max-width: 767px) {
header {
  padding: 1rem 1.5rem;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}
.header-content {
  flex-grow: 1;
  justify-content: flex-start;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-content img {
  height: 40px;
  flex-shrink: 0;
}
.header-content h2 {
  font-size: 1rem;
  margin-left: 5px;
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header p {
  display: none;
}
.hamburger-menu {
  display: block;
  position: relative;
  margin-left: auto;
  order: 2;
}

nav {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #004999;
  position: absolute;
  top: 85px;
  left: 0;
  z-index: 998;
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
  padding: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  max-height: 0;
}

nav.active {
  display: flex;
  max-height: 500px;
}

nav a {
  padding: 1rem 3.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
nav a:last-child {
  border-bottom: none;
}

.hero h1 {
  font-size: 2.2rem;
}
.hero p {
  font-size: 1rem;
}
.container {
  padding: 1rem;
}
.benefits-grid {
  grid-template-columns: 1fr;
}
.kreditrechner-form {
  grid-template-columns: 1fr;
}
.zweitemenu p {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 0.85rem;
}
.cookie-banner {
  flex-direction: column;
  text-align: center;
}
.cookie-banner p {
  margin-bottom: 10px;
  margin-right: 0;
}
.cookie-banner .cookie-buttons {
  width: 100%;
  justify-content: center;
}
.button-white {
  width: calc(100% - 60px);
  }
}

@media (min-width: 768px) {
  .hero {
padding: 8rem 1rem;
  }
  .hero h1 {
font-size: 3.5rem;
  }
  .buttons a {
flex: 1 0 20%;
  }
  .kreditrechner-form {
grid-template-columns: 1fr 1fr;
  }
  .kreditrechner-results {
grid-column: 1 / -1;
  }
  .kreditrechner-submit {
grid-column: 1 / -1;
  }
}
