/* ===============================
   Farb- & Layout-Variablen
================================= */
:root {
  --darkblue: #1C2850;
  --lightblue: #6FC0DF;
  --red: #FF4C5A;

  --ink: #000;
  --muted: #999;
  --shadow: #d9d9d9;
  --bg: #f7f9fc;
  --card: #fff;

  --radius: 3px;
  --space: clamp(16px, 2vw, 28px);
  --space-lg: clamp(22px, 4vw, 52px);
}

/* ===============================
   Grundlayout & Typografie
================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.7s ease;
}

a:hover {
  color: var(--lightblue);
}

/* ===============================
   Struktur-Elemente
================================= */
.linie {
  background: var(--darkblue);
  height: 7px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 56px;
  box-shadow: 1px 2px 7px var(--shadow);
  background: #fff;
}

.login {
  font-size: 15px;
}

.login:hover {
  color: var(--lightblue);
}

main {
  max-width: 889px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space) 84px;
}

h1 {
  margin: 0 0 var(--space-lg);
  text-align: center;
  font-size: clamp(22px, 2.6vw, 28px);
}

/* ===============================
   Grid & Karten
================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}

.karte-wrap {
  display: grid;
  justify-items: center;
  gap: 10px;
  position: relative;
}

.karte-teamviewer {
  display: grid;
  justify-items: center;
  gap: 10px;
  position: relative;
}

.karte {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 1px 1px 4px var(--shadow);
  border: 1px solid #eee;
  padding: 21px 7px;
  text-align: center;
  transition: transform 0.7s ease, box-shadow 0.7s ease, border-color 0.7s ease;
  height: 217px;
  width: 217px;
}

.karte:hover {
  transform: translateY(-2px);
  box-shadow: 2px 2px 16px var(--shadow);
  background: rgba(111, 192, 223, 0.07); /* sanftes lightblue */
}

.karte h2 {
  font-size: clamp(18px, 2vw, 20px);
  margin: 6px 0 16px;
}

/* ===============================
   Zusatztexte
================================= */
.clean {
  margin: 0;
  padding: 0;
  list-style-position: inside;
  text-align: center;
}

.kommentar {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
  text-align: center;
  max-width: 217px;
  padding: 0 7px;
}

.untertitel {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
  text-align: center;
}

.untertitel-links {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}

/* ===============================
   Info-Buttons & Info-Boxen
================================= */
.info-dot {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 4px solid #fff;
  background-color: var(--lightblue);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.7s ease;
}

.info-dot:hover {
  background-color: var(--darkblue);
}

.info-karte {
  position: absolute;
  top:0px;
  left:0px;
  z-index:999;
  height:100%; 
  width: 100%; 
  padding:0; 
  background: rgba(1, 1, 1, 0.5);
}

.info-box {
  position: relative;
  top:112px;
  border-radius: var(--radius);
  background: #000;
  color: #fff;
  box-shadow: 2px 2px 8px #555;
  margin: 0px auto;
  width: 60%;
  max-width: 700px;
}

.info-box svg{
  text-align:right;
  float: right;
  padding: 7px;
}

.info-box ul{
  background-color: #fff;
  color: var(--ink);
  padding: 14px 28px 14px;
  list-style-position: outside;
}
.info-box li{
  margin: 10px;
}

.info-titel {
  font-size: 21px;
  padding: 21px 21px 0px;
}

.close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: var(--lightblue);
}

.hidden {
  display: none;
}

/* ===============================
   Sonstiges
================================= */
.newblock {
  height: 70px;
  border-bottom: 3px solid var(--lightblue);
  margin-bottom: 35px;
}

.download {
  display: inline-flex;
  margin-top: 10px;
}

.download svg {
  height: 30px;
}

/* ===============================
   Footer
================================= */
.cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--shadow);
  color: #888;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  height: 63px;
}

.cookie a {
  color: #888;
}

.cookie a:hover {
  color: var(--lightblue);
}

/* ===============================
   Responsive Design
================================= */

/* Mobile */
@media (max-width: 640px) {
  header {
    padding: 21px;
  }

  .info-dot,
  .kommentar,
  .karte-teamviewer{
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* Tablet */
@media (max-width: 952px) {
  .grid {
    max-width: 100%;
  }


}
