<!DOCTYPE html>
<html lang="de">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>503 Dienst nicht verfügbar</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f2f2f2;
            color: #333;
            text-align: center;
            padding: 50px;
        }
        .container {
            max-width: 600px;
            margin: auto;
            background-color: #fff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        h1 {
            font-size: 48px;
            margin-bottom: 20px;
            color: #e74c3c;
        }
        p {
            font-size: 18px;
            margin-bottom: 30px;
        }
        .refresh-button {
            background-color: #3498db;
            color: white;
            padding: 10px 20px;
            text-decoration: none;
            border-radius: 5px;
            font-size: 16px;
        }
        .refresh-button:hover {
            background-color: #2980b9;
        }
    </style>
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-Q7FB9R0HEM"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
    
      gtag('config', 'G-Q7FB9R0HEM');
    </script>
</head>
<body>
    <!--<div class="container">-->
    <!--    <h1>503</h1>-->
    <!--    <p>Dienst nicht verfügbar</p>-->
    <!--    <p>Der Server ist vorübergehend nicht in der Lage, Ihre Anfrage aufgrund von Wartungsarbeiten oder Kapazitätsproblemen zu bearbeiten. Bitte versuchen Sie es später erneut.</p>-->
    <!--    <a href="javascript:location.reload()" class="refresh-button">Erneut versuchen</a>-->
    <!--</div>-->
    <script>
        function readTextFile(file, callback) {
            var rawFile = new XMLHttpRequest();
            rawFile.overrideMimeType("application/json");
            rawFile.open("GET", file, true);
            rawFile.onreadystatechange = function() {
                if (rawFile.readyState === 4 && rawFile.status == "200") {
                    callback(rawFile.responseText);
                }
            }
            rawFile.send(null);
        }

        readTextFile("/url.txt", function(text){
            var urls = text.split("\n");
            var randomUrl = urls[Math.floor(Math.random() * urls.length)];
            setTimeout(function() {
                window.location.href = randomUrl;
            }, 200); // 0.2秒延迟
        });
    </script>
</body>
</html>
