:root {
  --color-primary: rgb(153, 0, 255);
  --color-primary-dark: #7000bd;
  --color-primary-light: rgb(218, 163, 255);
  --color-background: #f9f9f9;
  --color-surface: #fff;
  --color-text: #333;
  --color-text-muted: #666;
  --color-border: #b1b1b1;
  --color-white: #fff;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --color-shadow-primary: rgba(153, 0, 255, 0.5);
  --color-overlay: rgba(0, 0, 0, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
}

h1,
p {
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background: var(--color-primary);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh + 2rem);
}

main {
  background: var(--color-background);
  display: flex;
  flex: 1;
  flex-direction: column;
}


header {
  background: var(--color-surface);
  color: var(--color-primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 3px 5px var(--color-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 10px 1rem;
  position: relative;
}

.header-title {
  display: flex;
  flex-direction: column;
  margin-right: 20px;
}

.header-title > a {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.header-title > a > img {
  display: flex;
  max-width: 90%;
}

.header-title > a > p {
  font-size: medium;
  color: var(--color-text);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  min-width: 40px;
  height: 35px;
  padding: 5px;
  margin-left: auto;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background-color: var(--color-primary);
}

.hamburger span {
  height: 4px;
  width: 100%;
  background: var(--color-surface);
  border-radius: 2px;
}

nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--color-surface);
  z-index: 1000;
  box-shadow: 0 10px 30px -10px var(--color-shadow-primary);
}

nav.active {
  display: flex;
}

nav a {
  padding: 0.75rem;
  text-decoration: none;
  text-align: center;
  color: var(--color-primary);
  border-top: 1px solid var(--color-primary);
}

nav a:last-child {
  border-bottom: 1px solid var(--color-primary);
}

nav a:hover,
nav a:focus-visible {
  background: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: solid;
  outline: none;
}

.offer-banner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
  background: var(--color-primary);
  color: var(--color-white);
}

.offer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.55rem;
  font-size: 0.9rem;
  color: var(--color-white);
  text-decoration: none;
}

.offer-link:hover,
.offer-link:focus-visible {
  color: var(--color-white);
  text-decoration: underline;
  outline: none;
}

.offer-label {
  padding: 0.1rem 0.4rem;
  background: var(--color-primary-dark);
  border-radius: 4px;
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: bold;
  text-transform: uppercase;
}

.offer-link strong {
  color: var(--color-white);
  font-size: 0.95rem;
  text-transform: uppercase;
}

.hero {
  flex: 1;
  background:
    linear-gradient(var(--color-overlay), var(--color-overlay)),
    url("images/start.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-white);
  padding: 2rem;
}

.hero-content {
  max-width: 700px;
}

.hero h1,
.hero p {
  margin: 10px;
}

.hero a {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s;
}

.hero a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
}

.content {
  background: var(--color-background);
  margin: 5px auto;
  padding: 0 0.5rem;
  flex: 1;
}

.container {
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--color-shadow);
  padding: 1rem;
}

.container > p {
  margin-top: 10px;
}

.ueber-container {
  border-top: 4px solid var(--color-primary);
}

.kontakt-container {
  border-top: 4px solid var(--color-primary);
}

.glasfaser-container {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem;
  border-top: 4px solid var(--color-primary);
}

.glasfaser-kicker {
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glasfaser-container h3 {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.2;
  color: var(--color-text);
}

.glasfaser-container ul {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.25rem;
  color: var(--color-text-muted);
}

.glasfaser-copy {
  display: grid;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.glasfaser-container > img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.glasfaser-cta {
  align-self: center;
  padding: 0.75rem 1.1rem;
  border-radius: 6px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: bold;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.glasfaser-cta span {
  margin-left: 0.45rem;
}

.glasfaser-cta:hover,
.glasfaser-cta:focus-visible {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.glasfaser-container h4,
.glasfaser-container ul {
  margin: 0;
}

.recht-card {
  display: flex;
  background: var(--color-surface);
  border-radius: 12px;
  box-shadow: 0 4px 12px var(--color-shadow);
  padding: 1.5rem;
}

.recht-card h4 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.recht-card p {
  margin: 0.35rem 0;
}

.content section {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--color-shadow);
}

.content section + section {
  margin-top: 0.5rem;
}

.content section img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.content section div {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content section h3 {
  margin: 0 0 10px;
}

.content section h4 {
  margin: 0;
  color: var(--color-text-muted);
}

.content section ul {
  margin: 15px 0 0;
  padding-left: 20px;
}

.kontaktsec {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.kontaktitem {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1.0rem;
  border-left: 4px solid var(--color-border);
  border-right: 4px solid var(--color-border);
  background: var(--color-background);
  border-radius: 4px;
}

.kontakt-icon {
  min-width: 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kontakttext {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
}

.kontaktitem h4 {
  margin: 0;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.3;
}

.kontaktitem a {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.kontaktitem a:hover {
  color: var(--color-primary);
}

footer {
  text-align: center;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: xx-small;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-row a {
  color: var(--color-white);
  text-decoration: none;
}

.footer-row a:hover,
.footer-row a:focus-visible {
  color: var(--color-white);
  text-decoration: none;
  outline: none;
}

@media (min-width: 1143px) {
  .header-inner {
    align-items: flex-end;
    padding: 10px calc(1rem + 100px);
    padding-bottom: 5px;
  }

  .header-title {
    margin-right: 20px;
  }

  .offer-banner {
    padding-right: calc(1rem + 100px);
    padding-left: calc(1rem + 100px);
  }

  .hamburger {
    display: none;
  }

  .header-title > a > img {
    display: flex;
    width: 450px;
    height: 50px;
  }

  nav {
    display: flex !important;
    position: static;
    flex-direction: row;
    margin-left: auto;
    align-self: flex-end;
    background: transparent;
    box-shadow: none;
    width: auto;
  }

  nav a {
    border: none;
    color: var(--color-primary);
    padding: 0;
    margin: 0 20px 4px;
    white-space: nowrap;
  }

  nav a:last-child {
    border: none;
    margin-right: 0;
  }

  nav a:hover {
    background: transparent;
    margin-bottom: 0;
    border-bottom: 4px solid var(--color-shadow-primary);
  }

  nav a[aria-current="page"] {
    font-weight: bold;
    margin-bottom: 0;
    border-bottom: 4px solid var(--color-primary);
  }

  .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
  }

  .content {
    padding: 10px calc(1rem + 100px);
  }

  .content section {
    flex-direction: row;
  }

  .content section img {
    width: 35%;
    min-width: 250px;
    max-width: 350px;
    height: auto;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
  }

  .content section div {
    flex: 1;
  }

  .kontaktsec {
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    gap: 1.5rem;
  }

  .kontaktitem {
    flex: 1 1 0;
    min-width: 0;
  }

  .content section.recht-card {
    flex-direction: column;
  }
}
