* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.section-gap {
  height: 28px;
  flex-shrink: 0;
}

.content-width {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Content sections (Lageplan, etc.) --- */

.page-section h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
  color: #163f75;
}

.page-section p {
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-section h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: #163f75;
}

.page-section p a {
  color: #215caf;
  text-decoration: underline;
}

.page-section p a:hover {
  color: #163f75;
}

.callout {
  background: #eaf1fb;
  border-left: 4px solid #215caf;
  border-radius: 3px;
  padding: 20px 24px;
  margin: 40px 0 56px;
  max-width: 640px;
}

.callout p {
  margin-bottom: 12px;
}

.callout-button {
  display: inline-block;
  background: #215caf;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 3px;
  font-weight: 600;
  transition: background 0.2s ease;
}

.callout-button:hover {
  background: #163f75;
  color: #fff;
}

/* --- Interest form (Anmeldung) --- */

.interest-form {
  max-width: 420px;
  margin-top: 40px;
  margin-bottom: 30px;
}

.interest-form .form-row {
  margin-bottom: 16px;
}

.interest-form button {
  margin-top: 20px;
}

.interest-form label {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.interest-form input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1rem;
  font-family: inherit;
}

.interest-form input:focus {
  outline: none;
  border-color: #215caf;
}

.combobox {
  position: relative;
}

.combobox-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  list-style: none;
  overflow: hidden;
}

.combobox-list li {
  padding: 8px 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.combobox-list li:hover,
.combobox-list li.active {
  background: #eaf1fb;
}

.combobox-list li + li {
  border-top: 1px solid #eee;
}

.interest-form button {
  background: #215caf;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 10px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.interest-form button:hover {
  background: #163f75;
}

.interest-message {
  padding: 12px 16px;
  border-radius: 3px;
  max-width: 420px;
}

.interest-message-success {
  background: #e6f2e6;
  color: #2a5c2a;
}

.interest-message-error {
  background: #f7e2e2;
  color: #7a2222;
}

.content-remark {
  color: #888;
  font-style: italic;
}

.lageplan-map {
  width: 400px;
  height: auto;
  display: block;
}

.anreise-table,
.programm-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 720px;
  margin-bottom: 24px;
}

.anreise-table th:first-child,
.anreise-table td:first-child {
  width: 220px;
}

.programm-table th:first-child,
.programm-table td:first-child {
  width: 130px;
  white-space: nowrap;
}

.anreise-table th,
.anreise-table td,
.programm-table th,
.programm-table td {
  text-align: left;
  padding: 8px 24px 8px 0;
  vertical-align: top;
  border-bottom: 1px solid #ddd;
}

.anreise-table th,
.programm-table th {
  color: #163f75;
  font-size: 0.9rem;
}

/* --- Banner + floating header --- */

.banner {
  position: relative;
}

.banner img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.banner-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 0;
  background: linear-gradient(rgba(33, 92, 175, 0.45), rgba(33, 92, 175, 0.1));
}

.banner-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.banner-header .title-block h1 {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.banner-header .title-block p {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 3px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.banner-header .partners {
  display: flex;
  align-items: center;
  gap: 18px;
}

.banner-header .partners img {
  display: block;
  width: auto;
}

.banner-header .partners a:last-child {
  margin-left: 14px;
}

.banner-header .partners .logo-eth {
  height: 48px;
}

.banner-header .partners .logo-uzh {
  height: 40px;
}

.banner-header .partners .logo-su {
  height: 17px;
}

/* Lower transparent title block over the banner */

.banner-lower {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(33, 92, 175, 0.55);
  padding: 24px 0;
}

.banner-lower .banner-copyright {
  position: absolute;
  bottom: 100%;
  right: 20px;
  margin-bottom: 6px;
}

.banner-lower .content-width {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
}

.banner-lower h2,
.banner-lower .event-date {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-lower h2 {
  min-width: 0;
  flex: 1 1 auto;
}

.banner-lower .event-date {
  white-space: nowrap;
  flex: 0 0 auto;
}

.banner-copyright {
  color: #fff;
  font-size: 0.7rem;
  opacity: 0.85;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* --- Navigation --- */

.main-nav {
  background: #f4f4f4;
  border-bottom: 1px solid #ddd;
}

.main-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.main-nav ul a {
  display: block;
  position: relative;
  padding: 14px 0;
  color: #222;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}

.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 2px;
  background: #215caf;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.main-nav ul a:hover {
  color: #215caf;
}

.main-nav ul a:hover::after {
  transform: scaleX(1);
}

.main-nav ul a.active {
  color: #215caf;
}

.main-nav ul a.active::after {
  transform: scaleX(1);
}

.main-nav .lang-switch {
  font-size: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.main-nav .lang-switch a {
  color: #666;
  text-decoration: none;
  opacity: 0.8;
}

.main-nav .lang-switch a:hover,
.main-nav .lang-switch a.active {
  opacity: 1;
  color: #215caf;
  text-decoration: underline;
}

/* --- Footer --- */

.site-footer {
  background: rgba(22, 63, 117, 0.92);
  padding: 20px 0;
  flex-shrink: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logos img {
  display: block;
  width: auto;
}

.footer-logos a:last-child {
  margin-left: 14px;
}

.footer-logos .logo-eth {
  height: 78px;
}

.footer-logos .logo-uzh {
  height: 65px;
}

.footer-logos .logo-su {
  height: 28px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #b9c4d6;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: #b9c4d6;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #fff;
}

/* --- Mobile --- */

@media (max-width: 700px) {
  .banner-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main-nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .main-nav .lang-switch {
    padding: 8px 0 12px;
  }

  .footer-logos {
    flex-wrap: wrap;
    row-gap: 16px;
  }

  .footer-logos a:last-child {
    margin-left: 0;
  }
}
